FORTRAN Generation
(/./ftp/cats/I/10)

Conversion of standardized ReadMe file for file /./ftp/cats/I/10 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 2026-May-17
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/10   General Catalogue of Stellar Trigonometric Parallaxes (Jenkins 1952-1963)
*================================================================================
*General Catalogue of Stellar Trigonometric Parallaxes
*     Jenkins L.F.
*    <Yale University Observatory (1952,1963)>
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'catalog.dat'	! Absolute trigonometric parallaxes for 6398 stars

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

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

      real*4        GCTP        ! Star number (1)
      character*1   n_GCTP      ! [01234S] Multiple or supplement (2)
      integer*4     DM          ! ? Durchmusterung (BD, CD, CPD) designation
      integer*4     RAh         ! (h) Right Ascension B1900 (hours)
      real*4        RAm         ! (min) Right Ascension B1900 (minutes)
      character*1   DE_         ! Declination B1900 (sign)
      integer*4     DEd         ! (deg) Declination B1900 (degrees)
      integer*4     DEm         ! (arcmin) Declination B1900 (minutes)
      real*4        mag         ! (mag) ? Magnitude (visual ou photographic, see n_mag)
      character*1   n_mag       ! [PV*] Photographic or Visual magnitude (3)
      character*3   Sp          ! Spectral type
      integer*4     HD          ! ? HD number (Cat. III/135)
      character*9   Oname       ! Other name
      integer*4     pmRA        ! (mas/yr) ? Proper motion in RA (*cos(Dec))
      integer*4     pmDE        ! (mas/yr) ? Proper motion in Declination
      integer*4     plx         ! (mas) ? Absolute trigonometric parallax
      integer*4     e_plx       ! (mas) ? Probable error on plx
*Note (1): Numbers with a non-zero fraction like 16.1 were assigned to stars
*     added in the 1963 supplement; the numbers ending with '.0' are stars
*     from the 1952 edition.
*Note (2): The 'S' indicates data from the 1963 Supplement edition.
*     Numeric values were assigned to components of multiple systems.
*Note (3): the asterisk (*) indicates variable stars; 'P' stands for
*     photographic (blue), and V for visual.

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

C  Loading file 'catalog.dat'	! Absolute trigonometric parallaxes for 6398 stars

C  Format for file interpretation

    1 format(
     +  F6.1,A1,I8,I2,F4.1,A1,I2,I2,1X,F4.1,A1,A3,I6,A9,I5,I5,I4,I2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'catalog.dat')
      write(6,*) '....Loading file: catalog.dat'
      do i__=1,7330
        read(1,'(A66)')ar__
        read(ar__,1)
     +  GCTP,n_GCTP,DM,RAh,RAm,DE_,DEd,DEm,mag,n_mag,Sp,HD,Oname,pmRA,
     +  pmDE,plx,e_plx
        if(ar__(8:15) .EQ. '') DM = iNULL__
        if(ar__(28:31) .EQ. '') mag = rNULL__
        if(ar__(36:41) .EQ. '') HD = iNULL__
        if(ar__(51:55) .EQ. '') pmRA = iNULL__
        if(ar__(56:60) .EQ. '') pmDE = iNULL__
        if(ar__(61:64) .EQ. '') plx = iNULL__
        if(ar__(65:66) .EQ. '') e_plx = iNULL__
        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(DEd .GE. 0) DEdeg=DEd
        if(DEm .GE. 0) DEdeg=DEdeg+DEm/60.
        if(DE_.EQ.'-'.AND.DEdeg.GE.0) DEdeg=-DEdeg
c    ..............Just test output...........
        write(6,1)
     +  GCTP,n_GCTP,DM,RAh,RAm,DE_,DEd,DEm,mag,n_mag,Sp,HD,Oname,pmRA,
     +  pmDE,plx,e_plx
        write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
c    .......End.of.Just test output...........
      end do
      close(1)

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