FORTRAN Generation
(/./ftp/cats/J/A_A/511/A49)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/511/A49 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.



****Equinox Unknown in Position Column 'ELON' for: table1.dat
      program load_ReadMe
C=============================================================================
C  F77-compliant program generated by readme2f_1.81 (2015-09-23), on 2024-Apr-19
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/511/A49       Lightcurves of 12 NEAs                  (Kwiatkowski+, 2010)
*================================================================================
*Photometric survey of the very small near-Earth asteroids with the SALT
*telescope.
*III. Lightcurves and periods for 12 objects and negative detections.
*    Kwiatkowski T., Polinska M., Loaring N., Buckley D.A.H., O'Donoghue D.,
*    Kniazev A., Romero Colmenero E.
*   <Astron. Astrophys. 511, A49 (2010)>
*   =2010A&A...511A..49K
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Aspect data and observing log

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

      character*10  Ast         ! Designation of the asteroid
      real*4        Hmag        ! (mag) Absolute magnitude
      character*10  Obs1_Date   ! ("YYYY/MM/DD") Date of observation
      character*5   Obs1_Time   ! ("h:m") Observing time (beginning) (1)
      character*5   Obs2_Time   ! ("h:m") Observing time (end)      (1)
      real*4        r           ! (AU) Asteroid-Sun distance (2)
      real*4        Delta       ! (AU) Asteroid-Earth distance (2)
      real*4        alpha       ! (deg) Solar phase angle (2)
      real*4        ELON        ! (deg) Geocentric, ecliptic longitude (2)
      real*4        ELAT        ! (deg) Geocentric, ecliptic latitude (2)
      real*4        Vmag        ! (mag) Apparent magnitude
      real*4        SkyMov      ! (arcsec/min) Asteroid movement on the sky
      integer*4     Exp         ! (s) Exposure time
      integer*4     N1          ! Number of exposures taken
      integer*4     N2          ! Number of exposures used
*Note (1): Observing runs which started on the next UTC night have hours
*     greater than 24 h.
*Note (2): Coordinates given for the middle of the observation

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

C  Declarations for 'table2.dat'	! Summary of the results

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

      character*10  Ast_1       ! Asteroid designation
      real*4        Per         ! (h) Rotation period
      real*4        e_Per       ! (h) Period uncertainty (max error/sigma)
      real*4        Amp         ! (mag) Peak-to-peak lightcurve amplitude
      real*4        a_b         ! Maximum elongation (1)
      real*4        Diam        ! (km) Effective diameter
*Note (1): Actual a/b elongation is not greater than the given value

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

C  Declarations for 'list.dat'	! List of all light curves

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

      character*10  Ast_2       ! Asteroid name
      character*14  FileName    ! Name of the file containing the light curve
      character*32  Title       ! Title of the file

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

C  Declarations for 'lc/*'	! Individual light curves

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

      real*8        Time        ! (d) Julian date (1)
      real*4        mag         ! (mag) Relative magnitude
*Note (1): not corrected for the light travel time

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

C  Declarations for 'clc/*'	! Composite light curves

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

      real*8        Phase       ! (d) Rotation phase
      real*4        mag_1       ! (mag) Relative magnitude

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

C  Loading file 'table1.dat'	! Aspect data and observing log

C  Format for file interpretation

    1 format(
     +  A10,1X,F4.1,1X,A10,1X,A5,1X,A5,1X,F6.4,F6.4,F4.1,1X,F5.1,1X,
     +  F5.1,1X,F4.1,1X,F4.1,1X,I2,1X,I3,1X,I3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,23
        read(1,'(A88)')ar__
        read(ar__,1)
     +  Ast,Hmag,Obs1_Date,Obs1_Time,Obs2_Time,r,Delta,alpha,ELON,
     +  ELAT,Vmag,SkyMov,Exp,N1,N2
c    ..............Just test output...........
        write(6,1)
     +  Ast,Hmag,Obs1_Date,Obs1_Time,Obs2_Time,r,Delta,alpha,ELON,
     +  ELAT,Vmag,SkyMov,Exp,N1,N2
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table2.dat'	! Summary of the results

C  Format for file interpretation

    2 format(A10,1X,F5.3,1X,F5.3,1X,F4.2,1X,F3.1,1X,F5.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,12
        read(1,'(A37)')ar__1
        read(ar__1,2)Ast_1,Per,e_Per,Amp,a_b,Diam
c    ..............Just test output...........
        write(6,2)Ast_1,Per,e_Per,Amp,a_b,Diam
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'list.dat'	! List of all light curves

C  Format for file interpretation

    3 format(A10,2X,A14,4X,A32)

C  Effective file loading

      open(unit=1,status='old',file=
     +'list.dat')
      write(6,*) '....Loading file: list.dat'
      do i__=1,37
        read(1,'(A62)')ar__2
        read(ar__2,3)Ast_2,FileName,Title
c    ..............Just test output...........
        write(6,3)Ast_2,FileName,Title
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'lc/*'	! Individual light curves

C  Format for file interpretation

    4 format(F15.7,1X,F6.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'lc/*')
      write(6,*) '....Loading file: lc/*'
      do i__=1,27
        read(1,'(A22)')ar__3
        read(ar__3,4)Time,mag
c    ..............Just test output...........
        write(6,4)Time,mag
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'clc/*'	! Composite light curves

C  Format for file interpretation

    5 format(F13.7,1X,F5.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'clc/*')
      write(6,*) '....Loading file: clc/*'
      do i__=1,10
        read(1,'(A19)')ar__4
        read(ar__4,5)Phase,mag_1
c    ..............Just test output...........
        write(6,5)Phase,mag_1
c    .......End.of.Just test output...........
      end do
      close(1)

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