Conversion of standardized ReadMe file for
file /./ftp/cats/J/ApJ/704/606 into FORTRAN code for loading all data files into arrays.
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-Jul-13
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 (nr__) ! (deg) Right Ascension 2007, Epoch=2007
real*8 DEdeg (nr__) ! (deg) Declination 2007, Epoch=2007
C ---------------------------------- ! (position vector(s) in degrees)
integer*4 v_SEC2010_ (nr__) ! Identification number
* (<[SEC2010] IRAC NNNNNN> in Simbad)
integer*4 RAh (nr__) ! (h) Hour of right ascension (J2000)
integer*4 RAm (nr__) ! (min) Minute of right ascension (J2000)
real*4 RAs (nr__) ! (s) Second of right ascension (J2000)
character*1 DE_ (nr__) ! Sign of declination (J2000)
integer*4 DEd (nr__) ! (deg) Degree of declination (J2000)
integer*4 DEm (nr__) ! (arcmin) Arcminute of declination (J2000)
real*4 DEs (nr__) ! (arcsec) Arcsecond of declination (J2000)
real*4 Jmag (nr__) ! (mag) ? 2MASS J-band magnitude (1)
real*4 Hmag (nr__) ! (mag) ? 2MASS H-band magnitude (1)
real*4 Ksmag (nr__) ! (mag) ? 2MASS Ks-band magnitude (1)
real*4 v_3_6_ (nr__) ! (mag) Spitzer/IRAC 3.6um-band magnitude (1)
real*4 v_4_5_ (nr__) ! (mag) Spitzer/IRAC 4.5um-band magnitude (1)
real*4 v_5_8_ (nr__) ! (mag) ? Spitzer/IRAC 5.8um-band magnitude (1)
real*4 v_8_0_ (nr__) ! (mag) ? Spitzer/IRAC 8.0um-band magnitude (1)
real*4 v_24_ (nr__) ! (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(nr__1) ! Identification number
character*1 f__SEC2010_(nr__1) ! [c] c: Candidate young variable
character*5 Loc (nr__1) ! Source location (1)
character*8 Class (nr__1) ! YSO vs. other (AGB, XGAL (extragalactic), or
* PHT (photosphere))
character*1 Delmag (nr__1) ! [CDI] {Delta}mag vs {lambda} (D: decreasing,
* C: constant or I: Increasing)
character*1 Difmag (nr__1) ! [0+-] Evolution of [3.6]-[4.5] vs. [4.5] (2)
real*4 E (nr__1) ! Ratio of the observed SED and the underlying
* normalized K5-M5 photosphere (3)
real*4 Lirac (nr__1) ! (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_(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__),
+ DEm(i__),DEs(i__),Jmag(i__),Hmag(i__),Ksmag(i__),v_3_6_(i__),
+ v_4_5_(i__),v_5_8_(i__),v_8_0_(i__),v_24_(i__)
if(ar__(30:34) .EQ. '') Jmag(i__) = rNULL__
if(ar__(36:40) .EQ. '') Hmag(i__) = rNULL__
if(ar__(42:46) .EQ. '') Ksmag(i__) = rNULL__
if(ar__(60:64) .EQ. '') v_5_8_(i__) = rNULL__
if(ar__(66:70) .EQ. '') v_8_0_(i__) = rNULL__
if(ar__(72:75) .EQ. '') v_24_(i__) = rNULL__
RAdeg(i__) = rNULL__
DEdeg(i__) = rNULL__
c Derive coordinates RAdeg and DEdeg from input data
c (RAdeg and DEdeg are set to rNULL__ when unknown)
if(RAh(i__) .GT. -180) RAdeg(i__)=RAh(i__)*15.
if(RAm(i__) .GT. -180) RAdeg(i__)=RAdeg(i__)+RAm(i__)/4.
if(RAs(i__) .GT. -180) RAdeg(i__)=RAdeg(i__)+RAs(i__)/240.
if(DEd(i__) .GE. 0) DEdeg(i__)=DEd(i__)
if(DEm(i__) .GE. 0) DEdeg(i__)=DEdeg(i__)+DEm(i__)/60.
if(DEs(i__) .GE. 0) DEdeg(i__)=DEdeg(i__)+DEs(i__)/3600.
if(DE_(i__).EQ.'-'.AND.DEdeg(i__).GE.0) DEdeg(i__)=-DEdeg(i__)
c ..............Just test output...........
write(6,1)
+ v_SEC2010_(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__),
+ DEm(i__),DEs(i__),Jmag(i__),Hmag(i__),Ksmag(i__),v_3_6_(i__),
+ v_4_5_(i__),v_5_8_(i__),v_8_0_(i__),v_24_(i__)
write(6,'(6H Pos: 2F8.4)') RAdeg(i__),DEdeg(i__)
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(i__),f__SEC2010_(i__),Loc(i__),Class(i__),
+ Delmag(i__),Difmag(i__),E(i__),Lirac(i__)
c ..............Just test output...........
write(6,2)
+ v_SEC2010__1(i__),f__SEC2010_(i__),Loc(i__),Class(i__),
+ Delmag(i__),Difmag(i__),E(i__),Lirac(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end