Conversion of standardized ReadMe file for
file /./ftp/cats/J/ApJ/575/354 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 2024-Apr-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__=--2147483648.) ! NULL real number parameter (iNULL__=(-2147483647-1)) ! NULL int number integer idig ! testing NULL number C============================================================================= Cat. J/ApJ/575/354 Young stellar objects in the NGC 1333 (Getman+, 2002) *================================================================================ *Chandra study of young stellar objects in the NGC 1333 star-forming cloud. * Getman K.V., Feigelson E.D., Townsley L., Bally J., Lada C.J., Reipurth B. * <Astrophys. J. 575, 354 (2002)> * =2002ApJ...575..354G C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table1.dat' ! ACIS NGC 1333 sources and stellar identifications integer*4 nr__ parameter (nr__=109) ! Number of records character*110 ar__ ! Full-size record C J2000 position composed of: RAh RAm RAs DE- 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 v_GFT2002_ (nr__) ! X-ray source number character*17 CXONGC1333 (nr__) ! X-ray source name (G1) integer*4 RAh (nr__) ! (h) Hour of Xray source Right Ascension (J2000) integer*4 RAm (nr__) ! (min) Minute of Xray source Right Ascension (J2000) real*4 RAs (nr__) ! (s) Second of Xray source Right Ascension (J2000) character*1 DE_ (nr__) ! Sign of the X-ray source Declination (J2000) integer*4 DEd (nr__) ! (deg) Degree of X-ray source Declination (J2000) integer*4 DEm (nr__) ! (arcmin) Arcminute of X-ray source Declination (J2000) real*4 DEs (nr__) ! (arcsec) Arcsecond of X-ray source Declination (J2000) real*4 Theta (nr__) ! (arcmin) Distance from the aimpoint of ACIS field integer*4 P97 (nr__) ! ? Preibisch (1997A&A...324..690P) * source number integer*4 HH (nr__) ! ? Herbig & Jones (1983AJ.....88.1040H) * optical counterpart number, HH NNA character*3 v_BR2001_ (nr__) ! [yes ] Visible in Bally & Reipurth * (2001ApJ...546..299B) H{alpha}/[S II] image real*4 X_USNO (nr__) ! (arcsec) ? Xray - USNO-A2.0 offset if listed in the * USNO-A2.0 (Cat. <I/252>) real*4 Imag (nr__) ! (mag) ? The KPNO image I band magnitude character*1 f_Imag (nr__) ! [Cy] Flag on Imag (2) integer*4 ASR (nr__) ! ? Aspin et al. (1994, Cat. <J/A+AS/106/165>) * NIR counterpart number integer*4 LAL (nr__) ! ? Lada et al. (1996AJ....111.1964L) * NIR counterpart number character*1 f_LAL (nr__) ! [B] Blending flag on LAL (3) real*4 Kmag (nr__) ! (mag) ? The Lada et al. (1996AJ....111.1964L) * K band magnitude (4) real*4 J_H (nr__) ! (mag) ? The Lada et al. (1996AJ....111.1964L) * (J-H) color index real*4 H_K (nr__) ! (mag) ? The Lada et al. (1996AJ....111.1964L) * (H-K) color index integer*4 Notes (nr__) ! ? Note code on other counterparts, * in notes.dat file *Note (2): Flag on Imag as follows: * y = star is saturated; * C = confused region where X-ray position lost in the glare of a * nearby source or reflection nebula. *Note (3): 'B' denotes blended cases where ACIS resolved a close double * that is unresolved in the infrared data. *Note (4): Except for sources 9, 35 and 51, we use the photometry of * Aspin (1994, Cat. <J/A+AS/106/165>). c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'notes.dat' ! Notes integer*4 nr__1 parameter (nr__1=50) ! Number of records character*79 ar__1 ! Full-size record integer*4 Note (nr__1) ! Code number of the note character*77 Text (nr__1) ! Text of the note c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table2.dat' ! X-ray properties of NGC 1333 sources integer*4 nr__2 parameter (nr__2=109) ! Number of records character*122 ar__2 ! Full-size record integer*4 v_GFT2002__1(nr__2) ! X-ray source number character*17 CXONGC1333_1(nr__2) ! X-ray source name (G1) integer*4 Cxtr (nr__2) ! (ct) Extracted full band (0.5-8keV) counts * from Rad integer*4 Bxtr (nr__2) ! (ct) Extracted full band (0.5-8keV) * background counts real*4 Rad (nr__2) ! (arcsec) Event extraction radius real*4 Frac (nr__2) ! Fraction of source's events within Rad real*4 CR (nr__2) ! (ct/ks) Average source count rate character*6 VClass (nr__2) ! Variability class (2) character*1 l_logNH (nr__2) ! Limit flag on logNH real*4 logNH (nr__2) ! ([cm-2]) ? Log of the model hydrogen column density real*4 e_logNH (nr__2) ! ([cm-2]) ? Lower 1{sigma} error on logNH real*4 E_logNH_1 (nr__2) ! ([cm-2]) ? Upper 1{sigma} error on logNH character*1 l_kT (nr__2) ! Limit flag on kT real*4 kT (nr__2) ! (keV) ? Model plasma energy real*4 e_kT (nr__2) ! (keV) ? Lower 1{sigma} error on kT real*4 E_kT_1 (nr__2) ! (keV) ? Upper 1{sigma} error on kT character*1 l_logLs (nr__2) ! Limit flag on logLs real*4 logLs (nr__2) ! ([10-7W]) ? Log of soft-band (0.5-2keV) luminosity (3) character*1 l_logLh (nr__2) ! Limit flag on logLh real*4 logLh (nr__2) ! ([10-7W]) ? Log of hard-band (2-8keV) luminosity (3) character*1 l_logLt (nr__2) ! Limit flag on logLt real*4 logLt (nr__2) ! ([10-7W]) ? Total band (0.5-8keV) luminosity (3) character*1 l_logLc (nr__2) ! Limit flag on logLc real*4 logLc (nr__2) ! ([10-7W]) ? Total band luminosity corrected for * estimated interstellar absorption (3) character*3 Notes_1 (nr__2) ! Details of non-standard spectral fit (4) *Note (2): Variability class as follows: * Flare = flare * Pos fl = possible flare * Const = constant *Note (3): Assuming a distance of 318pc and units of erg/s. *Note (4): Details of non-standard spectral fit as follows: * a = kT and logNH may be unreliable but are reported here to allow * the reproduction of the spline-like fits to the event distribution * for the calculation of broad-band luminosities logLt. * b = Fitted plasma energies above ~ 10 keV and column densities below * ~20.0cm^-2^ are not well-determined. * c = Foreground stars: * #5 (distance is less than 318c) and * #33 (distance is 192pc, Preibisch (1997A&A...324..690P)). * d = No spectral fit is done as a result of a small number of counts. * Most of these sources have an approximate X-ray luminosity * logLt~=10^28^erg/s. C============================================================================= C Loading file 'table1.dat' ! ACIS NGC 1333 sources and stellar identifications C Format for file interpretation 1 format( + I3,11X,A17,1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F4.1,1X,F3.1, + 1X,I2,1X,I3,1X,A3,1X,F3.1,1X,F4.1,1X,A1,1X,I3,1X,I3,1X,A1,1X, + F5.2,1X,F4.2,1X,F4.2,1X,I2) C Effective file loading open(unit=1,status='old',file= +'table1.dat') write(6,*) '....Loading file: table1.dat' do i__=1,109 read(1,'(A110)')ar__ read(ar__,1) + v_GFT2002_(i__),CXONGC1333(i__),RAh(i__),RAm(i__),RAs(i__), + DE_(i__),DEd(i__),DEm(i__),DEs(i__),Theta(i__),P97(i__), + HH(i__),v_BR2001_(i__),X_USNO(i__),Imag(i__),f_Imag(i__), + ASR(i__),LAL(i__),f_LAL(i__),Kmag(i__),J_H(i__),H_K(i__), + Notes(i__) if(ar__(61:62) .EQ. '') P97(i__) = iNULL__ if(ar__(64:66) .EQ. '') HH(i__) = iNULL__ if(ar__(72:74) .EQ. '') X_USNO(i__) = rNULL__ if(ar__(76:79) .EQ. '') Imag(i__) = rNULL__ if(ar__(83:85) .EQ. '') ASR(i__) = iNULL__ if(ar__(87:89) .EQ. '') LAL(i__) = iNULL__ if(ar__(93:97) .EQ. '') Kmag(i__) = rNULL__ if(ar__(99:102) .EQ. '') J_H(i__) = rNULL__ if(ar__(104:107) .EQ. '') H_K(i__) = rNULL__ if(ar__(109:110) .EQ. '') Notes(i__) = iNULL__ 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. if(DE_(i__).EQ.'-'.AND.DEdeg(i__).GE.0) DEdeg(i__)=-DEdeg(i__) c ..............Just test output........... write(6,1) + v_GFT2002_(i__),CXONGC1333(i__),RAh(i__),RAm(i__),RAs(i__), + DE_(i__),DEd(i__),DEm(i__),DEs(i__),Theta(i__),P97(i__), + HH(i__),v_BR2001_(i__),X_USNO(i__),Imag(i__),f_Imag(i__), + ASR(i__),LAL(i__),f_LAL(i__),Kmag(i__),J_H(i__),H_K(i__), + Notes(i__) write(6,'(6H Pos: 2F8.4)') RAdeg(i__),DEdeg(i__) c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'notes.dat' ! Notes C Format for file interpretation 2 format(I2,A77) C Effective file loading open(unit=1,status='old',file= +'notes.dat') write(6,*) '....Loading file: notes.dat' do i__=1,50 read(1,'(A79)')ar__1 read(ar__1,2)Note(i__),Text(i__) c ..............Just test output........... write(6,2)Note(i__),Text(i__) c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'table2.dat' ! X-ray properties of NGC 1333 sources C Format for file interpretation 3 format( + I3,11X,A17,1X,I4,1X,I2,1X,F4.1,1X,F4.2,1X,F4.1,1X,A6,1X,A1, + F4.1,1X,F4.1,1X,F5.2,1X,A1,F4.1,1X,F3.1,1X,F4.1,1X,A1,F4.1,1X, + A1,F4.1,1X,A1,F4.1,1X,A1,F4.1,1X,A3) C Effective file loading open(unit=1,status='old',file= +'table2.dat') write(6,*) '....Loading file: table2.dat' do i__=1,109 read(1,'(A122)')ar__2 read(ar__2,3) + v_GFT2002__1(i__),CXONGC1333_1(i__),Cxtr(i__),Bxtr(i__), + Rad(i__),Frac(i__),CR(i__),VClass(i__),l_logNH(i__), + logNH(i__),e_logNH(i__),E_logNH_1(i__),l_kT(i__),kT(i__), + e_kT(i__),E_kT_1(i__),l_logLs(i__),logLs(i__),l_logLh(i__), + logLh(i__),l_logLt(i__),logLt(i__),l_logLc(i__),logLc(i__), + Notes_1(i__) if(ar__2(64:67) .EQ. '') logNH(i__) = rNULL__ if(ar__2(69:72) .EQ. '') e_logNH(i__) = rNULL__ if(ar__2(74:78) .EQ. '') E_logNH_1(i__) = rNULL__ if(ar__2(81:84) .EQ. '') kT(i__) = rNULL__ if(ar__2(86:88) .EQ. '') e_kT(i__) = rNULL__ if(ar__2(90:93) .EQ. '') E_kT_1(i__) = rNULL__ if(ar__2(96:99) .EQ. '') logLs(i__) = rNULL__ if(ar__2(102:105) .EQ. '') logLh(i__) = rNULL__ if(ar__2(108:111) .EQ. '') logLt(i__) = rNULL__ if(ar__2(114:117) .EQ. '') logLc(i__) = rNULL__ c ..............Just test output........... write(6,3) + v_GFT2002__1(i__),CXONGC1333_1(i__),Cxtr(i__),Bxtr(i__), + Rad(i__),Frac(i__),CR(i__),VClass(i__),l_logNH(i__), + logNH(i__),e_logNH(i__),E_logNH_1(i__),l_kT(i__),kT(i__), + e_kT(i__),E_kT_1(i__),l_logLs(i__),logLs(i__),l_logLh(i__), + logLh(i__),l_logLt(i__),logLt(i__),l_logLc(i__),logLc(i__), + Notes_1(i__) c .......End.of.Just test output........... end do close(1) C============================================================================= stop end