FORTRAN Generation
(/./ftp/cats/J/BaltA/10/589)

Conversion of standardized ReadMe file for file /./ftp/cats/J/BaltA/10/589 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-16
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/BaltA/10/589 Stars with large HIP photometric amplitudes (Adelman, 2001)
*================================================================================
*Stars with the largest Hipparcos photometric amplitudes.
*      Adelman S.J.
*     <Baltic Astronomy, 10, 589 (2001)>
*     =2001BaltA..10..589A
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! *Information on individual stars

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

      integer*4     HIP        (nr__) ! HIP number (Cat. <I/239>)
      integer*4     Nobs       (nr__) ! Number of observations
      real*8        Hpmag      (nr__) ! (mag) Hipparcos magnitude
      real*4        e_Hpmag    (nr__) ! (mag) rms uncertainty on Hpmag
      real*4        Amp        (nr__) ! (mag) Amplitude in Hp magnitude
      integer*4     HD         (nr__) ! ? HD number
      character*16  Name       (nr__) ! Other name
      character*12  SpType     (nr__) ! Spectral type
      character*7   VarType    (nr__) ! Variability type (1)
*Note (1): Variability type:
*      BY: BY Draconis variables
*     CEP: Cepheids
*    DCEP: delta Cepheids
*    DSCT: delta Scuti variables
*      CW: W Virginis stars
*    GCAS: gamma Cassopeiae variables (Be Stars)
*       E: eclipsing binaries
*     ELL: ellipsoidal variable Star
*      EW: eclipsing binary of W UMa type
*       I: irregular variables
*      IS: variable star with rapid variations
*       L: slow irregular variables
*       M: Mira Ceti variables
*       P: undifferentiated periodic variable
*       R: V-I colour index was revised due to variability analysis (HIP)
*     RCB: R Coronae Borealis stars
*      RR: RR Lyrae variables
*      RS: Variable of RS CVn type
*      RV: RV Tauri stars
*      SR: semi-regular variables
*    SDOR: S Doradus stars
*   SXPHE: SX Phoenicis stars
*       U: unresolved variables including unknown types
*      UV: UV Ceti type variables
*      XP: X-ray pulsars
*    ZAND: Z Andromedae cataclysmic variables

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

C  Loading file 'table1.dat'	! *Information on individual stars

C  Format for file interpretation

    1 format(
     +  I6,1X,I3,1X,F7.4,1X,F6.4,1X,F4.2,1X,I6,1X,A16,1X,A12,1X,A7)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,2026
        read(1,'(A75)')ar__
        read(ar__,1)
     +  HIP(i__),Nobs(i__),Hpmag(i__),e_Hpmag(i__),Amp(i__),HD(i__),
     +  Name(i__),SpType(i__),VarType(i__)
        if(ar__(32:37) .EQ. '') HD(i__) = iNULL__
c    ..............Just test output...........
        write(6,1)
     +  HIP(i__),Nobs(i__),Hpmag(i__),e_Hpmag(i__),Amp(i__),HD(i__),
     +  Name(i__),SpType(i__),VarType(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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