FORTRAN Generation
(/./ftp/cats/J/A_A/383/398)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/383/398 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/383/398       Cepheids multiphotometry                  (Paturel+, 2002)
*================================================================================
*Calibration of the distance scale from galactic Cepheids:
*I. Calibration based on the GFG sample.
*    Paturel G., Theureau G., Fouque P., Terry J.N., Musella I., Ekholm T.
*   <Astron. Astrophys. 383, 398 (2002)>
*   =2002A&A...383..398P
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table3.dat'	! Cepheids V and I magnitudes

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

      character*8   Gal         ! Name of the host galaxy
      character*8   Star        ! Name of the Cepheid
      real*4        logPer      ! ([d]) log of the period
      real*4        Vmag        ! (mag) Mean V magnitude
      real*4        Imag        ! (mag) Mean I magnitude

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

C  Declarations for 'appendix.dat'	! All raw data of the Cepheid database

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

      character*8   Gal_1       ! Name of the host galaxy
      character*8   Star_1      ! Name of the Cepheid
      character*5   r_Star      ! Code for the bibliographic reference
*                                   for the Cepheid name, in refs.dat file
      real*4        logPer_1    ! ([d]) log of the period
      character*1   u_logPer    ! Uncertainty flag on logPer
      character*2   LC          ! Classification of the light curve
*                                   according to the lines following (1)
      integer*4     Nobs        ! Number of observations for this star
      character*2   Band        ! Photometric band for magnitude  (2)
      real*4        mag         ! (mag) Magnitude (individual observation) (2)
      character*1   u_mag       ! Uncertainty flag on mag
      character*3   f_mag       ! Class of magnitude (3)
      character*5   r_mag       ! Reference of measurement in refs.dat file
*Note (1): Light curve classification, from Lanoix et al., 1999AN....320...21L:
*     N  : Normal
*     S  : Symetrical (but high amplitude)
*     B  : Bumpy
*     B+ : Scattered or very bumpy
*     O  : Overtone
*     O- : Low amplitude (but asymmetrical or with high period)
*     P  : Peculiar
*Note (2): Magnitudes from Lanoix et al., 1999AN....320...21L:
*     B (440nm), V (550nm), r (650nm), R (700nm), i (820nm), I (900nm),
*     IV (1050nm), J (1250nm), H (1650nm), K (2200nm) and g (5000nm)
*Note (3): Class of magnitude, from Lanoix et al., 1999AN....320...21L:
*     ave: Average of minimum and maximum
*     max: Maximum
*     mea: Intensity averaged (based on curve area)
*     min: Minimum
* 'blank': Single measurement

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

C  Declarations for 'refs.dat'	! References

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

      character*5   Ref         ! Reference code
      character*19  BibCode     ! BibCode
      character*20  Aut         ! Author's name
      character*34  Com         ! Comments

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

C  Loading file 'table3.dat'	! Cepheids V and I magnitudes

C  Format for file interpretation

    1 format(A8,1X,A8,1X,F5.3,1X,F5.2,1X,F5.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,1840
        read(1,'(A35)')ar__
        read(ar__,1)Gal,Star,logPer,Vmag,Imag
c    ..............Just test output...........
        write(6,1)Gal,Star,logPer,Vmag,Imag
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'appendix.dat'	! All raw data of the Cepheid database

C  Format for file interpretation

    2 format(
     +  A8,1X,A8,A5,2X,F6.4,A1,2X,A2,1X,I2,1X,A2,1X,F5.2,A1,1X,A3,2X,
     +  A5)

C  Effective file loading

      open(unit=1,status='old',file=
     +'appendix.dat')
      write(6,*) '....Loading file: appendix.dat'
      do i__=1,6040
        read(1,'(A59)')ar__1
        read(ar__1,2)
     +  Gal_1,Star_1,r_Star,logPer_1,u_logPer,LC,Nobs,Band,mag,u_mag,
     +  f_mag,r_mag
c    ..............Just test output...........
        write(6,2)
     +  Gal_1,Star_1,r_Star,logPer_1,u_logPer,LC,Nobs,Band,mag,u_mag,
     +  f_mag,r_mag
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'refs.dat'	! References

C  Format for file interpretation

    3 format(A5,2X,A19,2X,A20,1X,A34)

C  Effective file loading

      open(unit=1,status='old',file=
     +'refs.dat')
      write(6,*) '....Loading file: refs.dat'
      do i__=1,70
        read(1,'(A83)')ar__2
        read(ar__2,3)Ref,BibCode,Aut,Com
c    ..............Just test output...........
        write(6,3)Ref,BibCode,Aut,Com
c    .......End.of.Just test output...........
      end do
      close(1)

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