Conversion of standardized ReadMe file for
file /./ftp/cats/J/ApJ/663/1149 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-May-10
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/663/1149 Spitzer survey of Serpens YSO population (Harvey+, 2007)
*================================================================================
*The Spitzer c2d survey of large, nearby, interstellar clouds.
*IX. The Serpens YSO population as observed with IRAC and MIPS.
* Harvey P., Merin B., Huard T.L., Rebull L.M., Chapman N., Evans II N.J.,
* Myers P.C.
* <Astrophys. J., 663, 1149-1173 (2007)>
* =2007ApJ...663.1149H
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table2.dat' ! YSOs in Serpens
integer*4 nr__
parameter (nr__=235) ! Number of records
character*132 ar__ ! Full-size record
integer*4 v_HMH2007_ ! Running identification number
character*1 n__HMH2007_ ! [b] Possible AGB (1)
character*16 SSTc2dJ ! Object name (HHMMSSss+DDMMSSs) (G1)
character*16 PName ! Previous name (G2)
real*8 F3_6um ! (mJy) ?=- IRAC 3.6 micron flux density
real*8 e_F3_6um ! (mJy) ? Uncertainty in F3.6um
real*8 F4_5um ! (mJy) ?=- IRAC 4.5 micron flux density
real*4 e_F4_5um ! (mJy) ? Uncertainty in F4.5um
real*8 F5_8um ! (mJy) ?=- IRAC 5.8 micron flux density
real*4 e_F5_8um ! (mJy) ? Uncertainty in F5.8um
real*8 F8um ! (mJy) ?=- IRAC 8.0 micron flux density
real*4 e_F8um ! (mJy) ? Uncertainty in F8um
real*8 F24um ! (mJy) ?=- MIPS 24.0 micron flux density
real*8 e_F24um ! (mJy) ? Uncertainty in F24um
real*8 F70um ! (mJy) ?=- MIPS 70.0 micron flux density
real*4 e_F70um ! (mJy) ? Uncertainty in F70um
*Note (1): b = May be AGB star, based on A_v_ derived from optical spectrum.
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table3.dat' ! YSO candidates in Serpens without
four-band IRAC observations
integer*4 nr__1
parameter (nr__1=51) ! Number of records
character*132 ar__1 ! Full-size record
integer*4 v_HMH2007__1 ! Running identification number
character*1 n__HMH2007__1 ! [b] Possible AGB (1)
character*16 SSTc2dJ_1 ! Object name (HHMMSSss+DDMMSSs) (G1)
character*16 PName_1 ! Previous name (G2)
real*8 F3_6um_1 ! (mJy) ?=- IRAC 3.6 micron flux density
real*8 e_F3_6um_1 ! (mJy) ? Uncertainty in F3.6um
real*8 F4_5um_1 ! (mJy) ?=- IRAC 4.5 micron flux density
real*4 e_F4_5um_1 ! (mJy) ? Uncertainty in F4.5um
real*8 F5_8um_1 ! (mJy) ?=- IRAC 5.8 micron flux density
real*4 e_F5_8um_1 ! (mJy) ? Uncertainty in F5.8um
real*8 F8um_1 ! (mJy) ?=- IRAC 8.0 micron flux density
real*4 e_F8um_1 ! (mJy) ? Uncertainty in F8um
real*8 F24um_1 ! (mJy) ?=- MIPS 24.0 micron flux density
real*8 e_F24um_1 ! (mJy) ? Uncertainty in F24um
real*8 F70um_1 ! (mJy) ?=- MIPS 70.0 micron flux density
real*4 e_F70um_1 ! (mJy) ? Uncertainty in F70um
*Note (1): b = May be AGB star, based on A_v_ derived from optical spectrum.
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table4.dat' ! Matching Spitzer sources/fluxes for previously
identified IR sources in Serpens
integer*4 nr__2
parameter (nr__2=373) ! Number of records
character*135 ar__2 ! Full-size record
character*14 Name ! Source identification (G2)
character*16 SSTc2dJ_2 ! Spitzer name (HHMMSSss+DDMMSSs) (G1)
character*1 l_F3_6um ! Limit flag on F3.6um
real*8 F3_6um_2 ! (mJy) ? IRAC 3.6 micron flux density
real*8 e_F3_6um_2 ! (mJy) ? Uncertainty in F3.6um
character*1 l_F4_5um ! Limit flag on F3.6um
real*8 F4_5um_2 ! (mJy) ? IRAC 4.5 micron flux density
real*8 e_F4_5um_2 ! (mJy) ? Uncertainty in F4.5um
character*1 l_F5_8um ! Limit flag on F3.6um
real*8 F5_8um_2 ! (mJy) ? IRAC 5.8 micron flux density
real*8 e_F5_8um_2 ! (mJy) ? Uncertainty in F5.8um
character*1 l_F8um ! Limit flag on F3.6um
real*8 F8um_2 ! (mJy) ? IRAC 8.0 micron flux density
real*8 e_F8um_2 ! (mJy) ? Uncertainty in F8um
character*1 l_F24um ! Limit flag on F3.6um
real*8 F24um_2 ! (mJy) ? MIPS 24.0 micron flux density
real*8 e_F24um_2 ! (mJy) ? Uncertainty in F24um
real*8 F70um_2 ! (mJy) ? MIPS 70.0 micron flux density
real*4 e_F70um_2 ! (mJy) ? Uncertainty in F70um
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table7.dat' ! Disk modeling results in class II sources
integer*4 nr__3
parameter (nr__3=130) ! Number of records
character*35 ar__3 ! Full-size record
integer*4 v_HMH2007__2 ! Star identification number
character*2 SED ! Spectral Energy Distribution type (1)
real*4 AV ! (mag) Extinction in the V band
real*4 LStar ! (solLum) Stellar luminosity
real*4 LD_LS ! The disk to star luminosity ratio
real*4 Turnoff ! (um) Wavelength at which the infrared excess begins
real*4 Excess ! ?=-99.0 Slope of the infrared excess (2)
*Note (1): SED type defined as follows:
* T = SED identical to a Classical T Tauri star, within the errors
* L = SED with lower fluxes at some wavelengths than a Classical T Tau star
* H = SED with larger fluxes at some wavelengths than a Classical T Tau star
* LU = photospheric fluxes up to around 8 micron but then a sudden
* jump at longer wavelengths to the levels of a T-Tauri disk.
*Note (2): Starting at the last wavelength where the observed flux is
* photospheric ({lambda}_excess_).
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table8.dat' ! Disk modeling results in class III sources
integer*4 nr__4
parameter (nr__4=39) ! Number of records
character*35 ar__4 ! Full-size record
integer*4 v_HMH2007__3 ! Star identification number
character*2 SED_1 ! Spectral Energy Distribution type (1)
real*4 AV_1 ! (mag) Extinction in the V band
real*4 LStar_1 ! (solLum) Stellar luminosity
real*4 LD_LS_1 ! The disk to star luminosity ratio
real*4 Turnoff_1 ! (um) Wavelength at which the infrared excess begins
real*4 Excess_1 ! ?=-99.0 Slope of the infrared excess (2)
*Note (1): SED type defined as follows:
* T = SED identical to a Classical T Tauri star, within the errors
* L = SED with lower fluxes at some wavelengths than a Classical T Tau star
* H = SED with larger fluxes at some wavelengths than a Classical T Tau star
* LU = photospheric fluxes up to around 8 micron but then a sudden
* jump at longer wavelengths to the levels of a T-Tauri disk.
*Note (2): Starting at the last wavelength where the observed flux is
* photospheric ({lambda}_excess_).
C=============================================================================
C Loading file 'table2.dat' ! YSOs in Serpens
C Format for file interpretation
1 format(
+ I3,1X,A1,1X,A16,1X,A16,1X,F8.3,1X,F7.3,1X,F7.2,1X,F6.2,1X,
+ F7.2,1X,F6.2,1X,F7.2,1X,F6.2,1X,F7.2,1X,F7.2,1X,F7.1,1X,F6.1)
C Effective file loading
open(unit=1,status='old',file=
+'table2.dat')
write(6,*) '....Loading file: table2.dat'
do i__=1,235
read(1,'(A132)')ar__
read(ar__,1)
+ v_HMH2007_,n__HMH2007_,SSTc2dJ,PName,F3_6um,e_F3_6um,F4_5um,
+ e_F4_5um,F5_8um,e_F5_8um,F8um,e_F8um,F24um,e_F24um,F70um,
+ e_F70um
if (idig(ar__(41:48)).EQ.0) F3_6um = rNULL__
if(ar__(50:56) .EQ. '') e_F3_6um = rNULL__
if (idig(ar__(58:64)).EQ.0) F4_5um = rNULL__
if(ar__(66:71) .EQ. '') e_F4_5um = rNULL__
if (idig(ar__(73:79)).EQ.0) F5_8um = rNULL__
if(ar__(81:86) .EQ. '') e_F5_8um = rNULL__
if (idig(ar__(88:94)).EQ.0) F8um = rNULL__
if(ar__(96:101) .EQ. '') e_F8um = rNULL__
if (idig(ar__(103:109)).EQ.0) F24um = rNULL__
if(ar__(111:117) .EQ. '') e_F24um = rNULL__
if (idig(ar__(119:125)).EQ.0) F70um = rNULL__
if(ar__(127:132) .EQ. '') e_F70um = rNULL__
c ..............Just test output...........
write(6,1)
+ v_HMH2007_,n__HMH2007_,SSTc2dJ,PName,F3_6um,e_F3_6um,F4_5um,
+ e_F4_5um,F5_8um,e_F5_8um,F8um,e_F8um,F24um,e_F24um,F70um,
+ e_F70um
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table3.dat' ! YSO candidates in Serpens without
* four-band IRAC observations
C Format for file interpretation
2 format(
+ I3,1X,A1,1X,A16,1X,A16,1X,F8.3,1X,F7.3,1X,F7.2,1X,F6.2,1X,
+ F7.2,1X,F6.2,1X,F7.2,1X,F6.2,1X,F7.2,1X,F7.2,1X,F7.1,1X,F6.1)
C Effective file loading
open(unit=1,status='old',file=
+'table3.dat')
write(6,*) '....Loading file: table3.dat'
do i__=1,51
read(1,'(A132)')ar__1
read(ar__1,2)
+ v_HMH2007__1,n__HMH2007__1,SSTc2dJ_1,PName_1,F3_6um_1,
+ e_F3_6um_1,F4_5um_1,e_F4_5um_1,F5_8um_1,e_F5_8um_1,F8um_1,
+ e_F8um_1,F24um_1,e_F24um_1,F70um_1,e_F70um_1
if (idig(ar__1(41:48)).EQ.0) F3_6um_1 = rNULL__
if(ar__1(50:56) .EQ. '') e_F3_6um_1 = rNULL__
if (idig(ar__1(58:64)).EQ.0) F4_5um_1 = rNULL__
if(ar__1(66:71) .EQ. '') e_F4_5um_1 = rNULL__
if (idig(ar__1(73:79)).EQ.0) F5_8um_1 = rNULL__
if(ar__1(81:86) .EQ. '') e_F5_8um_1 = rNULL__
if (idig(ar__1(88:94)).EQ.0) F8um_1 = rNULL__
if(ar__1(96:101) .EQ. '') e_F8um_1 = rNULL__
if (idig(ar__1(103:109)).EQ.0) F24um_1 = rNULL__
if(ar__1(111:117) .EQ. '') e_F24um_1 = rNULL__
if (idig(ar__1(119:125)).EQ.0) F70um_1 = rNULL__
if(ar__1(127:132) .EQ. '') e_F70um_1 = rNULL__
c ..............Just test output...........
write(6,2)
+ v_HMH2007__1,n__HMH2007__1,SSTc2dJ_1,PName_1,F3_6um_1,
+ e_F3_6um_1,F4_5um_1,e_F4_5um_1,F5_8um_1,e_F5_8um_1,F8um_1,
+ e_F8um_1,F24um_1,e_F24um_1,F70um_1,e_F70um_1
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table4.dat' ! Matching Spitzer sources/fluxes for previously
* identified IR sources in Serpens
C Format for file interpretation
3 format(
+ A14,1X,A16,1X,A1,F8.3,1X,F7.3,1X,A1,F8.3,1X,F7.3,1X,A1,F8.3,
+ 1X,F7.3,1X,A1,F8.3,1X,F7.3,1X,A1,F7.2,1X,F7.2,1X,F7.1,1X,F6.1)
C Effective file loading
open(unit=1,status='old',file=
+'table4.dat')
write(6,*) '....Loading file: table4.dat'
do i__=1,373
read(1,'(A135)')ar__2
read(ar__2,3)
+ Name,SSTc2dJ_2,l_F3_6um,F3_6um_2,e_F3_6um_2,l_F4_5um,F4_5um_2,
+ e_F4_5um_2,l_F5_8um,F5_8um_2,e_F5_8um_2,l_F8um,F8um_2,
+ e_F8um_2,l_F24um,F24um_2,e_F24um_2,F70um_2,e_F70um_2
if(ar__2(34:41) .EQ. '') F3_6um_2 = rNULL__
if(ar__2(43:49) .EQ. '') e_F3_6um_2 = rNULL__
if(ar__2(52:59) .EQ. '') F4_5um_2 = rNULL__
if(ar__2(61:67) .EQ. '') e_F4_5um_2 = rNULL__
if(ar__2(70:77) .EQ. '') F5_8um_2 = rNULL__
if(ar__2(79:85) .EQ. '') e_F5_8um_2 = rNULL__
if(ar__2(88:95) .EQ. '') F8um_2 = rNULL__
if(ar__2(97:103) .EQ. '') e_F8um_2 = rNULL__
if(ar__2(106:112) .EQ. '') F24um_2 = rNULL__
if(ar__2(114:120) .EQ. '') e_F24um_2 = rNULL__
if(ar__2(122:128) .EQ. '') F70um_2 = rNULL__
if(ar__2(130:135) .EQ. '') e_F70um_2 = rNULL__
c ..............Just test output...........
write(6,3)
+ Name,SSTc2dJ_2,l_F3_6um,F3_6um_2,e_F3_6um_2,l_F4_5um,F4_5um_2,
+ e_F4_5um_2,l_F5_8um,F5_8um_2,e_F5_8um_2,l_F8um,F8um_2,
+ e_F8um_2,l_F24um,F24um_2,e_F24um_2,F70um_2,e_F70um_2
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table7.dat' ! Disk modeling results in class II sources
C Format for file interpretation
4 format(I3,1X,A2,1X,F4.1,1X,F6.2,1X,F5.3,1X,F4.1,1X,F5.1)
C Effective file loading
open(unit=1,status='old',file=
+'table7.dat')
write(6,*) '....Loading file: table7.dat'
do i__=1,130
read(1,'(A35)')ar__3
read(ar__3,4)v_HMH2007__2,SED,AV,LStar,LD_LS,Turnoff,Excess
c ..............Just test output...........
write(6,4)v_HMH2007__2,SED,AV,LStar,LD_LS,Turnoff,Excess
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table8.dat' ! Disk modeling results in class III sources
C Format for file interpretation
5 format(I3,1X,A2,1X,F4.1,1X,F6.2,1X,F5.3,1X,F4.1,1X,F5.1)
C Effective file loading
open(unit=1,status='old',file=
+'table8.dat')
write(6,*) '....Loading file: table8.dat'
do i__=1,39
read(1,'(A35)')ar__4
read(ar__4,5)
+ v_HMH2007__3,SED_1,AV_1,LStar_1,LD_LS_1,Turnoff_1,Excess_1
c ..............Just test output...........
write(6,5)
+ v_HMH2007__3,SED_1,AV_1,LStar_1,LD_LS_1,Turnoff_1,Excess_1
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end
C Locate position of first digit in string; or return 0
integer function idig(c)
character*(*) c
character*1 c1
integer lc,i
lc=len(c)
idig=0
do i=1,lc
if(c(i:i).ne.' ') go to 1
end do
1 if(i.gt.lc) return
c1=c(i:i)
if(c1.eq.'.'.or.c1.eq.'-'.or.c1.eq.'+') i=i+1
if(i.gt.lc) return
c1=c(i:i)
if(c1.ge.'0'.and.c1.le.'9') idig=i
return
end