Conversion of standardized ReadMe file for
file /./ftp/cats/J/ApJ/719/550 into FORTRAN code for reading data files line by line.
Note that special values are assigned to unknown or unspecified
numbers (also called NULL numbers);
when necessary, the coordinate components making up the right ascension
and declination are converted into floating-point numbers
representing these angles in degrees.
program load_ReadMe
C=============================================================================
C F77-compliant program generated by readme2f_1.5, on 2013-May-21
C=============================================================================
* This code was generated from the ReadMe file documenting a catalogue
* according to the "Standard for Documentation of Astronomical Catalogues"
* currently in use by the Astronomical Data Centers (CDS, ADC, A&A)
* (see full documentation at URL http://vizier.u-strasbg.fr/doc/catstd.htx)
* Please report problems or questions to
C=============================================================================
implicit none
* Unspecified or NULL values, generally corresponding to blank columns,
* are assigned one of the following special values:
* rNULL__ for unknown or NULL floating-point values
* iNULL__ for unknown or NULL integer values
real*4 rNULL__
integer*4 iNULL__
parameter (rNULL__=-1.e37) ! NULL real number
parameter (iNULL__=-2147483647) ! NULL int number
C=============================================================================
Cat. J/ApJ/719/550 Deep NIR imaging of {rho} Oph cloud core (Marsh+, 2010)
*================================================================================
*Deep near-infrared imaging of the {rho} Oph cloud core: clues to the origin of
*the lowest-mass brown dwarfs.
* Marsh K.A., Plavchan P., Kirkpatrick J.D., Lowrance P.J., Cutri R.M.,
* Velusamy T.
* <Astrophys. J., 719, 550-560 (2010)>
* =2010ApJ...719..550M
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table1.dat' ! Photometry and estimated effective temperatures,
visual absorption, and masses of candidate
cluster members in the {rho} Ophiuchi cloud core
integer*4 nr__
parameter (nr__=165) ! Number of records
character*119 ar__ ! Full-size record
real*8 RA_ ! (deg) Right Ascension J2000
real*8 Dec ! (deg) Declination J2000
integer*4 Seq ! [10/14819] Object index number
* <[MPK2010b] NNNNN> in Simbad
integer*4 RAh ! (h) Hour of Right Ascension (J2000)
integer*4 RAm ! (min) Minute of Right Ascension (J2000)
real*4 RAs ! (s) Second of Right Ascension (J2000)
character*1 DE_ ! Sign of the Declination (J2000)
integer*4 DEd ! (deg) Degree of Declination (J2000)
integer*4 DEm ! (arcmin) Arcminute of Declination (J2000)
real*4 DEs ! (arcsec) Arcsecond of Declination (J2000)
real*4 Jmag ! (mag) ? 2MASS deep J band magnitude
real*4 e_Jmag ! (mag) ? Uncertainty in Jmag
real*4 Hmag ! (mag) ? 2MASS deep H band magnitude
real*4 e_Hmag ! (mag) ? Uncertainty in Hmag
real*4 Ksmag ! (mag) ? 2MASS deep Ks band magnitude
real*4 e_Ksmag ! (mag) ? Uncertainty in Ksmag
real*4 v_3_6_ ! (mag) ? Spitzer/IRAC 3.6 micron band magnitude
real*4 e__3_6_ ! (mag) ? Uncertainty in [3.6]
real*4 v_4_5_ ! (mag) ? Spitzer/IRAC 4.5 micron band magnitude
real*4 e__4_5_ ! (mag) ? Uncertainty in [4.5]
integer*4 Teff ! (K) Effective temperature
integer*4 e_Teff ! (K) Uncertainty in Teff
real*4 AV ! (mag) Visual absorption
real*4 e_AV ! (mag) Uncertainty in AV
real*4 Mass ! (Msun) Mass
C=============================================================================
C Loading file 'table1.dat' ! Photometry and estimated effective temperatures,
* visual absorption, and masses of candidate
* cluster members in the {rho} Ophiuchi cloud core
C Format for file interpretation
1 format(
+ I5,1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F4.1,1X,F6.3,1X,F5.3,
+ 1X,F6.3,1X,F5.3,1X,F6.3,1X,F5.3,1X,F6.3,1X,F5.3,1X,F6.3,1X,
+ F5.3,1X,I4,1X,I4,1X,F4.1,1X,F3.1,1X,F5.3)
C Effective file loading
open(unit=1,file='table1.dat', status='old')
write(6,*) '....Loading file: table1.dat'
do i__=1,165
read(1,'(A119)')ar__
read(ar__,1)
+ Seq,RAh,RAm,RAs,DE_,DEd,DEm,DEs,Jmag,e_Jmag,Hmag,e_Hmag,Ksmag,
+ e_Ksmag,v_3_6_,e__3_6_,v_4_5_,e__4_5_,Teff,e_Teff,AV,e_AV,Mass
if(ar__(31:36) .EQ. '') Jmag = rNULL__
if(ar__(38:42) .EQ. '') e_Jmag = rNULL__
if(ar__(44:49) .EQ. '') Hmag = rNULL__
if(ar__(51:55) .EQ. '') e_Hmag = rNULL__
if(ar__(57:62) .EQ. '') Ksmag = rNULL__
if(ar__(64:68) .EQ. '') e_Ksmag = rNULL__
if(ar__(70:75) .EQ. '') v_3_6_ = rNULL__
if(ar__(77:81) .EQ. '') e__3_6_ = rNULL__
if(ar__(83:88) .EQ. '') v_4_5_ = rNULL__
if(ar__(90:94) .EQ. '') e__4_5_ = rNULL__
c Derive coordinates RA_ and Dec from input data
c (RA_ and Dec are set to rNULL_ when unknown)
RA_ = RAh
if(RAh .GE. 0) RA_=RAh*15.
if(RAm .GE. 0) RA_=RA_+RAm/4.
if(RAs .GE. 0) RA_=RA_+RAs/240.
Dec = DEd
if(DEm .GE. 0) Dec=Dec+DEm/60.
if(DEs .GE. 0) Dec=Dec+DEs/3600.
if(DE_.EQ.'-'.AND.Dec.GE.0) Dec=-Dec
c ..............Just test output...........
write(6,1)
+ Seq,RAh,RAm,RAs,DE_,DEd,DEm,DEs,Jmag,e_Jmag,Hmag,e_Hmag,Ksmag,
+ e_Ksmag,v_3_6_,e__3_6_,v_4_5_,e__4_5_,Teff,e_Teff,AV,e_AV,Mass
write(6,'(6H Pos: 2F8.4)') RA_,Dec
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end