Conversion of standardized ReadMe file for
file /./ftp/cats/J/AJ/148/11 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/AJ/148/11 Infrared photometry in Cygnus-X (Kryukova+, 2014)
*================================================================================
*The dependence of protostellar luminosity on environment in the Cygnus-X
*star-forming complex.
* Kryukova E., Megeath S.T., Hora J.L., Gutermuth R.A., Bontemps S.,
* Kraemer K., Hennemann M., Schneider N., Smith H.A., Motte F.
* <Astron. J., 148, 11 (2014)>
* =2014AJ....148...11K
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table3.dat' ! Properties of protostar candidates in Cygnus-X
integer*4 nr__
parameter (nr__=2007) ! Number of records
character*134 ar__ ! Full-size record
C J2000 position composed of: RAh RAm RAs DEd DEm DEs
real*8 RAdeg ! (deg) Right Ascension J2000
real*8 DEdeg ! (deg) Declination J2000
C ---------------------------------- ! (position vector(s) in degrees)
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)
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) ? J band magnitude (1)
real*4 e_Jmag ! (mag) ? Uncertainty in Jmag
real*4 Hmag ! (mag) ? H band magnitude (1)
real*4 e_Hmag ! (mag) ? Uncertainty in Hmag
real*4 Ksmag ! (mag) ? Ks band magnitude (1)
real*4 e_Ksmag ! (mag) ? Uncertainty in Ksmag
real*4 v_3_6_ ! (mag) ? Spitzer/IRAC 3.6{mu}m band magnitude
real*4 e__3_6_ ! (mag) ? Uncertainty in [3.6]
real*4 v_4_5_ ! (mag) ? Spitzer/IRAC 4.5{mu}m band magnitude
real*4 e__4_5_ ! (mag) ? Uncertainty in [4.5]
real*4 v_5_8_ ! (mag) ? Spitzer/IRAC 5.8{mu}m band magnitude
real*4 e__5_8_ ! (mag) ? Uncertainty in [5.8]
real*4 v_8_0_ ! (mag) ? Spitzer/IRAC 8.0{mu}m band magnitude
real*4 e__8_0_ ! (mag) ? Uncertainty in [8.0]
real*4 v_24_ ! (mag) Spitzer/MIPS 24{mu}m band magnitude
real*4 e__24_ ! (mag) Uncertainty in 24mag
real*4 alpha ! [-0.26/3.93] Spectral index {alpha}
real*8 RMEDSQ ! [-100/224] Average RMEDSQ value <RMEDSQ>_Dc_
* within nn4 distance (4th nearest neighbor) (2)
real*4 logL ! ([Lsun]) [-1/3.6] Log luminosity
*Note (1): Preferentially from the UKIDSS (Lucas et al. 2012, cat. II/316), but
* for sources for which UKIDSS data do not exist, we use available photometry
* from the 2MASS (cat. II/246).
*Note (2): RMEDSQ is a measure of the fluctuations in the signal due to
* nebulosity and neighboring point sources in an annulus immediately
* surrounding a point source. Megeath et al. 2012 (J/AJ/144/192) define:
* RMEDSQ=[median[(S_ij_-median(S_ij_))^2^]]^1/2^, where S_ij_ is the signal
* in DN/s/pix at a given pixel position (i,j). The median values are
* determined for an annulus centered on each source; this annulus typically
* extends from 6 to 11 pixels but is increased for more luminous sources.
* We use the average RMEDSQ value of YSOs (protostar candidates projected
* on A_V_>3 regions and Class II sources) within a critical distance,
* D_c_=0.62pc (see Section 3.2), of each protostar, which we denote
* <RMEDSQ>_Dc_ value for that protostar. Using the mean RMEDSQ value for
* nearby YSOs provides a more representative measurement of the typical
* fluctuations in the regions surrounding each protostar than using only
* the RMEDSQ value for the protostar.
*
* To sort protostars by the local surface density of YSOs, we use the
* nearest-neighbor distance. This distance is found to the fourth nearest
* YSO, which we designate "nn4 distance" following the approach of
* Kryukova et al. 2012 (cat. J/AJ/144/31). To determine if a protostar
* candidate is in a high or low stellar density environment, we use the
* median nn4 distance, denoted D_c_ (for critical distance), for the
* Cygnus-X cloud nebulosity filtered sample.
*
* The meaning of negative RMEDSQ values are not explained.
C=============================================================================
C Loading file 'table3.dat' ! Properties of protostar candidates in Cygnus-X
C Format for file interpretation
1 format(
+ I2,1X,I2,1X,F5.2,1X,I2,1X,I2,1X,F5.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,
+ F5.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,F6.3,1X,F8.3,
+ 1X,F6.3)
C Effective file loading
open(unit=1,status='old',file=
+'table3.dat')
write(6,*) '....Loading file: table3.dat'
do i__=1,2007
read(1,'(A134)')ar__
read(ar__,1)
+ RAh,RAm,RAs,DEd,DEm,DEs,Jmag,e_Jmag,Hmag,e_Hmag,Ksmag,e_Ksmag,
+ 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_,alpha,RMEDSQ,logL
if(ar__(25:29) .EQ. '') Jmag = rNULL__
if(ar__(31:34) .EQ. '') e_Jmag = rNULL__
if(ar__(36:40) .EQ. '') Hmag = rNULL__
if(ar__(42:45) .EQ. '') e_Hmag = rNULL__
if(ar__(47:51) .EQ. '') Ksmag = rNULL__
if(ar__(53:56) .EQ. '') e_Ksmag = rNULL__
if(ar__(58:62) .EQ. '') v_3_6_ = rNULL__
if(ar__(64:67) .EQ. '') e__3_6_ = rNULL__
if(ar__(69:73) .EQ. '') v_4_5_ = rNULL__
if(ar__(75:78) .EQ. '') e__4_5_ = rNULL__
if(ar__(80:84) .EQ. '') v_5_8_ = rNULL__
if(ar__(86:89) .EQ. '') e__5_8_ = rNULL__
if(ar__(91:95) .EQ. '') v_8_0_ = rNULL__
if(ar__(97:100) .EQ. '') e__8_0_ = 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.
c ..............Just test output...........
write(6,1)
+ RAh,RAm,RAs,DEd,DEm,DEs,Jmag,e_Jmag,Hmag,e_Hmag,Ksmag,e_Ksmag,
+ 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_,alpha,RMEDSQ,logL
write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end