FORTRAN Generation
(/./ftp/cats/J/A_A/610/A2)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/610/A2 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-Apr-20
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/610/A2       Saturnian satellites Cassini ISS astrometry   (Cooper+, 2018)
*================================================================================
*The Caviar software package for the astrometric reduction of Cassini ISS images:
*description and examples.
*    Cooper N.J., Lainey, V., Meunier, L-E., Murray C.D., Zhang, Q-F,
*    Baillie, K., Evans M.W., Thuillot, W., Vienne, A.
*    <Astron. Astrophys. 610, A2 (2018)>
*    =2018A&A...610A...2C        (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Astrometric observations of Saturnian satellites
                                 Mimas, Enceladus, Tethys, Dione and Rhea from
                                 Cassini ISS NAC images

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

C  Position composed of: RAdeg DEdeg
      character*11  Image       ! Image identification number
      character*11  Obs_date    ! ("YYYY/MMM/DD") Date of the observation
      character*12  Obs_time    ! ("h:m:s") Observation time (image mid-time)
      real*8        RAcdeg      ! (deg) Camera's right ascension
      real*8        DEcdeg      ! (deg) Camera's declination
      real*8        Twist       ! (deg) Camera's Twist angle
      real*8        Line        ! (pix) Body's line position
      real*8        Sample      ! (pix) Body's sample position
      real*8        RAdeg       ! (deg) Body's right ascension (ICRF)
      real*8        DEdeg       ! (deg) Body's declination (ICRF)
      character*12  Body        ! Name of the observed body

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

C  Declarations for 'table5.dat'	! Observed reference star positions from
                                 Cassini ISS NAC images

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

C  Position composed of: RAdeg DEdeg
      character*12  Image_1     ! Image identification number
      character*26  Star        ! Catalogue name of star (UCAC5)
      real*8        RAdeg_1     ! (deg) Star's right ascension (ICRF)
      real*8        DEdeg_1     ! (deg) Star's declination (ICRF)
      real*8        Oline       ! (pix) Star's observed line coordinate
      real*8        Osamp       ! (pix) Star's observed sample coordinate
      real*8        Pline       ! (pix) Star's predicted line coordinate
      real*8        Psamp       ! (pix) Star's predicted sample coordinate
      real*8        resline     ! (pix) O-C line residual
      real*8        ressamp     ! (pix) O-C sample residual
      real*8        mag         ! Catalogue magnitude (UCAC5)

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

C  Loading file 'table1.dat'	! Astrometric observations of Saturnian satellites
*                                 Mimas, Enceladus, Tethys, Dione and Rhea from
*                                 Cassini ISS NAC images

C  Format for file interpretation

    1 format(
     +  A11,2X,A11,1X,A12,2X,F10.6,2X,F10.6,2X,F10.6,2X,F8.2,2X,F8.2,
     +  2X,F10.6,2X,F10.6,2X,A12)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,287
        read(1,'(A131)')ar__
        read(ar__,1)
     +  Image,Obs_date,Obs_time,RAcdeg,DEcdeg,Twist,Line,Sample,RAdeg,
     +  DEdeg,Body
c    ..............Just test output...........
        write(6,1)
     +  Image,Obs_date,Obs_time,RAcdeg,DEcdeg,Twist,Line,Sample,RAdeg,
     +  DEdeg,Body
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table5.dat'	! Observed reference star positions from
*                                 Cassini ISS NAC images

C  Format for file interpretation

    2 format(
     +  A12,A26,F17.12,F17.12,F10.4,F10.4,F10.4,F10.4,F10.4,F10.4,F8.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table5.dat')
      write(6,*) '....Loading file: table5.dat'
      do i__=1,1485
        read(1,'(A140)')ar__1
        read(ar__1,2)
     +  Image_1,Star,RAdeg_1,DEdeg_1,Oline,Osamp,Pline,Psamp,resline,
     +  ressamp,mag
c    ..............Just test output...........
        write(6,2)
     +  Image_1,Star,RAdeg_1,DEdeg_1,Oline,Osamp,Pline,Psamp,resline,
     +  ressamp,mag
c    .......End.of.Just test output...........
      end do
      close(1)

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