FORTRAN Generation
(/./ftp/cats/J/AJ/155/184)

Conversion of standardized ReadMe file for file /./ftp/cats/J/AJ/155/184 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-Jun-15
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/AJ/155/184  Irregular planetary satellites colors & shapes (Graykowski+, 2018)
*================================================================================
*Colors and shapes of the irregular planetary satellites.
*    Graykowski A., Jewitt D.
*   <Astron. J., 155, 184-184 (2018)>
*   =2018AJ....155..184G    (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table2.dat'	! Geometry and photometry

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

      character*7   Planet      ! Planet name (Jupiter, Neptune, Saturn, Uranus)
      character*18  Sat         ! Satellite name
      character*11  Date        ! ("date") UT date of the integration start
      character*5   Time1       ! ("h:m") First time of range of integration
      character*5   Time2       ! ("h:m") Last time of range of integration
      real*4        rH          ! (AU) [4.89/30.06] Heliocentric distance
      real*4        Delta       ! (AU) [3.89/29.31] Geocentric distance {Delta}
      real*4        alpha       ! (deg) [0.08/11.5] Phase angle {alpha}
      real*4        Rmag        ! (mag) [15.88/25.34] Apparent magnitude in the R filter
      real*4        e_Rmag      ! (mag) [0.01/0.31] 1{sigma} uncertainty in Rmag
      real*4        B_V         ! (mag) [0.58/1.03]? B-V color index
      real*4        e_B_V       ! (mag) [0.01/0.18]? 1{sigma} uncertainty in B-V
      real*4        V_R         ! (mag) [0.24/0.84]? V-R color index
      real*4        e_V_R       ! (mag) [0.01/0.42]? 1{sigma} uncertainty in V-R
      real*4        B_R         ! (mag) [0.83/1.63]? B-R color index
      real*4        e_B_R       ! (mag) [0.01/0.18]? 1{sigma} uncertainty in B-R

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

C  Declarations for 'table3.dat'	! Adopted absolute magnitudes and colors

      integer*4 nr__1
      parameter (nr__1=43)	! Number of records
      character*67 ar__1  	! Full-size record

      character*7   Planet_1    ! Planet name (Jupiter, Neptune, Saturn, Uranus)
      character*18  Sat_1       ! Satellite name
      real*4        RMag_1      ! (mag) [4.26/15.93] Absolute magnitude in the R filter
      real*4        e_RMag_1    ! (mag) [0.01/0.15] Uncertainty in RMag
      real*4        B_V_1       ! (mag) [0.57/0.97]? Absolute B-V color index
      real*4        e_B_V_1     ! (mag) [0.01/0.11]? 1{sigma} uncertainty in B-V
      real*4        V_R_1       ! (mag) [0.23/0.66]? Absolute V-R color index
      real*4        e_V_R_1     ! (mag) [0.01/0.13]? 1{sigma} uncertainty in V-R
      real*4        B_R_1       ! (mag) [0.91/1.63]? Absolute B-R color index
      real*4        e_B_R_1     ! (mag) [0.01/0.15]? 1{sigma} uncertainty in B-R

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

C  Loading file 'table2.dat'	! Geometry and photometry

C  Format for file interpretation

    1 format(
     +  A7,1X,A18,1X,A11,1X,A5,1X,A5,1X,F5.2,1X,F5.2,1X,F5.2,1X,F5.2,
     +  1X,F4.2,1X,F4.2,1X,F4.2,1X,F4.2,1X,F4.2,1X,F4.2,1X,F4.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,66
        read(1,'(A109)')ar__
        read(ar__,1)
     +  Planet,Sat,Date,Time1,Time2,rH,Delta,alpha,Rmag,e_Rmag,B_V,
     +  e_B_V,V_R,e_V_R,B_R,e_B_R
        if(ar__(81:84) .EQ. '') B_V = rNULL__
        if(ar__(86:89) .EQ. '') e_B_V = rNULL__
        if(ar__(91:94) .EQ. '') V_R = rNULL__
        if(ar__(96:99) .EQ. '') e_V_R = rNULL__
        if(ar__(101:104) .EQ. '') B_R = rNULL__
        if(ar__(106:109) .EQ. '') e_B_R = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  Planet,Sat,Date,Time1,Time2,rH,Delta,alpha,Rmag,e_Rmag,B_V,
     +  e_B_V,V_R,e_V_R,B_R,e_B_R
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table3.dat'	! Adopted absolute magnitudes and colors

C  Format for file interpretation

    2 format(
     +  A7,1X,A18,1X,F5.2,1X,F4.2,1X,F4.2,1X,F4.2,1X,F4.2,1X,F4.2,1X,
     +  F4.2,1X,F4.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,43
        read(1,'(A67)')ar__1
        read(ar__1,2)
     +  Planet_1,Sat_1,RMag_1,e_RMag_1,B_V_1,e_B_V_1,V_R_1,e_V_R_1,
     +  B_R_1,e_B_R_1
        if(ar__1(39:42) .EQ. '') B_V_1 = rNULL__
        if(ar__1(44:47) .EQ. '') e_B_V_1 = rNULL__
        if(ar__1(49:52) .EQ. '') V_R_1 = rNULL__
        if(ar__1(54:57) .EQ. '') e_V_R_1 = rNULL__
        if(ar__1(59:62) .EQ. '') B_R_1 = rNULL__
        if(ar__1(64:67) .EQ. '') e_B_R_1 = rNULL__
c    ..............Just test output...........
        write(6,2)
     +  Planet_1,Sat_1,RMag_1,e_RMag_1,B_V_1,e_B_V_1,V_R_1,e_V_R_1,
     +  B_R_1,e_B_R_1
c    .......End.of.Just test output...........
      end do
      close(1)

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