FORTRAN Generation
(/./ftp/cats/I/125A)

Conversion of standardized ReadMe file for file /./ftp/cats/I/125A 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.



++++Column 'RAh' at line 57: Right Ascension B1950 (hours) at Epoch
    position has no associated Epoch (last analysed word: '')
      program load_ReadMe
C=============================================================================
C  F77-compliant program generated by readme2f_1.81 (2015-09-23), on 2024-Mar-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. I/125A           Combined Lick-Voyager Reference Star Catalogue  (Dunham 1986)
*================================================================================
*Combined Lick-Voyager Reference Star Catalogue.
*     Dunham D.W.
*    <Unpublished (1986)>
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'catalog.dat'	! The Catalogue

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

C  B1950 position composed of: RAh RAm RAms DE- DEd DEm DEcs
      real*8        RAdeg       ! (deg) Right Ascension B1950
      real*8        DEdeg       ! (deg)     Declination B1950
C  ---------------------------------- ! (position vector(s) in degrees)

      character*1   DMsign      ! [-+CL] DM zone sign, or Lick indicator:
*                                     + or -  :  Bonner Durchmusterung
*                                     C       :  Cordoba Durchmusterung
*                                     L       :  Lick (non-DM)
      integer*4     DMzone      ! DM zone (without sign), or if Lick:
*                                     1=Jupiter, 2=Saturn, 3=Uranus-pre,
*                                     4=Uranus-post, 5=Neptune
      integer*4     DMnum       ! sequence number in DM (or Lick) zone
      integer*4     Vmag        ! (0.01mag) V magnitude (in unit of 0.01mag.)
      integer*4     RAh         ! (h) Right Ascension B1950 (hours) at Epoch
      integer*4     RAm         ! (min) Right Ascension B1950 (minutes)
      integer*4     RAms        ! (ms) Right Ascension B1950 (seconds)
      integer*4     pmRA        ! (0.01ms/a) proper motion in RA (0.001s/century)
      character*1   DE_         ! Declination B1950 (sign)
      integer*4     DEd         ! (deg) Declination B1950 (degrees) at Epoch
      integer*4     DEm         ! (arcmin) Declination B1950 (minutes)
      integer*4     DEcs        ! (10mas) Declination B1950 (0.01 seconds)
      integer*4     pmDE        ! (0.1mas/a) proper motion in DE (0.01arcseconds/cent)
      integer*4     Bmag        ! (0.01mag) []?=9999 B magnitude (0.01mag.)
      integer*4     SCnum       ! Lick source number, see remarks below.
      integer*4     SAO         ! [1/258997]?=0 SAO number  <I/131>
      character*3   SpType      ! spectral type (if given)
      integer*4     e_RAs       ! (10mas) error of RA (0.01arcseconds)
      integer*4     e_pmRA      ! (0.1mas/a) error of pmRA (0.01arcseconds/century)
      integer*4     e_DEs       ! (10mas) error of DE (0.01arcseconds)
      integer*4     e_pmDE      ! (0.1mas/a) error of pmDE (0.01arcseconds/century)
      integer*4     Ep_1900     ! (0.01a) epoch of RA and DE, 0.01years since 1900.
      integer*4     plx         ! (0.1mas) parallax (0.0001arcseconds)
      character*8   AGK3        ! AGK3 designation (zone in bytes 81-83,
*                                       number in bytes 85-88)

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

C  Loading file 'catalog.dat'	! The Catalogue

C  Format for file interpretation

    1 format(
     +  A1,I2,I5,I4,I2,I2,I5,I6,A1,I2,I2,I4,I6,I4,I5,I6,A3,I3,I3,I3,
     +  I3,I4,I4,A8)

C  Effective file loading

      open(unit=1,status='old',file=
     +'catalog.dat')
      write(6,*) '....Loading file: catalog.dat'
      do i__=1,25136
        read(1,'(A88)')ar__
        read(ar__,1)
     +  DMsign,DMzone,DMnum,Vmag,RAh,RAm,RAms,pmRA,DE_,DEd,DEm,DEcs,
     +  pmDE,Bmag,SCnum,SAO,SpType,e_RAs,e_pmRA,e_DEs,e_pmDE,Ep_1900,
     +  plx,AGK3
        RAdeg = rNULL__
        DEdeg = rNULL__
c  Derive coordinates RAdeg and DEdeg from input data
c  (RAdeg and DEdeg are set to rNULL__ when unknown)
        if(RAh .GT. -180) RAdeg=RAh*15.
        if(RAm .GT. -180) RAdeg=RAdeg+RAm/4.
        if(RAms .GT. -180) RAdeg=RAdeg+RAms/240000.
        if(DEd .GE. 0) DEdeg=DEd
        if(DEm .GE. 0) DEdeg=DEdeg+DEm/60.
        if(DEcs .GE. 0) DEdeg=DEdeg+DEcs/360000.
        if(DE_.EQ.'-'.AND.DEdeg.GE.0) DEdeg=-DEdeg
c    ..............Just test output...........
        write(6,1)
     +  DMsign,DMzone,DMnum,Vmag,RAh,RAm,RAms,pmRA,DE_,DEd,DEm,DEcs,
     +  pmDE,Bmag,SCnum,SAO,SpType,e_RAs,e_pmRA,e_DEs,e_pmDE,Ep_1900,
     +  plx,AGK3
        write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
c    .......End.of.Just test output...........
      end do
      close(1)

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