FORTRAN Generation
(/./ftp/cats/J/A_A/606/A76)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/606/A76 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-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      (nr__) ! (deg) Right Ascension J2000
      real*8        DEdeg      (nr__) ! (deg)     Declination J2000
C  ---------------------------------- ! (position vector(s) in degrees)

      character*9   Name       (nr__) ! Star name
      integer*4     RAh        (nr__) ! (h) Right ascension (J2000)
      integer*4     RAm        (nr__) ! (min) Right ascension (J2000)
      real*4        RAs        (nr__) ! (s) Right ascension (J2000)
      character*1   DE_        (nr__) ! Declination sign (J2000)
      integer*4     DEd        (nr__) ! (deg) Declination (J2000)
      integer*4     DEm        (nr__) ! (arcmin) Declination (J2000)
      real*4        DEs        (nr__) ! (arcsec) Declination (J2000)
      character*23  SpType     (nr__) ! MK spectral type
      character*3   r_SpType   (nr__) ! Reference for spectral type (1)
      real*4        E_B_V      (nr__) ! (mag) ?=- Interstellar reddenning (2)
      real*4        RV         (nr__) ! ?=- Total-to-selective extinction ratio
      real*4        AV         (nr__) ! (mag) ?=- Visual extinction
      character*3   r_AV       (nr__) ! Reference for AV (1)
      real*4        logNHI     (nr__) ! ([cm-2]) ?=- HI column density (3)
      real*4        logNH2     (nr__) ! ([cm-2]) ?=- H_2_ column density (3)
      real*4        fH2        (nr__) ! ?=- 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    (nr__1) ! (deg) Right Ascension J2000
      real*8        DEdeg_1    (nr__1) ! (deg)     Declination J2000
C  ---------------------------------- ! (position vector(s) in degrees)

      character*9   Name_1     (nr__1) ! Star name
      integer*4     RAh_1      (nr__1) ! (h) Right ascension (J2000)
      integer*4     RAm_1      (nr__1) ! (min) Right ascension (J2000)
      real*4        RAs_1      (nr__1) ! (s) Right ascension (J2000)
      character*1   DE__1      (nr__1) ! Declination sign (J2000)
      integer*4     DEd_1      (nr__1) ! (deg) Declination (J2000)
      integer*4     DEm_1      (nr__1) ! (arcmin) Declination (J2000)
      real*4        DEs_1      (nr__1) ! (arcsec) Declination (J2000)
      character*23  SpType_1   (nr__1) ! MK spectral type
      character*3   r_SpType_1 (nr__1) ! Reference for spectral type (1)
      real*4        E_B_V_1    (nr__1) ! (mag) ?=- Interstellar reddenning (2)
      real*4        RV_1       (nr__1) ! ?=- Total-to-selective extinction ratio
      real*4        AV_1       (nr__1) ! (mag) ?=- Visual extinction
      character*3   r_AV_1     (nr__1) ! Reference for AV (1)
      real*4        logNHI_1   (nr__1) ! ([cm-2]) ?=- HI column density (3)
      real*4        logNH2_1   (nr__1) ! ([cm-2]) ?=- H_2_ column density (3)
      real*4        fH2_1      (nr__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(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__),
     +  DEm(i__),DEs(i__),SpType(i__),r_SpType(i__),E_B_V(i__),
     +  RV(i__),AV(i__),r_AV(i__),logNHI(i__),logNH2(i__),fH2(i__)
        if (idig(ar__(62:65)).EQ.0) E_B_V(i__) =  rNULL__
        if (idig(ar__(67:70)).EQ.0) RV(i__) =  rNULL__
        if (idig(ar__(72:75)).EQ.0) AV(i__) =  rNULL__
        if (idig(ar__(81:85)).EQ.0) logNHI(i__) =  rNULL__
        if (idig(ar__(87:91)).EQ.0) logNH2(i__) =  rNULL__
        if (idig(ar__(93:96)).EQ.0) fH2(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.
        if(DE_(i__).EQ.'-'.AND.DEdeg(i__).GE.0) DEdeg(i__)=-DEdeg(i__)
c    ..............Just test output...........
        write(6,1)
     +  Name(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__),
     +  DEm(i__),DEs(i__),SpType(i__),r_SpType(i__),E_B_V(i__),
     +  RV(i__),AV(i__),r_AV(i__),logNHI(i__),logNH2(i__),fH2(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 '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(i__),RAh_1(i__),RAm_1(i__),RAs_1(i__),DE__1(i__),
     +  DEd_1(i__),DEm_1(i__),DEs_1(i__),SpType_1(i__),
     +  r_SpType_1(i__),E_B_V_1(i__),RV_1(i__),AV_1(i__),r_AV_1(i__),
     +  logNHI_1(i__),logNH2_1(i__),fH2_1(i__)
        if (idig(ar__1(62:65)).EQ.0) E_B_V_1(i__) =  rNULL__
        if (idig(ar__1(67:70)).EQ.0) RV_1(i__) =  rNULL__
        if (idig(ar__1(72:75)).EQ.0) AV_1(i__) =  rNULL__
        if (idig(ar__1(81:85)).EQ.0) logNHI_1(i__) =  rNULL__
        if (idig(ar__1(87:91)).EQ.0) logNH2_1(i__) =  rNULL__
        if (idig(ar__1(93:96)).EQ.0) fH2_1(i__) =  rNULL__
        RAdeg_1(i__) = rNULL__
        DEdeg_1(i__) = 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(i__) .GT. -180) RAdeg_1(i__)=RAh_1(i__)*15.
        if(RAm_1(i__) .GT. -180) RAdeg_1(i__)=RAdeg_1(i__)+RAm_1(i__)/4.
        if(RAs_1(i__) .GT. -180) RAdeg_1(i__)=RAdeg_1(i__)+RAs_1(i__)/240.
        if(DEd_1(i__) .GE. 0) DEdeg_1(i__)=DEd_1(i__)
        if(DEm_1(i__) .GE. 0) DEdeg_1(i__)=DEdeg_1(i__)+DEm_1(i__)/60.
        if(DEs_1(i__) .GE. 0) DEdeg_1(i__)=DEdeg_1(i__)+DEs_1(i__)/3600.
        if(DE__1(i__).EQ.'-'.AND.DEdeg_1(i__).GE.0) DEdeg_1(i__)=-DEdeg_1(i__)
c    ..............Just test output...........
        write(6,2)
     +  Name_1(i__),RAh_1(i__),RAm_1(i__),RAs_1(i__),DE__1(i__),
     +  DEd_1(i__),DEm_1(i__),DEs_1(i__),SpType_1(i__),
     +  r_SpType_1(i__),E_B_V_1(i__),RV_1(i__),AV_1(i__),r_AV_1(i__),
     +  logNHI_1(i__),logNH2_1(i__),fH2_1(i__)
        write(6,'(6H Pos: 2F8.4)') RAdeg_1(i__),DEdeg_1(i__)
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