Conversion of standardized ReadMe file for
file /./ftp/cats/J/AJ/148/11 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-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 (nr__) ! (deg) Right Ascension J2000
real*8 DEdeg (nr__) ! (deg) Declination J2000
C ---------------------------------- ! (position vector(s) in degrees)
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)
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) ? J band magnitude (1)
real*4 e_Jmag (nr__) ! (mag) ? Uncertainty in Jmag
real*4 Hmag (nr__) ! (mag) ? H band magnitude (1)
real*4 e_Hmag (nr__) ! (mag) ? Uncertainty in Hmag
real*4 Ksmag (nr__) ! (mag) ? Ks band magnitude (1)
real*4 e_Ksmag (nr__) ! (mag) ? Uncertainty in Ksmag
real*4 v_3_6_ (nr__) ! (mag) ? Spitzer/IRAC 3.6{mu}m band magnitude
real*4 e__3_6_ (nr__) ! (mag) ? Uncertainty in [3.6]
real*4 v_4_5_ (nr__) ! (mag) ? Spitzer/IRAC 4.5{mu}m band magnitude
real*4 e__4_5_ (nr__) ! (mag) ? Uncertainty in [4.5]
real*4 v_5_8_ (nr__) ! (mag) ? Spitzer/IRAC 5.8{mu}m band magnitude
real*4 e__5_8_ (nr__) ! (mag) ? Uncertainty in [5.8]
real*4 v_8_0_ (nr__) ! (mag) ? Spitzer/IRAC 8.0{mu}m band magnitude
real*4 e__8_0_ (nr__) ! (mag) ? Uncertainty in [8.0]
real*4 v_24_ (nr__) ! (mag) Spitzer/MIPS 24{mu}m band magnitude
real*4 e__24_ (nr__) ! (mag) Uncertainty in 24mag
real*4 alpha (nr__) ! [-0.26/3.93] Spectral index {alpha}
real*8 RMEDSQ (nr__) ! [-100/224] Average RMEDSQ value <RMEDSQ>_Dc_
* within nn4 distance (4th nearest neighbor) (2)
real*4 logL (nr__) ! ([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(i__),RAm(i__),RAs(i__),DEd(i__),DEm(i__),DEs(i__),
+ Jmag(i__),e_Jmag(i__),Hmag(i__),e_Hmag(i__),Ksmag(i__),
+ e_Ksmag(i__),v_3_6_(i__),e__3_6_(i__),v_4_5_(i__),
+ e__4_5_(i__),v_5_8_(i__),e__5_8_(i__),v_8_0_(i__),
+ e__8_0_(i__),v_24_(i__),e__24_(i__),alpha(i__),RMEDSQ(i__),
+ logL(i__)
if(ar__(25:29) .EQ. '') Jmag(i__) = rNULL__
if(ar__(31:34) .EQ. '') e_Jmag(i__) = rNULL__
if(ar__(36:40) .EQ. '') Hmag(i__) = rNULL__
if(ar__(42:45) .EQ. '') e_Hmag(i__) = rNULL__
if(ar__(47:51) .EQ. '') Ksmag(i__) = rNULL__
if(ar__(53:56) .EQ. '') e_Ksmag(i__) = rNULL__
if(ar__(58:62) .EQ. '') v_3_6_(i__) = rNULL__
if(ar__(64:67) .EQ. '') e__3_6_(i__) = rNULL__
if(ar__(69:73) .EQ. '') v_4_5_(i__) = rNULL__
if(ar__(75:78) .EQ. '') e__4_5_(i__) = rNULL__
if(ar__(80:84) .EQ. '') v_5_8_(i__) = rNULL__
if(ar__(86:89) .EQ. '') e__5_8_(i__) = rNULL__
if(ar__(91:95) .EQ. '') v_8_0_(i__) = rNULL__
if(ar__(97:100) .EQ. '') e__8_0_(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.
c ..............Just test output...........
write(6,1)
+ RAh(i__),RAm(i__),RAs(i__),DEd(i__),DEm(i__),DEs(i__),
+ Jmag(i__),e_Jmag(i__),Hmag(i__),e_Hmag(i__),Ksmag(i__),
+ e_Ksmag(i__),v_3_6_(i__),e__3_6_(i__),v_4_5_(i__),
+ e__4_5_(i__),v_5_8_(i__),e__5_8_(i__),v_8_0_(i__),
+ e__8_0_(i__),v_24_(i__),e__24_(i__),alpha(i__),RMEDSQ(i__),
+ logL(i__)
write(6,'(6H Pos: 2F8.4)') RAdeg(i__),DEdeg(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end