FORTRAN Generation
(/./ftp/cats/J/A_A/521/A19)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/521/A19 into FORTRAN code for loading all data files into arrays.

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-28
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/521/A19       21 Lutetia UBVRI light curves            (Lamy+, 2010)
*================================================================================
*Multi-color, rotationally resolved photometry of asteroid 21 Lutetia from
*OSIRIS/Rosetta observations.
*    Lamy P., Faury G., Jorda L., Kaasalainen M., Hviid S.F.
*   <Astron. Astrophys. 521, A19 (2010)>
*   =2010A&A...521A..19L
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table4.dat'	! Lutetia U(1,1,{alpha}) reduced magnitude

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

      real*8        MJD        (nr__) ! (d) Modified Julian Date (UTC)
      character*1   Band       (nr__) ! [UBVRI] Band for the magnitude
      real*4        mag        (nr__) ! (mag) Magnitude in Band (1)
      real*4        e_mag      (nr__) ! (mag) rms uncertainty on mag (1sigma)
*Note (1): reduced magnitudes m(1, 1, {alpha}=22.4{deg})
*     ({alpha} is the solar phase angle)

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

C  Declarations for 'table5.dat'	! Lutetia B(1,1,{alpha}) reduced magnitude

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

      real*8        MJD_1      (nr__1) ! (d) Modified Julian Date (UTC)
      character*1   Band_1     (nr__1) ! [UBVRI] Band for the magnitude
      real*4        mag_1      (nr__1) ! (mag) Magnitude in Band (1)
      real*4        e_mag_1    (nr__1) ! (mag) rms uncertainty on mag (1sigma)
*Note (1): reduced magnitudes m(1, 1, {alpha}=22.4{deg})
*     ({alpha} is the solar phase angle)

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

C  Declarations for 'table6.dat'	! Lutetia V(1,1,{alpha}) reduced magnitude

      integer*4 nr__2
      parameter (nr__2=52)	! Number of records
      character*30 ar__2  	! Full-size record

      real*8        MJD_2      (nr__2) ! (d) Modified Julian Date (UTC)
      character*1   Band_2     (nr__2) ! [UBVRI] Band for the magnitude
      real*4        mag_2      (nr__2) ! (mag) Magnitude in Band (1)
      real*4        e_mag_2    (nr__2) ! (mag) rms uncertainty on mag (1sigma)
*Note (1): reduced magnitudes m(1, 1, {alpha}=22.4{deg})
*     ({alpha} is the solar phase angle)

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

C  Declarations for 'table7.dat'	! Lutetia R(1,1,{alpha}) reduced magnitude

      integer*4 nr__3
      parameter (nr__3=52)	! Number of records
      character*30 ar__3  	! Full-size record

      real*8        MJD_3      (nr__3) ! (d) Modified Julian Date (UTC)
      character*1   Band_3     (nr__3) ! [UBVRI] Band for the magnitude
      real*4        mag_3      (nr__3) ! (mag) Magnitude in Band (1)
      real*4        e_mag_3    (nr__3) ! (mag) rms uncertainty on mag (1sigma)
*Note (1): reduced magnitudes m(1, 1, {alpha}=22.4{deg})
*     ({alpha} is the solar phase angle)

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

C  Declarations for 'table8.dat'	! Lutetia I(1,1,{alpha}) reduced magnitude

      integer*4 nr__4
      parameter (nr__4=76)	! Number of records
      character*30 ar__4  	! Full-size record

      real*8        MJD_4      (nr__4) ! (d) Modified Julian Date (UTC)
      character*1   Band_4     (nr__4) ! [UBVRI] Band for the magnitude
      real*4        mag_4      (nr__4) ! (mag) Magnitude in Band (1)
      real*4        e_mag_4    (nr__4) ! (mag) rms uncertainty on mag (1sigma)
*Note (1): reduced magnitudes m(1, 1, {alpha}=22.4{deg})
*     ({alpha} is the solar phase angle)

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

C  Loading file 'table4.dat'	! Lutetia U(1,1,{alpha}) reduced magnitude

C  Format for file interpretation

    1 format(F11.5,1X,A1,2X,F6.3,4X,F5.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table4.dat')
      write(6,*) '....Loading file: table4.dat'
      do i__=1,25
        read(1,'(A30)')ar__
        read(ar__,1)MJD(i__),Band(i__),mag(i__),e_mag(i__)
c    ..............Just test output...........
        write(6,1)MJD(i__),Band(i__),mag(i__),e_mag(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table5.dat'	! Lutetia B(1,1,{alpha}) reduced magnitude

C  Format for file interpretation

    2 format(F11.5,1X,A1,2X,F6.3,4X,F5.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table5.dat')
      write(6,*) '....Loading file: table5.dat'
      do i__=1,51
        read(1,'(A30)')ar__1
        read(ar__1,2)MJD_1(i__),Band_1(i__),mag_1(i__),e_mag_1(i__)
c    ..............Just test output...........
        write(6,2)MJD_1(i__),Band_1(i__),mag_1(i__),e_mag_1(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table6.dat'	! Lutetia V(1,1,{alpha}) reduced magnitude

C  Format for file interpretation

    3 format(F11.5,1X,A1,2X,F6.3,4X,F5.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table6.dat')
      write(6,*) '....Loading file: table6.dat'
      do i__=1,52
        read(1,'(A30)')ar__2
        read(ar__2,3)MJD_2(i__),Band_2(i__),mag_2(i__),e_mag_2(i__)
c    ..............Just test output...........
        write(6,3)MJD_2(i__),Band_2(i__),mag_2(i__),e_mag_2(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table7.dat'	! Lutetia R(1,1,{alpha}) reduced magnitude

C  Format for file interpretation

    4 format(F11.5,1X,A1,2X,F6.3,4X,F5.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table7.dat')
      write(6,*) '....Loading file: table7.dat'
      do i__=1,52
        read(1,'(A30)')ar__3
        read(ar__3,4)MJD_3(i__),Band_3(i__),mag_3(i__),e_mag_3(i__)
c    ..............Just test output...........
        write(6,4)MJD_3(i__),Band_3(i__),mag_3(i__),e_mag_3(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table8.dat'	! Lutetia I(1,1,{alpha}) reduced magnitude

C  Format for file interpretation

    5 format(F11.5,1X,A1,2X,F6.3,4X,F5.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table8.dat')
      write(6,*) '....Loading file: table8.dat'
      do i__=1,76
        read(1,'(A30)')ar__4
        read(ar__4,5)MJD_4(i__),Band_4(i__),mag_4(i__),e_mag_4(i__)
c    ..............Just test output...........
        write(6,5)MJD_4(i__),Band_4(i__),mag_4(i__),e_mag_4(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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