Conversion of standardized ReadMe file for
file /./ftp/cats/J/AJ/137/4072 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-Jun-18
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/AJ/137/4072 Infrared photometry of G216-2.5 YSOs (Megeath+, 2009)
*================================================================================
*Detection of star formation in the unusually cold giant molecular
*cloud G216-2.5.
* Megeath S.T., Allgaier E., Young E., Allen T., Pipher J.L., Wilson T.L.
* <Astron. J., 137, 4072-4082 (2009)>
* =2009AJ....137.4072M
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table1.dat' ! Photometry of identified young stellar objects
integer*4 nr__
parameter (nr__=74) ! Number of records
character*129 ar__ ! Full-size record
real*8 RA_ ! (deg) Right Ascension J2000
real*8 Dec ! (deg) Declination J2000
integer*4 SRC ! [1/74] Sequential number,
* <[MAY2009] NN> in Simbad
integer*4 RAh ! (h) Right ascension (J2000)
integer*4 RAm ! (min) Right ascension (J2000)
real*4 RAs ! (s) Right ascension (J2000)
character*1 DE_ ! Declination sign (J2000)
integer*4 DEd ! (deg) Declination (J2000)
integer*4 DEm ! (arcmin) Declination (J2000)
integer*4 DEs ! (arcsec) Declination (J2000)
real*4 Jmag ! (mag) ?=- Flamingos J magnitude
real*4 e_Jmag ! (mag) ?=- rms uncertainty on Jmag
character*1 n_Jmag ! [a] a when magnitude from 2MASS
real*4 Hmag ! (mag) ?=- Flamingos H magnitude
real*4 e_Hmag ! (mag) ?=- rms uncertainty on Hmag
character*1 n_Hmag ! [a] a when magnitude from 2MASS
real*4 Kmag ! (mag) ?=- Flamingos K magnitude
real*4 e_Kmag ! (mag) ?=- rms uncertainty on Kmag
character*1 n_Kmag ! [a] a when magnitude from 2MASS
real*4 v_3_6_ ! (mag) ?=- Spitzer/IRAC 3.6um magnitude
real*4 e__3_6_ ! (mag) ?=- rms uncertainty on [3.6]
real*4 v_4_5_ ! (mag) ?=- Spitzer/IRAC 4.5um magnitude
real*4 e__4_5_ ! (mag) ?=- rms uncertainty on [4.5]
real*4 v_5_8_ ! (mag) ?=- Spitzer/IRAC 5.8um magnitude
real*4 e__5_8_ ! (mag) ?=- rms uncertainty on [5.8]
real*4 v_8_0_ ! (mag) ?=- Spitzer/IRAC 8.0um magnitude
real*4 e__8_0_ ! (mag) ?=- rms uncertainty on [8.0]
real*4 v_24_ ! (mag) ?=- Spitzer/MIPS 24um magnitude
real*4 e__24_ ! (mag) ?=- rms uncertainty on [24]
real*4 v_70_ ! (mag) ?=- Spitzer/MIPS 70um magnitude
real*4 e__70_ ! (mag) ?=- rms uncertainty on [70]
character*5 Class ! Classification (Disk or Proto)
C=============================================================================
C Loading file 'table1.dat' ! Photometry of identified young stellar objects
C Format for file interpretation
1 format(
+ I2,1X,I1,1X,I2,1X,F4.1,1X,A1,I1,1X,I2,1X,I2,1X,F5.2,1X,F4.2,
+ A1,1X,F5.2,1X,F4.2,A1,1X,F5.2,1X,F4.2,A1,1X,F5.2,1X,F4.2,1X,
+ F5.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,F5.2,1X,F4.2,
+ 1X,F5.2,1X,F4.2,1X,A5)
C Effective file loading
open(unit=1,file='table1.dat', status='old')
write(6,*) '....Loading file: table1.dat'
do i__=1,74
read(1,'(A129)')ar__
read(ar__,1)
+ SRC,RAh,RAm,RAs,DE_,DEd,DEm,DEs,Jmag,e_Jmag,n_Jmag,Hmag,
+ e_Hmag,n_Hmag,Kmag,e_Kmag,n_Kmag,v_3_6_,e__3_6_,v_4_5_,
+ e__4_5_,v_5_8_,e__5_8_,v_8_0_,e__8_0_,v_24_,e__24_,v_70_,
+ e__70_,Class
if (Jmag .EQ. 2.2233e-322) Jmag = rNULL__
if (e_Jmag .EQ. 2.2233e-322) e_Jmag = rNULL__
if (Hmag .EQ. 2.2233e-322) Hmag = rNULL__
if (e_Hmag .EQ. 2.2233e-322) e_Hmag = rNULL__
if (Kmag .EQ. 2.2233e-322) Kmag = rNULL__
if (e_Kmag .EQ. 2.2233e-322) e_Kmag = rNULL__
if (v_3_6_ .EQ. 2.2233e-322) v_3_6_ = rNULL__
if (e__3_6_ .EQ. 2.2233e-322) e__3_6_ = rNULL__
if (v_4_5_ .EQ. 2.2233e-322) v_4_5_ = rNULL__
if (e__4_5_ .EQ. 2.2233e-322) e__4_5_ = rNULL__
if (v_5_8_ .EQ. 2.2233e-322) v_5_8_ = rNULL__
if (e__5_8_ .EQ. 2.2233e-322) e__5_8_ = rNULL__
if (v_8_0_ .EQ. 2.2233e-322) v_8_0_ = rNULL__
if (e__8_0_ .EQ. 2.2233e-322) e__8_0_ = rNULL__
if (v_24_ .EQ. 2.2233e-322) v_24_ = rNULL__
if (e__24_ .EQ. 2.2233e-322) e__24_ = rNULL__
if (v_70_ .EQ. 2.2233e-322) v_70_ = rNULL__
if (e__70_ .EQ. 2.2233e-322) e__70_ = 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)
+ SRC,RAh,RAm,RAs,DE_,DEd,DEm,DEs,Jmag,e_Jmag,n_Jmag,Hmag,
+ e_Hmag,n_Hmag,Kmag,e_Kmag,n_Kmag,v_3_6_,e__3_6_,v_4_5_,
+ e__4_5_,v_5_8_,e__5_8_,v_8_0_,e__8_0_,v_24_,e__24_,v_70_,
+ e__70_,Class
write(6,'(6H Pos: 2F8.4)') RA_,Dec
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end