FORTRAN Generation
(/./ftp/cats/J/A_A/472/241)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/472/241 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/A+A/472/241       UV Flux distributions of gamma Dor stars   (Gerbaldi+, 2007)
*================================================================================
*UV Flux distributions of gamma Dor stars.
*    Gerbaldi M., Faraggiana R., Caffau E.
*   <Astron. Astrophys. 472, 241 (2007)>
*   =2007A&A...472..241G
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Reddening and atmospheric parameters for the
                              gamma Dor stars

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

      integer*4     HD         (nr__) ! HD number (1)
      character*2   n_HD       (nr__) ! [no] "no" indicates star without Beta-index
*                                        measurement
      real*4        E_b_y      (nr__) ! (mag) Reddening computed with the Moon program (2)
      integer*4     Teff1      (nr__) ! (K) Effective temperature computed with the
*                                   Moon & Dworetsky program (MD) (2)
      real*4        logg1      (nr__) ! ([cm/s2]) Surface gravity computed with the
*                                   Moon & Dworetsky program (MD) (2)
      integer*4     Teff2      (nr__) ! (K) ? Effective temperature computed with the
*                                    Kunzli et al. program (Gen) (2)
      real*4        logg2      (nr__) ! ([cm/s2]) ? Surface gravity computed with the
*                                    Kunzli et al. program (Gen) (2)
      real*4        v_M_H_     (nr__) ! ([Sun]) ? Metallicity computed with the
*                                     Kunzli et al. program (Gen) (2)
      real*4        VMAG1      (nr__) ! (mag) ? Visual absolute magnitude photometrically
*                                    derived using calibration of uvbyBeta
*                                    photometry adopted by Moon (1985) (2)
      real*4        VMAG0      (nr__) ! (mag) ? Visual absolute magnitude derived using
*                                    Hipparcos parallaxes
      character*1   Note       (nr__) ! [abcd] Note about binarity (3)
      character*127 Rem        (nr__) ! Remarks (4)
