FORTRAN Generation
(/./ftp/cats/J/MNRAS/469/3042)

Conversion of standardized ReadMe file for file /./ftp/cats/J/MNRAS/469/3042 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/MNRAS/469/3042  Metallicities in the Geneva photometric system (Netopil, 2017)
*================================================================================
*Metallicity calibrations for dwarf stars and giants in the
*Geneva photometric system.
*    Netopil M.
*    <Mon. Not. R. Astron. Soc. 469, 3042 (2017)>
*    =2017MNRAS.469.3042N        (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

C  Declarations for 'table1.dat'	! Mean photometric metallicities for dwarf stars

      integer*4 nr__
      parameter (nr__=3267)	! Number of records
      character*104 ar__   	! Full-size record

C  Position composed of: RAdeg DEdeg (Epoch=J2000)
      character*11  Name       (nr__) ! Simbad Identifier
      integer*4     HIP        (nr__) ! Hipparcos number
      real*8        RAdeg      (nr__) ! (deg) Right Ascension, ICRS, epoch=J2000
      real*8        DEdeg      (nr__) ! (deg) Declination, ICRS, epoch=J2000
      real*4        Vmag       (nr__) ! (mag) Geneva V magnitude
      real*4        U_B        (nr__) ! (mag) Geneva photometric index U-B
      real*4        B2_V1      (nr__) ! (mag) Geneva photometric index B2-V1
      real*4        B2_G       (nr__) ! (mag) Geneva photometric index B2-G
      real*4        B1_B2      (nr__) ! (mag) Geneva photometric index B1-B2
      real*4        E_B_V      (nr__) ! (mag) Reddening (1)
      real*4        logg       (nr__) ! ([cm/s2]) Surface gravity (1)
      integer*4     Teff       (nr__) ! (K) Effective temperature (1)
      real*4        v_Fe_H_G   (nr__) ! ([Sun]) Metallicity based on Geneva data
      real*4        v_Fe_H_    (nr__) ! ([Sun]) Mean photometric metallicity (2)
      real*4        e__Fe_H_   (nr__) ! ([Sun]) Standard error of the mean on metallicity
*Note (1): Results by Casagrande et al. (2011A&A...530A.138C)
*Note (2): Mean metallicity based on Geneva data and Casagrande et al.
*  (2011A&A...530A.138C), the latter corrected as described in the paper.

c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

C  Declarations for 'table2.dat'	! Geneva metallicities for A to F-type stars

      integer*4 nr__1
      parameter (nr__1=1226)	! Number of records
      character*86 ar__1  	! Full-size record

C  Position composed of: RAdeg DEdeg (Epoch=J2000)
      character*13  Name_1     (nr__1) ! Identifier
      real*8        RAdeg_1    (nr__1) ! (deg) Right Ascension, ICRS, epoch=J2000
      real*8        DEdeg_1    (nr__1) ! (deg) Declination, ICRS, epoch=J2000
      character*11  SpType     (nr__1) ! Spectral type from the literature
      real*4        Vmag_1     (nr__1) ! (mag) Geneva V magnitude
      real*4        B1_B2_1    (nr__1) ! (mag) Geneva photometric index B1-B2
      real*4        B2_V1_1    (nr__1) ! (mag) Geneva photometric index B2-V1
      real*4        E_B_V_1    (nr__1) ! (mag) Reddening
      integer*4     f_E_B_V    (nr__1) ! [1/3] Reddening source (1)
      real*4        Deltam2    (nr__1) ! (mag) Blanketing parameter in the Geneva system
      real*4        v_Fe_H__1  (nr__1) ! ([Sun]) Metallicity based on Geneva data
*Note (1): Reddening source as follows:
*           1 = Casagrande et al. (2011A&A...530A.138C)
*           2 = own determination based on uvby data
*           3 = estimate by using spectral type and intrinsic colours

c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

C  Declarations for 'table3.dat'	! Open cluster metallicities

      integer*4 nr__2
      parameter (nr__2=54)	! Number of records
      character*83 ar__2  	! Full-size record

C  Position composed of: RAdeg DEdeg (Epoch=J2000)
      character*11  Name_2     (nr__2) ! Open cluster Identifier
      real*8        RAdeg_2    (nr__2) ! (deg) Right Ascension, ICRS, epoch=J2000
      real*8        DEdeg_2    (nr__2) ! (deg) Declination, ICRS, epoch=J2000
      real*4        v_Fe_H_d   (nr__2) ! ([Sun]) ? Metallicity based on dwarf stars
      real*4        s__Fe_H_d  (nr__2) ! ([Sun]) ? Error on [Fe/H]d
      integer*4     o__Fe_H_d  (nr__2) ! ? Number of stars used for [Fe/H]d
      real*4        v_Fe_H_g_1 (nr__2) ! ([Sun]) ? Metallicity based on giant stars
      real*4        s__Fe_H_g  (nr__2) ! ([Sun]) ? Error on [Fe/H]g
      integer*4     o__Fe_H_g  (nr__2) ! ? Number of stars used for [Fe/H]g
      real*4        E_B_V_1    (nr__2) ! (mag) Open cluster reddening
      character*5   f_E_B_V_1  (nr__2) ! Reddening source (1)
      real*4        v_Fe_H__2  (nr__2) ! ([Sun]) Weighted mean photometric metallicity (2)
      real*4        s__Fe_H_   (nr__2) ! ([Sun]) ? Error on weighted mean metallicity
      real*4        w__Fe_H_   (nr__2) ! Total weight of the mean metallicity
      integer*4     o__Fe_H_   (nr__2) ! Number of photometric estimates for [Fe/H]
*Note (1): Reddening source as follows:
*          G    = own determination based on Geneva photometry
*          T97  = Twarog et al., 1997AJ....114.2556T
*          NP13 = Netopil & Paunzen, 2013A&A...557A..10N, Cat. J/A+A/557/A10
*          ST   = spectroscopic temperature and colour-temperature relation
*          [1]  = Claria et al., 2003A&A...399..543C, Cat. J/A+A/399/543
*          [2]  = Claria et al., 1996PASP..108..672C
*          [3]  = Reddy et al., 2015MNRAS.450.4301R
*          [4]  = Reddy et al., 2013MNRAS.431.3338R, Cat. J/MNRAS/431/3338
*          [5]  = Lapasset et al., 2000A&A...361..945L, Cat. J/A+A/361/945.
*                  downscaled for giants
*          [6]  = Santos et al., 2009A&A...493..309S
*          [7]  = Molenda-Zakowicz et al., 2014MNRAS.445.2446M
*Note (2): Update of the list by Netopil et al., 2016A&A...585A.150N,
*            Cat. J/A+A/585/A150

C=============================================================================

C  Loading file 'table1.dat'	! Mean photometric metallicities for dwarf stars

C  Format for file interpretation

    1 format(
     +  A11,1X,I6,1X,F9.5,1X,F9.5,1X,F6.3,1X,F5.3,1X,F5.3,1X,F6.3,1X,
     +  F6.3,1X,F5.3,1X,F4.2,1X,I4,1X,F5.2,1X,F5.2,1X,F4.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,3267
        read(1,'(A104)')ar__
        read(ar__,1)
     +  Name(i__),HIP(i__),RAdeg(i__),DEdeg(i__),Vmag(i__),U_B(i__),
     +  B2_V1(i__),B2_G(i__),B1_B2(i__),E_B_V(i__),logg(i__),
     +  Teff(i__),v_Fe_H_G(i__),v_Fe_H_(i__),e__Fe_H_(i__)
c    ..............Just test output...........
        write(6,1)
     +  Name(i__),HIP(i__),RAdeg(i__),DEdeg(i__),Vmag(i__),U_B(i__),
     +  B2_V1(i__),B2_G(i__),B1_B2(i__),E_B_V(i__),logg(i__),
     +  Teff(i__),v_Fe_H_G(i__),v_Fe_H_(i__),e__Fe_H_(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

C=============================================================================

C  Loading file 'table2.dat'	! Geneva metallicities for A to F-type stars

C  Format for file interpretation

    2 format(
     +  A13,1X,F9.5,1X,F9.5,1X,A11,1X,F6.3,1X,F6.3,1X,F6.3,1X,F4.2,1X,
     +  I1,1X,F6.3,1X,F5.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,1226
        read(1,'(A86)')ar__1
        read(ar__1,2)
     +  Name_1(i__),RAdeg_1(i__),DEdeg_1(i__),SpType(i__),Vmag_1(i__),
     +  B1_B2_1(i__),B2_V1_1(i__),E_B_V_1(i__),f_E_B_V(i__),
     +  Deltam2(i__),v_Fe_H__1(i__)
c    ..............Just test output...........
        write(6,2)
     +  Name_1(i__),RAdeg_1(i__),DEdeg_1(i__),SpType(i__),Vmag_1(i__),
     +  B1_B2_1(i__),B2_V1_1(i__),E_B_V_1(i__),f_E_B_V(i__),
     +  Deltam2(i__),v_Fe_H__1(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

C=============================================================================

C  Loading file 'table3.dat'	! Open cluster metallicities

C  Format for file interpretation

    3 format(
     +  A11,1X,F7.3,1X,F7.3,1X,F5.2,1X,F4.2,1X,I2,1X,F5.2,1X,F4.2,1X,
     +  I2,1X,F4.2,1X,A5,1X,F5.2,1X,F4.2,1X,F3.1,1X,I1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,54
        read(1,'(A83)')ar__2
        read(ar__2,3)
     +  Name_2(i__),RAdeg_2(i__),DEdeg_2(i__),v_Fe_H_d(i__),
     +  s__Fe_H_d(i__),o__Fe_H_d(i__),v_Fe_H_g_1(i__),s__Fe_H_g(i__),
     +  o__Fe_H_g(i__),E_B_V_1(i__),f_E_B_V_1(i__),v_Fe_H__2(i__),
     +  s__Fe_H_(i__),w__Fe_H_(i__),o__Fe_H_(i__)
        if(ar__2(29:33) .EQ. '') v_Fe_H_d(i__) = rNULL__
        if(ar__2(35:38) .EQ. '') s__Fe_H_d(i__) = rNULL__
        if(ar__2(40:41) .EQ. '') o__Fe_H_d(i__) = iNULL__
        if(ar__2(43:47) .EQ. '') v_Fe_H_g_1(i__) = rNULL__
        if(ar__2(49:52) .EQ. '') s__Fe_H_g(i__) = rNULL__
        if(ar__2(54:55) .EQ. '') o__Fe_H_g(i__) = iNULL__
        if(ar__2(74:77) .EQ. '') s__Fe_H_(i__) = rNULL__
c    ..............Just test output...........
        write(6,3)
     +  Name_2(i__),RAdeg_2(i__),DEdeg_2(i__),v_Fe_H_d(i__),
     +  s__Fe_H_d(i__),o__Fe_H_d(i__),v_Fe_H_g_1(i__),s__Fe_H_g(i__),
     +  o__Fe_H_g(i__),E_B_V_1(i__),f_E_B_V_1(i__),v_Fe_H__2(i__),
     +  s__Fe_H_(i__),w__Fe_H_(i__),o__Fe_H_(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

C=============================================================================
      stop
      end