Conversion of standardized ReadMe file for
file /./ftp/cats/J/AJ/138/1116 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.5, on 2013-Jun-19
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/138/1116 A Spitzer view of NGC 2264 (Sung+, 2009)
*================================================================================
*A Spitzer view of the young open cluster NGC 2264.
* Sung H., Stauffer J.R., Bessell M.S.
* <Astron. J., 138, 1116-1136 (2009)>
* =2009AJ....138.1116S
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table1.dat' ! Catalog of sources detected with Spitzer Space
Telescope IRAC and MIPS 24 micron
integer*4 nr__
parameter (nr__=21991) ! Number of records
character*165 ar__ ! Full-size record
real*8 RA_ (nr__) ! (deg) Right Ascension J2000
real*8 Dec (nr__) ! (deg) Declination J2000
integer*4 SST (nr__) ! Running identification number (G1)
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 v_3_6_ (nr__) ! (mag) ? Spitzer/IRAC 3.6 micron band magnitude
real*4 v_4_5_ (nr__) ! (mag) ? Spitzer/IRAC 4.5 micron band magnitude
real*4 v_5_8_ (nr__) ! (mag) ? Spitzer/IRAC 5.8 micron band magnitude
real*4 v_8_0_ (nr__) ! (mag) ? Spitzer/IRAC 8.0 micron band magnitude
real*4 v_24_ (nr__) ! (mag) ? Spitzer/MIPS 24 micron band magnitude
real*4 e__3_6_ (nr__) ! (mag) ? Uncertainty in [3.6]
real*4 e__4_5_ (nr__) ! (mag) ? Uncertainty in [4.5]
real*4 e__5_8_ (nr__) ! (mag) ? Uncertainty in [5.8]
real*4 e__8_0_ (nr__) ! (mag) ? Uncertainty in [8.0]
real*4 e__24_ (nr__) ! (mag) ? Uncertainty in [24]
integer*4 o__3_6_ (nr__) ! Number of [3.6] observations
integer*4 o__4_5_ (nr__) ! Number of [4.5] observations
integer*4 o__5_8_ (nr__) ! Number of [5.8] observations
integer*4 o__8_0_ (nr__) ! Number of [8.0] observations
integer*4 o__24_ (nr__) ! Number of [24] observations
character*1 Dup (nr__) ! [D/T] Duplicity code (1)
character*8 Mem (nr__) ! Membership (2)
character*16 v2MASS (nr__) ! 2MASS identification (HHMMSSss+DDMMSSs)
character*20 Sung (nr__) ! Sung et al. identification(s) (G2)
character*13 Note (nr__) ! Counterparts of weak X-ray source (3)
*Note (1): Code as follows:
* D = SST source having two optical counterparts within 2" searching radii;
* T = SST source having three optical counterparts within 2" searching radii.
*Note (2): IR classification (Class I, II, II/III, pre-TD (pre-transition disk),
* and TD(transition disk)) and other membership listed in
* Sung et al. (2008, Cat. J/AJ/135/441) as follows:
* H = H{alpha} emission star,
* h = H{alpha} emission candidate;
* X = X-ray emission star,
* x = X-ray emission candidate;
* + = H{alpha} emission star with X-ray emission,
* - = H{alpha} emission candidate with X-ray emission,
* E = strong H{alpha} emission star from spectroscopy (EWHa>=10{AA} in Dahm &
* Simon (2005, Cat. J/AJ/129/829) or H{alpha} index >=2.5 in Reipurth et al.
* (2004, Cat. J/AJ/127/1117)),
* e = weak H{alpha} emission star from spectroscopy (EWHa<10{AA} in Dahm & Simon
* (2005, Cat. J/AJ/129/829) or H{alpha} index <=2 in Reipurth et al. (2004,
* Cat. J/AJ/127/1117));
* M = X-ray emission star with membership class "e", i.e. "M"="e"+"X".
* P = X-ray emission star with membership class "E", i.e. "P"="E"+"X";
* p = X-ray candidate with membership class "E", i.e. "p"="E"+"x".
*Note (3): 30 IRAC sources as counterparts of weak X-ray sources with
* significance between 3.3 and 5.0.
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table2.dat' ! Spitzer counterparts of X-ray sources without
optical or 2MASS counterparts
integer*4 nr__1
parameter (nr__1=43) ! Number of records
character*117 ar__1 ! Full-size record
real*8 RA__1 (nr__1) ! (deg) Right Ascension J2000
real*8 Dec_1 (nr__1) ! (deg) Declination J2000
integer*4 SST_1 (nr__1) ! Running identification number (G1)
integer*4 RAh_1 (nr__1) ! (h) Hour of Right Ascension (J2000)
integer*4 RAm_1 (nr__1) ! (min) Minute of Right Ascension (J2000)
real*4 RAs_1 (nr__1) ! (s) Second of Right Ascension (J2000)
character*1 DE__1 (nr__1) ! Sign of declination (J2000)
integer*4 DEd_1 (nr__1) ! (deg) Degree of Declination (J2000)
integer*4 DEm_1 (nr__1) ! (arcmin) Arcminute of Declination (J2000)
real*4 DEs_1 (nr__1) ! (arcsec) Arcsecond of Declination (J2000)
real*4 v_3_6__1 (nr__1) ! (mag) ? Spitzer/IRAC 3.6 micron band magnitude
real*4 v_4_5__1 (nr__1) ! (mag) Spitzer/IRAC 4.5 micron band magnitude
real*4 v_5_8__1 (nr__1) ! (mag) ? Spitzer/IRAC 5.8 micron band magnitude
real*4 v_8_0__1 (nr__1) ! (mag) ? Spitzer/IRAC 8.0 micron band magnitude
real*4 v_24__1 (nr__1) ! (mag) ? Spitzer/MIPS 24 micron band magnitude
real*4 e__3_6__1 (nr__1) ! (mag) ? Uncertainty in [3.6]
real*4 e__4_5__1 (nr__1) ! (mag) Uncertainty in [4.5]
real*4 e__5_8__1 (nr__1) ! (mag) ? Uncertainty in [5.8]
real*4 e__8_0__1 (nr__1) ! (mag) ? Uncertainty in [8.0]
real*4 e__24__1 (nr__1) ! (mag) ? Uncertainty in [24]
integer*4 o__3_6__1 (nr__1) ! Number of [3.6] observations
integer*4 o__4_5__1 (nr__1) ! Number of [4.5] observations
integer*4 o__5_8__1 (nr__1) ! Number of [5.8] observations
integer*4 o__8_0__1 (nr__1) ! Number of [8.0] observations
integer*4 o__24__1 (nr__1) ! Number of [24] observations
character*6 Class (nr__1) ! Object classification (Galaxy, I, II or II/III)
real*4 Signi (nr__1) ! X-ray detection significance (1)
real*4 Dist (nr__1) ! (arcsec) Distance Spitzer/X-ray
*Note (1): X-ray detection significance from "pwdetect" (see Sung et al. 2004,
* Cat. J/AJ/128/1684; Flaccomio et al. 2006, Cat. J/A+A/455/903).
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table3.dat' ! Variables detected in IRAC [3.6] and [4.5]
integer*4 nr__2
parameter (nr__2=28) ! Number of records
character*102 ar__2 ! Full-size record
integer*4 SST_2 (nr__2) ! Running identification number (G1)
character*1 f_SST (nr__2) ! [a] long exposure images used (1)
real*4 v_3_6_6 (nr__2) ! (mag) ? Spitzer/IRAC 3.6 micron band magnitude on
* 2004 Mar 6
real*4 e__3_6_6 (nr__2) ! (mag) ? Uncertainty in [3.6]
real*4 v_3_6_8 (nr__2) ! (mag) ? Spitzer/IRAC 3.6 micron band magnitude on
* 2004 Oct 8
real*4 e__3_6_8 (nr__2) ! (mag) ? Uncertainty in [3.6]
real*4 d_3_6_ (nr__2) ! (mag) ? [3.6] difference
real*4 v_4_5_6 (nr__2) ! (mag) ? Spitzer/IRAC [4.5 micron band magnitude on
* 2004 Mar 6
real*4 e__4_5_6 (nr__2) ! (mag) ? Uncertainty in [4.5]
real*4 v_4_5_8 (nr__2) ! (mag) ? Spitzer/IRAC 4.5 micron band magnitude on
* 2004 Oct 8
real*4 e__4_5_8 (nr__2) ! (mag) ? Uncertainty in [4.5]
real*4 d_4_5_ (nr__2) ! (mag) ? [4.5] difference
character*6 Class_1 (nr__2) ! Infra-red classification (I, II or II/III)
character*8 Other (nr__2) ! Other classification (X or X+Halpha)
character*13 OName (nr__2) ! Sung et al. identification(s) (G2)
*Note (1):
* a = Used only data from long exposure images because short and long exposure
* images show large systematic differences probably due to the nearby
* bright star SST 13808.
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table5.dat' ! New BMS star candidates (stars below the
pre-main-sequence locus)
integer*4 nr__3
parameter (nr__3=10) ! Number of records
character*82 ar__3 ! Full-size record
integer*4 SST_3 (nr__3) ! Running identification number (G1)
character*1 n_SST (nr__3) ! [bc] Note on source (1)
character*13 OName_1 (nr__3) ! Sung et al. identification(s) (G2)
real*4 v_3_6__2 (nr__3) ! (mag) Spitzer/IRAC 3.6 micron band magnitude
real*4 v_4_5__2 (nr__3) ! (mag) Spitzer/IRAC 4.5 micron band magnitude
real*4 v_5_8__2 (nr__3) ! (mag) Spitzer/IRAC 5.8 micron band magnitude
real*4 v_8_0__2 (nr__3) ! (mag) Spitzer/IRAC 8.0 micron band magnitude
real*4 v_24__2 (nr__3) ! (mag) ? Spitzer/MIPS 24 micron band magnitude
character*3 Ha_ (nr__3) ! [Yes/No/? ] H{alpha} emission?
character*2 Class_2 (nr__3) ! IR classification (I or II)
real*4 SED (nr__3) ! SED slope
real*4 e_SED (nr__3) ! SED uncertainty
real*4 Qcc (nr__3) ! Mean value of a YSO class Q_CC_ (2)
real*4 D_I (nr__3) ! Magnitude difference from the faint limit of
* the PMS locus in NGC 2264
*Note (1): Flag as follows:
* b = If the actual optical counterpart of SST 10184 is C30962, then SST 10184
* may be a SFG with PAH emission. See Section 2.5.
* c = Ogura (1984PASJ...36..139O) noted as an H{alpha} emission star, but no
* signature of H{alpha} emission from CCD photometry was detected.
*Note (2): The mean value of a YSO class (Cl_i_) (call this quantity Q_CC_) is:
* Q_CC_={Sigma}_i_Cl_i_xq_i_xw_i_/{Sigma}_i_q_i_xw_i_
* where q_i_ and w_i_ are different weights. See section 3.1.
C=============================================================================
C Loading file 'table1.dat' ! Catalog of sources detected with Spitzer Space
* Telescope IRAC and MIPS 24 micron
C Format for file interpretation
1 format(
+ I5,1X,I1,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F4.1,1X,F6.3,1X,F6.3,
+ 1X,F6.3,1X,F6.3,1X,F5.3,1X,F5.3,1X,F5.3,1X,F5.3,1X,F5.3,1X,
+ F5.3,1X,I1,1X,I1,1X,I1,1X,I1,1X,I1,1X,A1,1X,A8,1X,A16,1X,A20,
+ 1X,A13)
C Effective file loading
open(unit=1,file='table1.dat', status='old')
write(6,*) '....Loading file: table1.dat'
do i__=1,21991
read(1,'(A165)')ar__
read(ar__,1)
+ SST(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__),
+ DEm(i__),DEs(i__),v_3_6_(i__),v_4_5_(i__),v_5_8_(i__),
+ v_8_0_(i__),v_24_(i__),e__3_6_(i__),e__4_5_(i__),e__5_8_(i__),
+ e__8_0_(i__),e__24_(i__),o__3_6_(i__),o__4_5_(i__),
+ o__5_8_(i__),o__8_0_(i__),o__24_(i__),Dup(i__),Mem(i__),
+ v2MASS(i__),Sung(i__),Note(i__)
if(ar__(30:35) .EQ. '') v_3_6_(i__) = rNULL__
if(ar__(37:42) .EQ. '') v_4_5_(i__) = rNULL__
if(ar__(44:49) .EQ. '') v_5_8_(i__) = rNULL__
if(ar__(51:56) .EQ. '') v_8_0_(i__) = rNULL__
if(ar__(58:62) .EQ. '') v_24_(i__) = rNULL__
if(ar__(64:68) .EQ. '') e__3_6_(i__) = rNULL__
if(ar__(70:74) .EQ. '') e__4_5_(i__) = rNULL__
if(ar__(76:80) .EQ. '') e__5_8_(i__) = rNULL__
if(ar__(82:86) .EQ. '') e__8_0_(i__) = rNULL__
if(ar__(88:92) .EQ. '') e__24_(i__) = rNULL__
c Derive coordinates RA_ and Dec from input data
c (RA_ and Dec are set to rNULL_ when unknown)
RA_(i__) = RAh(i__)
if(RAh(i__) .GE. 0) RA_(i__)=RAh(i__)*15.
if(RAm(i__) .GE. 0) RA_(i__)=RA_(i__)+RAm(i__)/4.
if(RAs(i__) .GE. 0) RA_(i__)=RA_(i__)+RAs(i__)/240.
Dec(i__) = DEd(i__)
if(DEm(i__) .GE. 0) Dec(i__)=Dec(i__)+DEm(i__)/60.
if(DEs(i__) .GE. 0) Dec(i__)=Dec(i__)+DEs(i__)/3600.
if(DE_(i__).EQ.'-'.AND.Dec(i__).GE.0) Dec(i__)=-Dec(i__)
c ..............Just test output...........
write(6,1)
+ SST(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__),
+ DEm(i__),DEs(i__),v_3_6_(i__),v_4_5_(i__),v_5_8_(i__),
+ v_8_0_(i__),v_24_(i__),e__3_6_(i__),e__4_5_(i__),e__5_8_(i__),
+ e__8_0_(i__),e__24_(i__),o__3_6_(i__),o__4_5_(i__),
+ o__5_8_(i__),o__8_0_(i__),o__24_(i__),Dup(i__),Mem(i__),
+ v2MASS(i__),Sung(i__),Note(i__)
write(6,'(6H Pos: 2F8.4)') RA_(i__),Dec(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table2.dat' ! Spitzer counterparts of X-ray sources without
* optical or 2MASS counterparts
C Format for file interpretation
2 format(
+ I5,1X,I1,1X,I2,1X,F5.2,1X,A1,I1,1X,I2,1X,F4.1,1X,F6.3,1X,F6.3,
+ 1X,F6.3,1X,F6.3,1X,F5.3,1X,F5.3,1X,F5.3,1X,F5.3,1X,F5.3,1X,
+ F5.3,1X,I1,1X,I1,1X,I1,1X,I1,1X,I1,1X,A6,1X,F4.1,1X,F3.1)
C Effective file loading
open(unit=1,file='table2.dat', status='old')
write(6,*) '....Loading file: table2.dat'
do i__=1,43
read(1,'(A117)')ar__1
read(ar__1,2)
+ SST_1(i__),RAh_1(i__),RAm_1(i__),RAs_1(i__),DE__1(i__),
+ DEd_1(i__),DEm_1(i__),DEs_1(i__),v_3_6__1(i__),v_4_5__1(i__),
+ v_5_8__1(i__),v_8_0__1(i__),v_24__1(i__),e__3_6__1(i__),
+ e__4_5__1(i__),e__5_8__1(i__),e__8_0__1(i__),e__24__1(i__),
+ o__3_6__1(i__),o__4_5__1(i__),o__5_8__1(i__),o__8_0__1(i__),
+ o__24__1(i__),Class(i__),Signi(i__),Dist(i__)
if(ar__1(29:34) .EQ. '') v_3_6__1(i__) = rNULL__
if(ar__1(43:48) .EQ. '') v_5_8__1(i__) = rNULL__
if(ar__1(50:55) .EQ. '') v_8_0__1(i__) = rNULL__
if(ar__1(57:61) .EQ. '') v_24__1(i__) = rNULL__
if(ar__1(63:67) .EQ. '') e__3_6__1(i__) = rNULL__
if(ar__1(75:79) .EQ. '') e__5_8__1(i__) = rNULL__
if(ar__1(81:85) .EQ. '') e__8_0__1(i__) = rNULL__
if(ar__1(87:91) .EQ. '') e__24__1(i__) = rNULL__
c Derive coordinates RA__1 and Dec_1 from input data
c (RA__1 and Dec_1 are set to rNULL_ when unknown)
RA__1(i__) = RAh_1(i__)
if(RAh_1(i__) .GE. 0) RA__1(i__)=RAh_1(i__)*15.
if(RAm_1(i__) .GE. 0) RA__1(i__)=RA__1(i__)+RAm_1(i__)/4.
if(RAs_1(i__) .GE. 0) RA__1(i__)=RA__1(i__)+RAs_1(i__)/240.
Dec_1(i__) = DEd_1(i__)
if(DEm_1(i__) .GE. 0) Dec_1(i__)=Dec_1(i__)+DEm_1(i__)/60.
if(DEs_1(i__) .GE. 0) Dec_1(i__)=Dec_1(i__)+DEs_1(i__)/3600.
if(DE__1(i__).EQ.'-'.AND.Dec_1(i__).GE.0) Dec_1(i__)=-Dec_1(i__)
c ..............Just test output...........
write(6,2)
+ SST_1(i__),RAh_1(i__),RAm_1(i__),RAs_1(i__),DE__1(i__),
+ DEd_1(i__),DEm_1(i__),DEs_1(i__),v_3_6__1(i__),v_4_5__1(i__),
+ v_5_8__1(i__),v_8_0__1(i__),v_24__1(i__),e__3_6__1(i__),
+ e__4_5__1(i__),e__5_8__1(i__),e__8_0__1(i__),e__24__1(i__),
+ o__3_6__1(i__),o__4_5__1(i__),o__5_8__1(i__),o__8_0__1(i__),
+ o__24__1(i__),Class(i__),Signi(i__),Dist(i__)
write(6,'(6H Pos: 2F8.4)') RA__1(i__),Dec_1(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table3.dat' ! Variables detected in IRAC [3.6] and [4.5]
C Format for file interpretation
3 format(
+ I5,A1,1X,F6.3,1X,F5.3,1X,F6.3,1X,F5.3,1X,F6.3,1X,F6.3,1X,F5.3,
+ 1X,F6.3,1X,F5.3,1X,F6.3,1X,A6,1X,A8,1X,A13)
C Effective file loading
open(unit=1,file='table3.dat', status='old')
write(6,*) '....Loading file: table3.dat'
do i__=1,28
read(1,'(A102)')ar__2
read(ar__2,3)
+ SST_2(i__),f_SST(i__),v_3_6_6(i__),e__3_6_6(i__),v_3_6_8(i__),
+ e__3_6_8(i__),d_3_6_(i__),v_4_5_6(i__),e__4_5_6(i__),
+ v_4_5_8(i__),e__4_5_8(i__),d_4_5_(i__),Class_1(i__),
+ Other(i__),OName(i__)
if(ar__2(8:13) .EQ. '') v_3_6_6(i__) = rNULL__
if(ar__2(15:19) .EQ. '') e__3_6_6(i__) = rNULL__
if(ar__2(21:26) .EQ. '') v_3_6_8(i__) = rNULL__
if(ar__2(28:32) .EQ. '') e__3_6_8(i__) = rNULL__
if(ar__2(34:39) .EQ. '') d_3_6_(i__) = rNULL__
if(ar__2(41:46) .EQ. '') v_4_5_6(i__) = rNULL__
if(ar__2(48:52) .EQ. '') e__4_5_6(i__) = rNULL__
if(ar__2(54:59) .EQ. '') v_4_5_8(i__) = rNULL__
if(ar__2(61:65) .EQ. '') e__4_5_8(i__) = rNULL__
if(ar__2(67:72) .EQ. '') d_4_5_(i__) = rNULL__
c ..............Just test output...........
write(6,3)
+ SST_2(i__),f_SST(i__),v_3_6_6(i__),e__3_6_6(i__),v_3_6_8(i__),
+ e__3_6_8(i__),d_3_6_(i__),v_4_5_6(i__),e__4_5_6(i__),
+ v_4_5_8(i__),e__4_5_8(i__),d_4_5_(i__),Class_1(i__),
+ Other(i__),OName(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table5.dat' ! New BMS star candidates (stars below the
* pre-main-sequence locus)
C Format for file interpretation
4 format(
+ I5,A1,1X,A13,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,F5.3,1X,A3,1X,
+ A2,1X,F5.2,1X,F4.2,1X,F3.1,1X,F5.2)
C Effective file loading
open(unit=1,file='table5.dat', status='old')
write(6,*) '....Loading file: table5.dat'
do i__=1,10
read(1,'(A82)')ar__3
read(ar__3,4)
+ SST_3(i__),n_SST(i__),OName_1(i__),v_3_6__2(i__),
+ v_4_5__2(i__),v_5_8__2(i__),v_8_0__2(i__),v_24__2(i__),
+ Ha_(i__),Class_2(i__),SED(i__),e_SED(i__),Qcc(i__),D_I(i__)
if(ar__3(50:54) .EQ. '') v_24__2(i__) = rNULL__
c ..............Just test output...........
write(6,4)
+ SST_3(i__),n_SST(i__),OName_1(i__),v_3_6__2(i__),
+ v_4_5__2(i__),v_5_8__2(i__),v_8_0__2(i__),v_24__2(i__),
+ Ha_(i__),Class_2(i__),SED(i__),e_SED(i__),Qcc(i__),D_I(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end