Conversion of standardized ReadMe file for
file /./ftp/cats/J/AJ/135/693 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 2024-Apr-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__=--2147483648.) ! NULL real number parameter (iNULL__=(-2147483647-1)) ! NULL int number integer idig ! testing NULL number C============================================================================= Cat. J/AJ/135/693 X-ray and IR sources in RCW 108 (Wolk+, 2008) *================================================================================ *X-ray and IR point source identification and characteristics in the embedded, *massive star-forming region RCW 108. * Wolk S.J., Spitzbart B.D., Bourke T.L., Gutermuth R.A., Vigil M., * Comeron F. * <Astron. J., 135, 693-721 (2008)> * =2008AJ....135..693W C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table1.dat' ! Bright X-ray sources detected in the RCW 108 field integer*4 nr__ parameter (nr__=337) ! Number of records character*73 ar__ ! Full-size record C J2000 position composed of: RAh RAm RAs DE- DEd DEm DEs real*8 RAdeg ! (deg) Right Ascension J2000 real*8 DEdeg ! (deg) Declination J2000 C ---------------------------------- ! (position vector(s) in degrees) integer*4 Src ! Running source number ([WSB2008] in Simbad) character*17 CXOWSB ! Official IAU style identification * (HHMMSS.s+DDMMSS.s) integer*4 RAh ! (h) X-ray centroid hour of Right Ascension (J2000) integer*4 RAm ! (min) X-ray centroid minute of Right Ascension (J2000) real*4 RAs ! (s) X-ray centroid second of Right Ascension (J2000) character*1 DE_ ! X-ray centroid sign of the Declination (J2000) integer*4 DEd ! (deg) X-ray centroid degree of Declination (J2000) integer*4 DEm ! (arcmin) X-ray centroid arcminute of Declination (J2000) real*4 DEs ! (arcsec) X-ray centroid arcsecond of Declination (J2000) real*4 Off ! (arcsec) Off axis angle real*4 Rcts ! (ct) ? Raw counts (only for table1) real*4 Ssig ! (ct) ? Source signal (only for table2) real*4 Ncts ! (ct) Net counts integer*4 Var ! [1/7]? Number of Bayesian block >95% confidence * required to describe the lightcurve (table1) (1) *Note (1): Any number >1 indicates variability at 95% confidence. c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table2.dat' ! Faint X-ray sources detected in the RCW 108 field integer*4 nr__1 parameter (nr__1=87) ! Number of records character*73 ar__1 ! Full-size record C J2000 position composed of: RAh RAm RAs DE- DEd DEm DEs real*8 RAdeg_1 ! (deg) Right Ascension J2000 real*8 DEdeg_1 ! (deg) Declination J2000 C ---------------------------------- ! (position vector(s) in degrees) integer*4 Src_1 ! Running source number ([WSB2008] in Simbad) character*17 CXOWSB_1 ! Official IAU style identification * (HHMMSS.s+DDMMSS.s) integer*4 RAh_1 ! (h) X-ray centroid hour of Right Ascension (J2000) integer*4 RAm_1 ! (min) X-ray centroid minute of Right Ascension (J2000) real*4 RAs_1 ! (s) X-ray centroid second of Right Ascension (J2000) character*1 DE__1 ! X-ray centroid sign of the Declination (J2000) integer*4 DEd_1 ! (deg) X-ray centroid degree of Declination (J2000) integer*4 DEm_1 ! (arcmin) X-ray centroid arcminute of Declination (J2000) real*4 DEs_1 ! (arcsec) X-ray centroid arcsecond of Declination (J2000) real*4 Off_1 ! (arcsec) Off axis angle real*4 Rcts_1 ! (ct) ? Raw counts (only for table1) real*4 Ssig_1 ! (ct) ? Source signal (only for table2) real*4 Ncts_1 ! (ct) Net counts integer*4 Var_1 ! [1/7]? Number of Bayesian block >95% confidence * required to describe the lightcurve (table1) (1) *Note (1): Any number >1 indicates variability at 95% confidence. c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table5.dat' ! Quartile values of X-ray sources integer*4 nr__2 parameter (nr__2=336) ! Number of records character*58 ar__2 ! Full-size record character*5 Loc1 ! Location (Inner/East/West/North/South) integer*4 Src_2 ! Running source number real*4 Q25 ! ? The bottom (25%) quartile value real*4 e_Q25 ! ? Error in Q25 real*4 m ! ? The median quartile (=Q50) real*4 e_m ! ? Error in m real*4 Q75 ! ? The top (75%) quartile value real*4 e_Q75 ! ? Error in Q75 real*4 log_m__1_m_ ! ([-]) ? Log of the m/(1-m) value real*4 v3_Q25_Q75 ! ? Three times Q25 divided by Q75 c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table7.dat' ! One temperature spectral fits integer*4 nr__3 parameter (nr__3=337) ! Number of records character*64 ar__3 ! Full-size record character*10 Loc ! Location (RCW 108-IR/East/West/North/South) integer*4 Src_3 ! Running source number real*4 chi2 ! The {chi}^2^ value (1) real*4 NH ! (10+22/cm2) Model hydrogen column density real*4 e_NH ! (10+22/cm2) ? Error in NH character*1 l_kT ! Limit flag on kT real*4 kT ! (keV) Model temperature real*4 e_kT ! (keV) ? Error in kT real*4 AFlux ! ([mW/m2]) Absorbed flux real*4 UFlux ! ([mW/m2]) Unabsorbed flux real*4 LogLx ! ([10-7W]) Log of X-ray luminosity *Note (1): Per degree of freedom. {chi}^2^/d.o.f is included for * completeness. These models were calculated with C statistics, it is * unclear how {chi}^2^/d.o.f relates to goodness of fit. The formal * errors are unbiased however. See text. c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table10.dat' ! Near-IR observations of X-ray sources integer*4 nr__4 parameter (nr__4=367) ! Number of records character*115 ar__4 ! Full-size record C J2000 position composed of: RAh RAm RAs DE- DEd DEm DEs real*8 RAdeg_2 ! (deg) Right Ascension J2000 real*8 DEdeg_2 ! (deg) Declination J2000 C ---------------------------------- ! (position vector(s) in degrees) character*10 Loc_1 ! Location (RCW 108-IR/East/West/North/South) integer*4 Src_4 ! Running source number character*1 f_Src ! [a] double source (1) integer*4 RAh_2 ! (h) IR source hour of Right Ascension (J2000) integer*4 RAm_2 ! (min) IR source minute of Right Ascension (J2000) real*4 RAs_2 ! (s) IR source second of Right Ascension (J2000) character*1 DE__2 ! IR source sign of the Declination (J2000) integer*4 DEd_2 ! (deg) IR source degree of Declination (J2000) integer*4 DEm_2 ! (arcmin) IR source arcminute of Declination (J2000) real*4 DEs_2 ! (arcsec) IR source arcsecond of Declination (J2000) real*4 Offset ! (arcsec) ? Offset from X-ray centroid position real*4 Off_2 ! (arcsec) Off axis angle real*4 Jmag ! (mag) ? The J band magnitude real*4 e_Jmag ! (mag) ? Error in Jmag real*4 Hmag ! (mag) ? The H band magnitude real*4 e_Hmag ! (mag) ? Error in Hmag real*4 Ksmag ! (mag) ? The K_S_ band magnitude real*4 e_Ksmag ! (mag) ? Error in Kmag real*4 Qmag ! (mag) ? Infrared excess, reddening free quantity (2) real*4 AV ! (mag) ? The V band extinction character*6 Model ! Stellar model used (Disk, M star or * HMS = Higher mass star) character*3 Flag ! Source flag (4) *Note (1): VLT adaptive optics data indicate this source is a double. *Note (2): Using the reddening free quantity: Q=(J-H)-1.70*(H-K_S_). *Note (4): Sources flag as follows: * VLT = data are from the Very Large Telescope, reduction discussed in * Comeron & Schneider (2007, Cat. <J/A+A/473/149>); * NTT = data are from New Technology Telescope, reduction discussed in * Comeron et al. (2005A&A...433..955C); * The codes AAA, UAB, UAU, AAU, etc. represent the 2MASS (Cat. II/246) * photometry quality codes for the JHK channels: * A = error<10.9%, * B = error<15.6%, * E = This category includes detections where the goodness-of-fit * quality of the profile-fit photometry was very poor * U = upper limit c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table11.dat' ! IRAC detections of X-ray sources in the RCW 108 field integer*4 nr__5 parameter (nr__5=235) ! Number of records character*75 ar__5 ! Full-size record character*10 Loc_2 ! Location (RCW 108-IR/East/West/North/South) integer*4 Src_5 ! Running source number real*4 Offset_1 ! (arcsec) Offset from X-ray centroid position character*6 Off_3 ! (arcsec) Off axis angle real*4 v3_6mag ! (mag) ? Spitzer/IRAC 3.6 micron band magnitude real*4 v4_5mag ! (mag) ? Spitzer/IRAC 4.5 micron band magnitude real*4 v5_8mag ! (mag) ? Spitzer/IRAC 5.8 micron band magnitude real*4 v8_0mag ! (mag) ? Spitzer/IRAC 8.0 micron band magnitude real*4 e_3_6mag ! (mag) ? Error in 3.6mag real*4 e_4_5mag ! (mag) ? Error in 4.5mag real*4 e_5_8mag ! (mag) ? Error in 5.8mag real*4 e_8_0mag ! (mag) ? Error in 8.0mag character*3 Class ! IR evolution class (I=protostars, II=PMS with * disk, III=diskless PMS star) C============================================================================= C Loading file 'table1.dat' ! Bright X-ray sources detected in the RCW 108 field C Format for file interpretation 1 format( + I3,1X,A17,1X,I2,1X,I2,1X,F6.3,1X,A1,I2,1X,I2,1X,F5.2,1X,F5.1, + 1X,F6.1,1X,F3.1,1X,F6.1,1X,I1) C Effective file loading open(unit=1,status='old',file= +'table1.dat') write(6,*) '....Loading file: table1.dat' do i__=1,337 read(1,'(A73)')ar__ read(ar__,1) + Src,CXOWSB,RAh,RAm,RAs,DE_,DEd,DEm,DEs,Off,Rcts,Ssig,Ncts,Var if(ar__(55:60) .EQ. '') Rcts = rNULL__ if(ar__(62:64) .EQ. '') Ssig = rNULL__ if(ar__(73:73) .EQ. '') Var = iNULL__ 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. if(DE_.EQ.'-'.AND.DEdeg.GE.0) DEdeg=-DEdeg c ..............Just test output........... write(6,1) + Src,CXOWSB,RAh,RAm,RAs,DE_,DEd,DEm,DEs,Off,Rcts,Ssig,Ncts,Var write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'table2.dat' ! Faint X-ray sources detected in the RCW 108 field C Format for file interpretation 2 format( + I3,1X,A17,1X,I2,1X,I2,1X,F6.3,1X,A1,I2,1X,I2,1X,F5.2,1X,F5.1, + 1X,F6.1,1X,F3.1,1X,F6.1,1X,I1) C Effective file loading open(unit=1,status='old',file= +'table2.dat') write(6,*) '....Loading file: table2.dat' do i__=1,87 read(1,'(A73)')ar__1 read(ar__1,2) + Src_1,CXOWSB_1,RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,DEs_1, + Off_1,Rcts_1,Ssig_1,Ncts_1,Var_1 if(ar__1(55:60) .EQ. '') Rcts_1 = rNULL__ if(ar__1(62:64) .EQ. '') Ssig_1 = rNULL__ if(ar__1(73:73) .EQ. '') Var_1 = iNULL__ RAdeg_1 = rNULL__ DEdeg_1 = rNULL__ c Derive coordinates RAdeg_1 and DEdeg_1 from input data c (RAdeg_1 and DEdeg_1 are set to rNULL__ when unknown) if(RAh_1 .GT. -180) RAdeg_1=RAh_1*15. if(RAm_1 .GT. -180) RAdeg_1=RAdeg_1+RAm_1/4. if(RAs_1 .GT. -180) RAdeg_1=RAdeg_1+RAs_1/240. if(DEd_1 .GE. 0) DEdeg_1=DEd_1 if(DEm_1 .GE. 0) DEdeg_1=DEdeg_1+DEm_1/60. if(DEs_1 .GE. 0) DEdeg_1=DEdeg_1+DEs_1/3600. if(DE__1.EQ.'-'.AND.DEdeg_1.GE.0) DEdeg_1=-DEdeg_1 c ..............Just test output........... write(6,2) + Src_1,CXOWSB_1,RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,DEs_1, + Off_1,Rcts_1,Ssig_1,Ncts_1,Var_1 write(6,'(6H Pos: 2F8.4)') RAdeg_1,DEdeg_1 c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'table5.dat' ! Quartile values of X-ray sources C Format for file interpretation 3 format( + A5,1X,I3,1X,F5.3,1X,F5.3,1X,F5.3,1X,F5.3,1X,F5.3,1X,F5.3,1X, + F6.3,1X,F5.3) C Effective file loading open(unit=1,status='old',file= +'table5.dat') write(6,*) '....Loading file: table5.dat' do i__=1,336 read(1,'(A58)')ar__2 read(ar__2,3) + Loc1,Src_2,Q25,e_Q25,m,e_m,Q75,e_Q75,log_m__1_m_,v3_Q25_Q75 if(ar__2(11:15) .EQ. '') Q25 = rNULL__ if(ar__2(17:21) .EQ. '') e_Q25 = rNULL__ if(ar__2(23:27) .EQ. '') m = rNULL__ if(ar__2(29:33) .EQ. '') e_m = rNULL__ if(ar__2(35:39) .EQ. '') Q75 = rNULL__ if(ar__2(41:45) .EQ. '') e_Q75 = rNULL__ if(ar__2(47:52) .EQ. '') log_m__1_m_ = rNULL__ if(ar__2(54:58) .EQ. '') v3_Q25_Q75 = rNULL__ c ..............Just test output........... write(6,3) + Loc1,Src_2,Q25,e_Q25,m,e_m,Q75,e_Q75,log_m__1_m_,v3_Q25_Q75 c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'table7.dat' ! One temperature spectral fits C Format for file interpretation 4 format( + A10,1X,I3,1X,F4.2,1X,F5.2,1X,F4.2,1X,A1,1X,F5.2,1X,F5.2,1X, + F6.2,1X,F6.2,1X,F5.2) C Effective file loading open(unit=1,status='old',file= +'table7.dat') write(6,*) '....Loading file: table7.dat' do i__=1,337 read(1,'(A64)')ar__3 read(ar__3,4) + Loc,Src_3,chi2,NH,e_NH,l_kT,kT,e_kT,AFlux,UFlux,LogLx if(ar__3(27:30) .EQ. '') e_NH = rNULL__ if(ar__3(40:44) .EQ. '') e_kT = rNULL__ c ..............Just test output........... write(6,4) + Loc,Src_3,chi2,NH,e_NH,l_kT,kT,e_kT,AFlux,UFlux,LogLx c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'table10.dat' ! Near-IR observations of X-ray sources C Format for file interpretation 5 format( + A10,1X,I3,1X,A1,1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F4.1,1X, + F5.3,1X,F5.1,1X,F5.2,1X,F6.4,1X,F5.2,1X,F6.4,1X,F6.3,1X,F6.4, + 1X,F5.2,1X,F5.2,1X,A6,1X,A3) C Effective file loading open(unit=1,status='old',file= +'table10.dat') write(6,*) '....Loading file: table10.dat' do i__=1,367 read(1,'(A115)')ar__4 read(ar__4,5) + Loc_1,Src_4,f_Src,RAh_2,RAm_2,RAs_2,DE__2,DEd_2,DEm_2,DEs_2, + Offset,Off_2,Jmag,e_Jmag,Hmag,e_Hmag,Ksmag,e_Ksmag,Qmag,AV, + Model,Flag if(ar__4(42:46) .EQ. '') Offset = rNULL__ if(ar__4(54:58) .EQ. '') Jmag = rNULL__ if(ar__4(60:65) .EQ. '') e_Jmag = rNULL__ if(ar__4(67:71) .EQ. '') Hmag = rNULL__ if(ar__4(73:78) .EQ. '') e_Hmag = rNULL__ if(ar__4(80:85) .EQ. '') Ksmag = rNULL__ if(ar__4(87:92) .EQ. '') e_Ksmag = rNULL__ if(ar__4(94:98) .EQ. '') Qmag = rNULL__ if(ar__4(100:104) .EQ. '') AV = rNULL__ RAdeg_2 = rNULL__ DEdeg_2 = rNULL__ c Derive coordinates RAdeg_2 and DEdeg_2 from input data c (RAdeg_2 and DEdeg_2 are set to rNULL__ when unknown) if(RAh_2 .GT. -180) RAdeg_2=RAh_2*15. if(RAm_2 .GT. -180) RAdeg_2=RAdeg_2+RAm_2/4. if(RAs_2 .GT. -180) RAdeg_2=RAdeg_2+RAs_2/240. if(DEd_2 .GE. 0) DEdeg_2=DEd_2 if(DEm_2 .GE. 0) DEdeg_2=DEdeg_2+DEm_2/60. if(DEs_2 .GE. 0) DEdeg_2=DEdeg_2+DEs_2/3600. if(DE__2.EQ.'-'.AND.DEdeg_2.GE.0) DEdeg_2=-DEdeg_2 c ..............Just test output........... write(6,5) + Loc_1,Src_4,f_Src,RAh_2,RAm_2,RAs_2,DE__2,DEd_2,DEm_2,DEs_2, + Offset,Off_2,Jmag,e_Jmag,Hmag,e_Hmag,Ksmag,e_Ksmag,Qmag,AV, + Model,Flag write(6,'(6H Pos: 2F8.4)') RAdeg_2,DEdeg_2 c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'table11.dat' ! IRAC detections of X-ray sources in the RCW 108 field C Format for file interpretation 6 format( + A10,1X,I3,1X,F5.3,1X,A6,1X,F5.2,1X,F5.2,1X,F5.2,1X,F5.2,1X, + F4.2,1X,F4.2,1X,F4.2,1X,F4.2,1X,A3) C Effective file loading open(unit=1,status='old',file= +'table11.dat') write(6,*) '....Loading file: table11.dat' do i__=1,235 read(1,'(A75)')ar__5 read(ar__5,6) + Loc_2,Src_5,Offset_1,Off_3,v3_6mag,v4_5mag,v5_8mag,v8_0mag, + e_3_6mag,e_4_5mag,e_5_8mag,e_8_0mag,Class if(ar__5(29:33) .EQ. '') v3_6mag = rNULL__ if(ar__5(35:39) .EQ. '') v4_5mag = rNULL__ if(ar__5(41:45) .EQ. '') v5_8mag = rNULL__ if(ar__5(47:51) .EQ. '') v8_0mag = rNULL__ if(ar__5(53:56) .EQ. '') e_3_6mag = rNULL__ if(ar__5(58:61) .EQ. '') e_4_5mag = rNULL__ if(ar__5(63:66) .EQ. '') e_5_8mag = rNULL__ if(ar__5(68:71) .EQ. '') e_8_0mag = rNULL__ c ..............Just test output........... write(6,6) + Loc_2,Src_5,Offset_1,Off_3,v3_6mag,v4_5mag,v5_8mag,v8_0mag, + e_3_6mag,e_4_5mag,e_5_8mag,e_8_0mag,Class c .......End.of.Just test output........... end do close(1) C============================================================================= stop end