FORTRAN Generation
(/./ftp/cats/J/A_A/332/L53)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/332/L53 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/332/L53       The PL relation of galactic carbon LPVs   (Bergeat+ 1998)
*================================================================================
*The PL relation of galactic carbon LPVs. The distance modulus to LMC
*       Bergeat J., Knapik A., Rutily B.
*      <Astron. Astrophys. 332, L53 (1998)>
*      =1998A&A...332..L53B      (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! The data for 115 carbon LPVs

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

      integer*4     GCCS        ! Stephenson's Catalogue (Cat. <III/156>) entry
      real*4        logPer      ! ([d]) The log of the period in days
      real*4        KMag        ! (mag) Absolute magnitude in K
      real*4        y           ! The y-quantity as defined in Sect. 4
      real*4        Dvarpi      ! (mas) ? True minus Observed parallax
      real*4        varpi       ! (mas) Estimated true parallax
      real*4        v100w       ! ? Square root of weight x 100
      integer*4     S           ! Three samples classification
      character*1   u_S         ! [:] Suffix (:) for doubtful S-classification

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

C  Loading file 'table1.dat'	! The data for 115 carbon LPVs

C  Format for file interpretation

    1 format(
     +  I4,1X,F5.3,1X,F5.2,1X,F5.3,1X,F6.3,1X,F4.2,1X,F5.3,1X,I1,A1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,115
        read(1,'(A43)')ar__
        read(ar__,1)GCCS,logPer,KMag,y,Dvarpi,varpi,v100w,S,u_S
        if(ar__(24:29) .EQ. '') Dvarpi = rNULL__
        if(ar__(36:40) .EQ. '') v100w = rNULL__
c    ..............Just test output...........
        write(6,1)GCCS,logPer,KMag,y,Dvarpi,varpi,v100w,S,u_S
c    .......End.of.Just test output...........
      end do
      close(1)

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