Conversion of standardized ReadMe file for
file /./ftp/cats/J/ApJ/704/606 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.81 (2015-09-23), on 2026-Oct-14
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__=--2147483648.) ! NULL real number
parameter (iNULL__=(-2147483647-1)) ! NULL int number
integer idig ! testing NULL number
C=============================================================================
Cat. J/ApJ/704/606 Protostars in the Vela Molecular Cloud (Giannini+, 2009)
*================================================================================
*Pre-main sequence variables in the VMR-D: identification of T Tauri-like
*accreting protostars through Spitzer-IRAC variability.
* Giannini T., Lorenzetti D., Elia D., Strafella F., De Luca M., Fazio G.,
* Marengo M., Nisini B., Smith H.A.
* <Astrophys. J., 704, 606-617 (2009)>
* =2009ApJ...704..606G
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table2.dat' ! Magnitudes of the 47 selected variables at the
2 epochs (2007-02-21 and 2007-07-04)
integer*4 nr__
parameter (nr__=94) ! Number of records
character*75 ar__ ! Full-size record
C 2007 position composed of: RAh RAm RAs DE- DEd DEm DEs (Epoch=2007)
real*8 RAdeg ! (deg) Right Ascension 2007, Epoch=2007
real*8 DEdeg ! (deg) Declination 2007, Epoch=2007
C ---------------------------------- ! (position vector(s) in degrees)
integer*4 v_SEC2010_ ! Identification number
* (<[SEC2010] IRAC NNNNNN> 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 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 J-band magnitude (1)
real*4 Hmag ! (mag) ? 2MASS H-band magnitude (1)
real*4 Ksmag ! (mag) ? 2MASS Ks-band magnitude (1)
real*4 v_3_6_ ! (mag) Spitzer/IRAC 3.6um-band magnitude (1)
real*4 v_4_5_ ! (mag) Spitzer/IRAC 4.5um-band magnitude (1)
real*4 v_5_8_ ! (mag) ? Spitzer/IRAC 5.8um-band magnitude (1)
real*4 v_8_0_ ! (mag) ? Spitzer/IRAC 8.0um-band magnitude (1)
real*4 v_24_ ! (mag) ? Spitzer/MIPS 24um-band magnitude
* counterpart (1)
*Note (1): Conversion into flux densities (Jansky) can be done by means of
* the zero-mag fluxes that are: 280.9Jy (3.6um), 179.7Jy (4.5um),
* 115.0Jy (5.8um), 64.13Jy (8.0um), and 7.17Jy (24um). Typical errors
* (in mag) are: 2MASS, J: 0.02-0.18, H: 0.02-0.17, K: 0.02-0.15; IRAC,
* all bands: 0.1; MIPS 24um: 0.3.
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table3.dat' ! Coded photometric properties of the selected sources
integer*4 nr__1
parameter (nr__1=47) ! Number of records
character*37 ar__1 ! Full-size record
integer*4 v_SEC2010__1 ! Identification number
character*1 f__SEC2010_ ! [c] c: Candidate young variable
character*5 Loc ! Source location (1)
character*8 Class ! YSO vs. other (AGB, XGAL (extragalactic), or
* PHT (photosphere))
character*1 Delmag ! [CDI] {Delta}mag vs {lambda} (D: decreasing,
* C: constant or I: Increasing)
character*1 Difmag ! [0+-] Evolution of [3.6]-[4.5] vs. [4.5] (2)
real*4 E ! Ratio of the observed SED and the underlying
* normalized K5-M5 photosphere (3)
real*4 Lirac ! (Lsun) IRAC luminosity
*Note (1): Location coded as follows:
* O = outside the CO contours,
* I = inside,
* P = on a peak of warm gas.
* IRS16 = the source lies within the IR cluster IRS16, although located
* outside our CO map.
*Note (2): Code as follows:
* - = redder,
* 0 = constant,
* + = bluer color during a fading event
*Note (3): Ratio of the observed SED and the underlying normalized K5-M5
* photosphere, both integrated from J to 8um.
C=============================================================================
C Loading file 'table2.dat' ! Magnitudes of the 47 selected variables at the
* 2 epochs (2007-02-21 and 2007-07-04)
C Format for file interpretation
1 format(
+ I6,1X,I1,1X,I2,1X,F4.1,1X,A1,I2,1X,I2,1X,F4.1,1X,F5.2,1X,F5.2,
+ 1X,F5.2,1X,F5.2,1X,F5.2,1X,F5.2,1X,F5.2,1X,F4.2)
C Effective file loading
open(unit=1,status='old',file=
+'table2.dat')
write(6,*) '....Loading file: table2.dat'
do i__=1,94
read(1,'(A75)')ar__
read(ar__,1)
+ v_SEC2010_,RAh,RAm,RAs,DE_,DEd,DEm,DEs,Jmag,Hmag,Ksmag,v_3_6_,
+ v_4_5_,v_5_8_,v_8_0_,v_24_
if(ar__(30:34) .EQ. '') Jmag = rNULL__
if(ar__(36:40) .EQ. '') Hmag = rNULL__
if(ar__(42:46) .EQ. '') Ksmag = rNULL__
if(ar__(60:64) .EQ. '') v_5_8_ = rNULL__
if(ar__(66:70) .EQ. '') v_8_0_ = rNULL__
if(ar__(72:75) .EQ. '') v_24_ = rNULL__
RAdeg = rNULL__
DEdeg = rNULL__
c Derive coordinates RAdeg and DEdeg from input data
c (RAdeg and DEdeg are set to rNULL__ when unknown)
if(RAh .GT. -180) RAdeg=RAh*15.
if(RAm .GT. -180) RAdeg=RAdeg+RAm/4.
if(RAs .GT. -180) RAdeg=RAdeg+RAs/240.
if(DEd .GE. 0) DEdeg=DEd
if(DEm .GE. 0) DEdeg=DEdeg+DEm/60.
if(DEs .GE. 0) DEdeg=DEdeg+DEs/3600.
if(DE_.EQ.'-'.AND.DEdeg.GE.0) DEdeg=-DEdeg
c ..............Just test output...........
write(6,1)
+ v_SEC2010_,RAh,RAm,RAs,DE_,DEd,DEm,DEs,Jmag,Hmag,Ksmag,v_3_6_,
+ v_4_5_,v_5_8_,v_8_0_,v_24_
write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table3.dat' ! Coded photometric properties of the selected sources
C Format for file interpretation
2 format(I6,A1,1X,A5,1X,A8,1X,A1,1X,A1,1X,F4.1,1X,F5.3)
C Effective file loading
open(unit=1,status='old',file=
+'table3.dat')
write(6,*) '....Loading file: table3.dat'
do i__=1,47
read(1,'(A37)')ar__1
read(ar__1,2)
+ v_SEC2010__1,f__SEC2010_,Loc,Class,Delmag,Difmag,E,Lirac
c ..............Just test output...........
write(6,2)
+ v_SEC2010__1,f__SEC2010_,Loc,Class,Delmag,Difmag,E,Lirac
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end