FORTRAN Generation
(/./ftp/cats/J/A_A/389/641)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/389/641 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-Mar-29
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/389/641  Colors of Minor Bodies in the Outer Solar System (Hainaut+, 2002)
*================================================================================
*Colors of Minor Bodies in the Outer Solar System. A statistical analysis
*      Hainaut O.R., Delsanti A.C.
*     <Astron. Astrophys. 389, 641 (2002)>
*     =2002A&A...389..641H
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Average magnitudes and colors

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

      character*10  Object      ! Object designation (Chi2060 for 2060 Chiron)
      character*4   Class       ! Class of the body (1)
      integer*4     NEpoch      ! Number of epochs
      real*4        M11         ! (mag) ?  Absolute R magnitude
      real*4        e_M11       ! (mag) ? rms uncertainty on M11
      real*4        Grt         ! (10+5m-1) ? Spectral gradient S (in %/100nm)
      real*4        e_Grt       ! (10+5m-1) ? rms uncertainty on Grt
      real*4        B_V         ! (mag) ? B-V colour index
      real*4        e_B_V       ! (mag) ? rms uncertainty on B-V
      real*4        V_R         ! (mag) ? V-R colour index
      real*4        e_V_R       ! (mag) ? rms uncertainty on V-R
      real*4        R_I         ! (mag) ? R-I colour index
      real*4        e_R_I       ! (mag) ? rms uncertainty on R-I
      real*4        I_J         ! (mag) ? I-J colour index
      real*4        e_I_J       ! (mag) ? rms uncertainty on I-J
      real*4        J_H         ! (mag) ? J-H colour index
      real*4        e_J_H       ! (mag) ? rms uncertainty on J-H
      real*4        H_K         ! (mag) ? H-K colour index
      real*4        e_H_K       ! (mag) ? rms uncertainty on H-K
*Note (1): Class:
*     QB1: Cubewano
*    Plut: Plutino
*    Cent: Centaur
*     SPC: Short Period Comet
*     LPC: Long Period Comet

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

C  Loading file 'table1.dat'	! Average magnitudes and colors

C  Format for file interpretation

    1 format(
     +  A10,1X,A4,2X,I2,1X,F6.3,1X,F5.3,1X,F6.3,1X,F5.3,2X,F5.3,1X,
     +  F5.3,2X,F5.3,1X,F5.3,2X,F5.3,1X,F5.3,2X,F5.3,1X,F5.3,1X,F6.3,
     +  1X,F5.3,1X,F6.3,1X,F5.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,105
        read(1,'(A123)')ar__
        read(ar__,1)
     +  Object,Class,NEpoch,M11,e_M11,Grt,e_Grt,B_V,e_B_V,V_R,e_V_R,
     +  R_I,e_R_I,I_J,e_I_J,J_H,e_J_H,H_K,e_H_K
        if(ar__(21:26) .EQ. '') M11 = rNULL__
        if(ar__(28:32) .EQ. '') e_M11 = rNULL__
        if(ar__(34:39) .EQ. '') Grt = rNULL__
        if(ar__(41:45) .EQ. '') e_Grt = rNULL__
        if(ar__(48:52) .EQ. '') B_V = rNULL__
        if(ar__(54:58) .EQ. '') e_B_V = rNULL__
        if(ar__(61:65) .EQ. '') V_R = rNULL__
        if(ar__(67:71) .EQ. '') e_V_R = rNULL__
        if(ar__(74:78) .EQ. '') R_I = rNULL__
        if(ar__(80:84) .EQ. '') e_R_I = rNULL__
        if(ar__(87:91) .EQ. '') I_J = rNULL__
        if(ar__(93:97) .EQ. '') e_I_J = rNULL__
        if(ar__(99:104) .EQ. '') J_H = rNULL__
        if(ar__(106:110) .EQ. '') e_J_H = rNULL__
        if(ar__(112:117) .EQ. '') H_K = rNULL__
        if(ar__(119:123) .EQ. '') e_H_K = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  Object,Class,NEpoch,M11,e_M11,Grt,e_Grt,B_V,e_B_V,V_R,e_V_R,
     +  R_I,e_R_I,I_J,e_I_J,J_H,e_J_H,H_K,e_H_K
c    .......End.of.Just test output...........
      end do
      close(1)

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