Conversion of standardized ReadMe file for
file /./ftp/cats/J/A_A/606/A76 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-20 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/A+A/606/A76 The ESO DIBs Large Exploration Survey (Cox+, 2017) *================================================================================ *The ESO Diffuse Interstellar Bands Large Exploration Survey (EDIBLES). *I. Project description, survey sample, and quality assessment. * Cox N.L.J., Cami J., Farhang A., Smoker J., Monreal-ibero A., Lallement R., * Sarre P.J., Marshall C.C.M., Smith K.T., Evans C.J., Royer P., Linnartz H., * Cordiner M.A., Joblin C., van Loon J.T., Foing B.H., Bhatt N.H., Bron E., * Elyajouri M., de Koter A., Ehrenfreund P., Javadi A., Kaper L., * Khosroshadi H.G., Laverick M., Le Petit F., Mulas G., Roueff E., Salama F., * Spaans M. * <Astron. Astrophys. 606, A76 (2017)> * =2017A&A...606A..76C (SIMBAD/NED BibCode) C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'tablea1.dat' ! Targets observed for EDIBLES integer*4 nr__ parameter (nr__=96) ! Number of records character*96 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) character*9 Name ! Star name integer*4 RAh ! (h) Right ascension (J2000) integer*4 RAm ! (min) Right ascension (J2000) real*4 RAs ! (s) Right ascension (J2000) character*1 DE_ ! Declination sign (J2000) integer*4 DEd ! (deg) Declination (J2000) integer*4 DEm ! (arcmin) Declination (J2000) real*4 DEs ! (arcsec) Declination (J2000) character*23 SpType ! MK spectral type character*3 r_SpType ! Reference for spectral type (1) real*4 E_B_V ! (mag) ?=- Interstellar reddenning (2) real*4 RV ! ?=- Total-to-selective extinction ratio real*4 AV ! (mag) ?=- Visual extinction character*3 r_AV ! Reference for AV (1) real*4 logNHI ! ([cm-2]) ?=- HI column density (3) real*4 logNH2 ! ([cm-2]) ?=- H_2_ column density (3) real*4 fH2 ! ?=- Molecular hydrogen fraction *Note (1): References as follows: * A69 = Abt & Morgan, 1969AJ.....74..813A * C69 = Cowley et al., 1969AJ.....74..375C * E05 = Evans et al., 2005R, Cat. J/A+A/437/467 * F57 = Feast et al., 1957MmRAS..68....1F * G01 = Gray et al., 2001, Cat. J/AJ/121/2148 * G68 = Guetter, 1968PASP...80..197G * G77 = Garrison et al., 1977ApJS...35..111G * G94 = Garrison & Gray, 1994, Cat. J/AJ/107/1556 * H13 = Holberg et al., 2013, Cat. J/MNRAS/435/2077 * H56 = Hiltner, 1956, Cat. J/ApJS/2/389 * H69 = Hiltner et al., 1969ApJ...157..313H * H73 = Humphreys, 1973A&AS....9...85H * H78 = Houk, 1978, Cat. III/51 * H82 = Hendry, 1982PASP...94..169H * L06 = Levenhagen & Leister 2006) * L68 = Lesh, 1968ApJS...17..371L, Cat. III/23 * L75 = Levato, 1975A&AS...19...91L * L76 = Levato & Abt, 1976PASP...88..712L * M50 = Morgan & Roman, 1950ApJ...112..362M * M55 = Morgan et al., 1955ApJS....2...41M * M73 = Morgan & Keenan, 1973ARA&A..11...29M * M95 = Massey et al., 1995, Cat. J/ApJ/454/151 * O59 = Osawa, 1959ApJ...130..159O * P98 = Parsons & Ake, 1998, Cat. J/ApJS/119/83 * R09 = Renson & Manfroid, 2009A&A...498..961R, Cat. III/260 * S11 = Sota et al., 2011ApJS..193...24S, Cat. III/274 * S14 = Sota et al., 2014ApJS..211...10S, Cat. III/274 * S52 = Sharpless, 1952ApJ...116..251S * S56 = Stebbins & Kron, 1956ApJ...123..440S, classification originally * from W. W. Morgan * S71 = Schild & Chaffee, 1971ApJ...169..529S * S99 = Steele et al., 1999A&AS..137..147S * V04 = Valencic et al., 2004ApJ...616..912V), * Fitzpatrick & Massa (2007, Cat. J/ApJ/663/320) * W03 = Wegner, 2003, Cat. J/AN/324/219 * W71 = Walborn, 1971ApJS...23..257W * W76 = Walborn, 1976ApJ...205..419W *Note (2): The interstellar reddening, E(B-V), was computed from (B-V)J colours * (taking the average from Tycho-2 and Simbad B-V colours; where Tycho-2 colours * were converted to Johnson colours; Mamajek et al. (2002, Cat. J/AJ/124/1670) * and the published spectral classifications, adopting intrinsic colours from * Fitzgerald (1970A&A.....4..234F). *Note (3): From Jenkins (2009, Cat. J/ApJ/700/1299). c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'tablea2.dat' ! Observations planned to complete the EDIBLES sample integer*4 nr__1 parameter (nr__1=18) ! Number of records character*96 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) character*9 Name_1 ! Star name integer*4 RAh_1 ! (h) Right ascension (J2000) integer*4 RAm_1 ! (min) Right ascension (J2000) real*4 RAs_1 ! (s) Right ascension (J2000) character*1 DE__1 ! Declination sign (J2000) integer*4 DEd_1 ! (deg) Declination (J2000) integer*4 DEm_1 ! (arcmin) Declination (J2000) real*4 DEs_1 ! (arcsec) Declination (J2000) character*23 SpType_1 ! MK spectral type character*3 r_SpType_1 ! Reference for spectral type (1) real*4 E_B_V_1 ! (mag) ?=- Interstellar reddenning (2) real*4 RV_1 ! ?=- Total-to-selective extinction ratio real*4 AV_1 ! (mag) ?=- Visual extinction character*3 r_AV_1 ! Reference for AV (1) real*4 logNHI_1 ! ([cm-2]) ?=- HI column density (3) real*4 logNH2_1 ! ([cm-2]) ?=- H_2_ column density (3) real*4 fH2_1 ! ?=- Molecular hydrogen fraction *Note (1): References as follows: * A69 = Abt & Morgan, 1969AJ.....74..813A * C69 = Cowley et al., 1969AJ.....74..375C * E05 = Evans et al., 2005R, Cat. J/A+A/437/467 * F57 = Feast et al., 1957MmRAS..68....1F * G01 = Gray et al., 2001, Cat. J/AJ/121/2148 * G68 = Guetter, 1968PASP...80..197G * G77 = Garrison et al., 1977ApJS...35..111G * G94 = Garrison & Gray, 1994, Cat. J/AJ/107/1556 * H13 = Holberg et al., 2013, Cat. J/MNRAS/435/2077 * H56 = Hiltner, 1956, Cat. J/ApJS/2/389 * H69 = Hiltner et al., 1969ApJ...157..313H * H73 = Humphreys, 1973A&AS....9...85H * H78 = Houk, 1978, Cat. III/51 * H82 = Hendry, 1982PASP...94..169H * L06 = Levenhagen & Leister 2006) * L68 = Lesh, 1968ApJS...17..371L, Cat. III/23 * L75 = Levato, 1975A&AS...19...91L * L76 = Levato & Abt, 1976PASP...88..712L * M50 = Morgan & Roman, 1950ApJ...112..362M * M55 = Morgan et al., 1955ApJS....2...41M * M73 = Morgan & Keenan, 1973ARA&A..11...29M * M95 = Massey et al., 1995, Cat. J/ApJ/454/151 * O59 = Osawa, 1959ApJ...130..159O * P98 = Parsons & Ake, 1998, Cat. J/ApJS/119/83 * R09 = Renson & Manfroid, 2009A&A...498..961R, Cat. III/260 * S11 = Sota et al., 2011ApJS..193...24S, Cat. III/274 * S14 = Sota et al., 2014ApJS..211...10S, Cat. III/274 * S52 = Sharpless, 1952ApJ...116..251S * S56 = Stebbins & Kron, 1956ApJ...123..440S, classification originally * from W. W. Morgan * S71 = Schild & Chaffee, 1971ApJ...169..529S * S99 = Steele et al., 1999A&AS..137..147S * V04 = Valencic et al., 2004ApJ...616..912V), * Fitzpatrick & Massa (2007, Cat. J/ApJ/663/320) * W03 = Wegner, 2003, Cat. J/AN/324/219 * W71 = Walborn, 1971ApJS...23..257W * W76 = Walborn, 1976ApJ...205..419W *Note (2): The interstellar reddening, E(B-V), was computed from (B-V)J colours * (taking the average from Tycho-2 and Simbad B-V colours; where Tycho-2 colours * were converted to Johnson colours; Mamajek et al. (2002, Cat. J/AJ/124/1670) * and the published spectral classifications, adopting intrinsic colours from * Fitzgerald (1970A&A.....4..234F). *Note (3): From Jenkins (2009, Cat. J/ApJ/700/1299). C============================================================================= C Loading file 'tablea1.dat' ! Targets observed for EDIBLES C Format for file interpretation 1 format( + A9,1X,I2,1X,I2,1X,F4.1,1X,A1,I2,1X,I2,1X,F4.1,1X,A23,1X,A3,1X, + F4.2,1X,F4.2,1X,F4.2,1X,A3,1X,F5.2,1X,F5.2,1X,F4.2) C Effective file loading open(unit=1,status='old',file= +'tablea1.dat') write(6,*) '....Loading file: tablea1.dat' do i__=1,96 read(1,'(A96)')ar__ read(ar__,1) + Name,RAh,RAm,RAs,DE_,DEd,DEm,DEs,SpType,r_SpType,E_B_V,RV,AV, + r_AV,logNHI,logNH2,fH2 if (idig(ar__(62:65)).EQ.0) E_B_V = rNULL__ if (idig(ar__(67:70)).EQ.0) RV = rNULL__ if (idig(ar__(72:75)).EQ.0) AV = rNULL__ if (idig(ar__(81:85)).EQ.0) logNHI = rNULL__ if (idig(ar__(87:91)).EQ.0) logNH2 = rNULL__ if (idig(ar__(93:96)).EQ.0) fH2 = 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. if(DE_.EQ.'-'.AND.DEdeg.GE.0) DEdeg=-DEdeg c ..............Just test output........... write(6,1) + Name,RAh,RAm,RAs,DE_,DEd,DEm,DEs,SpType,r_SpType,E_B_V,RV,AV, + r_AV,logNHI,logNH2,fH2 write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'tablea2.dat' ! Observations planned to complete the EDIBLES sample C Format for file interpretation 2 format( + A9,1X,I2,1X,I2,1X,F4.1,1X,A1,I2,1X,I2,1X,F4.1,1X,A23,1X,A3,1X, + F4.2,1X,F4.2,1X,F4.2,1X,A3,1X,F5.2,1X,F5.2,1X,F4.2) C Effective file loading open(unit=1,status='old',file= +'tablea2.dat') write(6,*) '....Loading file: tablea2.dat' do i__=1,18 read(1,'(A96)')ar__1 read(ar__1,2) + Name_1,RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,DEs_1,SpType_1, + r_SpType_1,E_B_V_1,RV_1,AV_1,r_AV_1,logNHI_1,logNH2_1,fH2_1 if (idig(ar__1(62:65)).EQ.0) E_B_V_1 = rNULL__ if (idig(ar__1(67:70)).EQ.0) RV_1 = rNULL__ if (idig(ar__1(72:75)).EQ.0) AV_1 = rNULL__ if (idig(ar__1(81:85)).EQ.0) logNHI_1 = rNULL__ if (idig(ar__1(87:91)).EQ.0) logNH2_1 = rNULL__ if (idig(ar__1(93:96)).EQ.0) fH2_1 = rNULL__ 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) + Name_1,RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,DEs_1,SpType_1, + r_SpType_1,E_B_V_1,RV_1,AV_1,r_AV_1,logNHI_1,logNH2_1,fH2_1 write(6,'(6H Pos: 2F8.4)') RAdeg_1,DEdeg_1 c .......End.of.Just test output........... end do close(1) C============================================================================= stop end C Locate position of first digit in string; or return 0 integer function idig(c) character*(*) c character*1 c1 integer lc,i lc=len(c) idig=0 do i=1,lc if(c(i:i).ne.' ') go to 1 end do 1 if(i.gt.lc) return c1=c(i:i) if(c1.eq.'.'.or.c1.eq.'-'.or.c1.eq.'+') i=i+1 if(i.gt.lc) return c1=c(i:i) if(c1.ge.'0'.and.c1.le.'9') idig=i return end