*Note (1):
*    In the case of a binary system, the gamma Dor is the A component,
*    except for HD 221866 where the gamma Dor star is likely to be the
*    B component.
*
*    For the SB2 stars, HD 86371 and HD 113867, it is not clear 
*    which component is the gamma Dor variable (Henry & Fekel,
*    2003AJ....126.3058H); in fact, both components could pulsate
*    (Henry et al., 2005, Cat. J/AJ/129/2815)
*Note (2): Program references as follows:
*    Moon (1985) = Moon program, 1985, Comm. from the Univ of London Obs.
*                  78 and revision in 1985, private comm.
*             MD = Moon & Dworetsky, 1985MNRAS.217..305M
*            Gen = Kunzli et al., 1997A&AS..122...51K
*Note (3): For the individual components of the SB2 systems the Vmag and
*          the spectral types are taken as follows:
*      a = Henry & Fekel (2002PASP..114..988H) and  Faraggiana & Gerbaldi
*          (2004ASPC..318..316F). For HD 108100 there is a controversy on
*          its SB2 nature (Henry & Fekel (2002PASP..114..988H) and
*          Faraggiana & Gerbaldi (2004ASPC..318..316F).
*      b = Henry & Fekel, 2003AJ....126.3058H
*      c = Henry et al. (2005AJ....129.2815H)
*      d = Kaye et al. (2004PASP..116..558K) and
*          Fekel et al.  (2003AJ....125.2196F).
*Note (4): The remarks are from Henry et al. (2005, Cat. <J/AJ/129/2815>)
*     complemented by duplicity detection from the Hipparcos Catalogue
*     (1997, Cat. <I/239>), the Washington Visual Double Star Catalogue
*     (WDS, 1997, Cat. <I/237>) and the Fourth catalogue of interferometric
*     measurements (Hartkopf et al., 2003,
*     http://ad.usno.navy.mil/wds/int4.html). In case of several values of
*     the separation taken from WDS, the smallest one is retained.

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

C  Declarations for 'table2.dat'	! Reddening and atmospheric parameters for a
                              sample of reference stars

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

      integer*4     HD_1       (nr__1) ! HD number (1)
      character*2   n_HD_1     (nr__1) ! [no] "no" indicates star without Beta-index
*                                        measurement
      real*4        E_b_y_1    (nr__1) ! (mag) Reddening computed with the Moon program (2)
      integer*4     Teff1_1    (nr__1) ! (K) Effective temperature computed with the
*                                   Moon & Dworetsky program (MD) (2)
      real*4        logg1_1    (nr__1) ! ([cm/s2]) Surface gravity computed with the
*                                   Moon & Dworetsky program (MD) (2)
      integer*4     Teff2_1    (nr__1) ! (K) ? Effective temperature computed with the
*                                    Kunzli et al. program (Gen) (2)
      real*4        logg2_1    (nr__1) ! ([cm/s2]) ? Surface gravity computed with the
*                                    Kunzli et al. program (Gen) (2)
      real*4        v_M_H__1   (nr__1) ! ([Sun]) ? Metallicity computed with the
*                                     Kunzli et al. program (Gen) (2)
      real*4        VMAG1_1    (nr__1) ! (mag) ? Visual absolute magnitude photometrically
*                                    derived using calibration of uvbyBeta
*                                    photometry adopted by Moon (1985) (2)
      real*4        VMAG0_1    (nr__1) ! (mag) ? Visual absolute magnitude derived using
*                                    Hipparcos parallaxes
      character*1   Note_1     (nr__1) ! [abcd] Note about binarity (3)
      character*127 Rem_1      (nr__1) ! Remarks (4)
*Note (1):
*    In the case of a binary system, the gamma Dor is the A component,
*    except for HD 221866 where the gamma Dor star is likely to be the
*    B component.
*
*    For the SB2 stars, HD 86371 and HD 113867, it is not clear 
*    which component is the gamma Dor variable (Henry & Fekel,
*    2003AJ....126.3058H); in fact, both components could pulsate
*    (Henry et al., 2005, Cat. J/AJ/129/2815)
*Note (2): Program references as follows:
*    Moon (1985) = Moon program, 1985, Comm. from the Univ of London Obs.
*                  78 and revision in 1985, private comm.
*             MD = Moon & Dworetsky, 1985MNRAS.217..305M
*            Gen = Kunzli et al., 1997A&AS..122...51K
*Note (3): For the individual components of the SB2 systems the Vmag and
*          the spectral types are taken as follows:
*      a = Henry & Fekel (2002PASP..114..988H) and  Faraggiana & Gerbaldi
*          (2004ASPC..318..316F). For HD 108100 there is a controversy on
*          its SB2 nature (Henry & Fekel (2002PASP..114..988H) and
*          Faraggiana & Gerbaldi (2004ASPC..318..316F).
*      b = Henry & Fekel, 2003AJ....126.3058H
*      c = Henry et al. (2005AJ....129.2815H)
*      d = Kaye et al. (2004PASP..116..558K) and
*          Fekel et al.  (2003AJ....125.2196F).
*Note (4): The remarks are from Henry et al. (2005, Cat. <J/AJ/129/2815>)
*     complemented by duplicity detection from the Hipparcos Catalogue
*     (1997, Cat. <I/239>), the Washington Visual Double Star Catalogue
*     (WDS, 1997, Cat. <I/237>) and the Fourth catalogue of interferometric
*     measurements (Hartkopf et al., 2003,
*     http://ad.usno.navy.mil/wds/int4.html). In case of several values of
*     the separation taken from WDS, the smallest one is retained.

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

C  Declarations for 'table3.dat'	! Visual magnitude for the 10 SB2 or close VB
                              gamma Dor stars

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

      integer*4     HD_2       (nr__2) ! HD number
      real*4        Vmag       (nr__2) ! (mag) V-Johnson magnitude from the Hipparcos
*                                   Catalogue (Cat. <I/239>)
      real*4        V_A        (nr__2) ! (mag) ? V-Johnson magnitude for the component A
      real*4        V_B        (nr__2) ! (mag) ? V-Johnson magnitude for the component B
      character*1   n_HD_2     (nr__2) ! [*] * indicates a note in notes.dat file

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

C  Declarations for 'notes.dat'	! Individual notes

      integer*4 nr__3
      parameter (nr__3=15)	! Number of records
      character*80 ar__3  	! Full-size record

      integer*4     HD_3       (nr__3) ! HD number
      character*73  Note_2     (nr__3) ! Note

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

C  Loading file 'table1.dat'	! Reddening and atmospheric parameters for the
*                              gamma Dor stars

C  Format for file interpretation

    1 format(
     +  I6,1X,A2,1X,F6.3,1X,I4,1X,F4.2,1X,I4,1X,F4.2,1X,F5.2,1X,F4.2,
     +  1X,F4.2,1X,A1,1X,A127)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,40
        read(1,'(A182)')ar__
        read(ar__,1)
     +  HD(i__),n_HD(i__),E_b_y(i__),Teff1(i__),logg1(i__),Teff2(i__),
     +  logg2(i__),v_M_H_(i__),VMAG1(i__),VMAG0(i__),Note(i__),
     +  Rem(i__)
        if(ar__(28:31) .EQ. '') Teff2(i__) = iNULL__
        if(ar__(33:36) .EQ. '') logg2(i__) = rNULL__
        if(ar__(38:42) .EQ. '') v_M_H_(i__) = rNULL__
        if(ar__(44:47) .EQ. '') VMAG1(i__) = rNULL__
        if(ar__(49:52) .EQ. '') VMAG0(i__) = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  HD(i__),n_HD(i__),E_b_y(i__),Teff1(i__),logg1(i__),Teff2(i__),
     +  logg2(i__),v_M_H_(i__),VMAG1(i__),VMAG0(i__),Note(i__),
     +  Rem(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table2.dat'	! Reddening and atmospheric parameters for a
*                              sample of reference stars

C  Format for file interpretation

    2 format(
     +  I6,1X,A2,1X,F6.3,1X,I4,1X,F4.2,1X,I4,1X,F4.2,1X,F5.2,1X,F4.2,
     +  1X,F4.2,1X,A1,1X,A127)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,41
        read(1,'(A182)')ar__1
        read(ar__1,2)
     +  HD_1(i__),n_HD_1(i__),E_b_y_1(i__),Teff1_1(i__),logg1_1(i__),
     +  Teff2_1(i__),logg2_1(i__),v_M_H__1(i__),VMAG1_1(i__),
     +  VMAG0_1(i__),Note_1(i__),Rem_1(i__)
        if(ar__1(28:31) .EQ. '') Teff2_1(i__) = iNULL__
        if(ar__1(33:36) .EQ. '') logg2_1(i__) = rNULL__
        if(ar__1(38:42) .EQ. '') v_M_H__1(i__) = rNULL__
        if(ar__1(44:47) .EQ. '') VMAG1_1(i__) = rNULL__
        if(ar__1(49:52) .EQ. '') VMAG0_1(i__) = rNULL__
c    ..............Just test output...........
        write(6,2)
     +  HD_1(i__),n_HD_1(i__),E_b_y_1(i__),Teff1_1(i__),logg1_1(i__),
     +  Teff2_1(i__),logg2_1(i__),v_M_H__1(i__),VMAG1_1(i__),
     +  VMAG0_1(i__),Note_1(i__),Rem_1(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table3.dat'	! Visual magnitude for the 10 SB2 or close VB
*                              gamma Dor stars

C  Format for file interpretation

    3 format(I6,3X,F4.2,2X,F4.2,2X,F5.2,1X,A1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,10
        read(1,'(A28)')ar__2
        read(ar__2,3)HD_2(i__),Vmag(i__),V_A(i__),V_B(i__),n_HD_2(i__)
        if(ar__2(16:19) .EQ. '') V_A(i__) = rNULL__
        if(ar__2(22:26) .EQ. '') V_B(i__) = rNULL__
c    ..............Just test output...........
        write(6,3)HD_2(i__),Vmag(i__),V_A(i__),V_B(i__),n_HD_2(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'notes.dat'	! Individual notes

C  Format for file interpretation

    4 format(I6,1X,A73)

C  Effective file loading

      open(unit=1,status='old',file=
     +'notes.dat')
      write(6,*) '....Loading file: notes.dat'
      do i__=1,15
        read(1,'(A80)')ar__3
        read(ar__3,4)HD_3(i__),Note_2(i__)
c    ..............Just test output...........
        write(6,4)HD_3(i__),Note_2(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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