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

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/610/A25 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-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/610/A25       Sulamitis and Clarissa asteroids spectra     (Morate+, 2018)
*================================================================================
*Visible spectroscopy of the Sulamitis and Clarissa primitive families:
*a possible link to Erigone and Polana
*    Morate D., de Leon J., De Pra M., Licandro J., Cabrera-Lavers A.,
*    Campins H., Pinilla-Alonso N.
*    <Astron. Astrophys. 610, A25 (2018)>
*    =2018A&A...610A..25M        (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'list.dat'	! Observational circumstances for the asteroids
                                 presented in this work

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

      integer*4     Ast         ! Asteroid number
      character*1   n_Ast       ! [*] *: Observed with INT
      character*10  Obs_date    ! ("DD-MM-YYYY") Observation date
      character*5   Obs_time    ! ("h:m") Observation UT start time
      character*6   TExp        ! (s) Exposure time
      real*4        Vmag        ! (mag) V magnitude
      character*5   SAs         ! ID number of each solar analog star (1)
      character*25  FileName    ! Name of the spectrum file
*Note (1): Solar analog stars as follows:
*   --------------------------------------------
*   ID   Star           RA (J2000) DE      Vmag
*   --------------------------------------------
*   1  = SA 93-101   01:53:18.0 +00:22:25   9.7
*   2  = SA 98-978   06:51:34.0 -00:11:28  10.5
*   3  = SA 102-1081 10:57:04.4 -00:13:10   9.9
*   4  = SA 107-998  15:38:16.4 +00:15:23  10.4
*   5  = SA 110-361  18:42:45.0 +00:08:04  12.4
*   6  = SA 112-1333 20:43:11.8 +00:26:15  10.0
*   7  = SA 115-271  23:42:41.8 +00:45:10   9.7
*   --------------------------------------------

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

C  Declarations for 'sulamitis/*'	! Individual spectra of Sulamitis asteroids

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

      real*4        lambda      ! (um) Wavelength
      real*4        Refl        ! Relative reflectance
*                                 (normalized at 1 at 0.55um)
      real*8        e_Refl      ! ? rms uncertainty on Refl, only for INT spectrum

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

C  Declarations for 'clarissa/*'	! Individual spectra of Clarissa asteroids

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

      real*4        lambda_1    ! (um) Wavelength
      real*4        Refl_1      ! Relative reflectance
*                                 (normalized at 1 at 0.55um)
      real*8        e_Refl_1    ! ? rms uncertainty on Refl, only for INT spectrum

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

C  Loading file 'list.dat'	! Observational circumstances for the asteroids
*                                 presented in this work

C  Format for file interpretation

    1 format(I6,A1,1X,A10,1X,A5,1X,A6,1X,F4.1,1X,A5,1X,A25)

C  Effective file loading

      open(unit=1,status='old',file=
     +'list.dat')
      write(6,*) '....Loading file: list.dat'
      do i__=1,98
        read(1,'(A68)')ar__
        read(ar__,1)
     +  Ast,n_Ast,Obs_date,Obs_time,TExp,Vmag,SAs,FileName
c    ..............Just test output...........
        write(6,1)
     +  Ast,n_Ast,Obs_date,Obs_time,TExp,Vmag,SAs,FileName
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'sulamitis/*'	! Individual spectra of Sulamitis asteroids

C  Format for file interpretation

    2 format(3X,E13.9,3X,E13.9,1X,F7.5)

C  Effective file loading

      open(unit=1,status='old',file=
     +'sulamitis/*')
      write(6,*) '....Loading file: sulamitis/*'
      do i__=1,65
        read(1,'(A40)')ar__1
        read(ar__1,2)lambda,Refl,e_Refl
        if(ar__1(34:40) .EQ. '') e_Refl = rNULL__
c    ..............Just test output...........
        write(6,2)lambda,Refl,e_Refl
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'clarissa/*'	! Individual spectra of Clarissa asteroids

C  Format for file interpretation

    3 format(3X,E13.9,3X,E13.9,1X,F7.5)

C  Effective file loading

      open(unit=1,status='old',file=
     +'clarissa/*')
      write(6,*) '....Loading file: clarissa/*'
      do i__=1,33
        read(1,'(A40)')ar__2
        read(ar__2,3)lambda_1,Refl_1,e_Refl_1
        if(ar__2(34:40) .EQ. '') e_Refl_1 = rNULL__
c    ..............Just test output...........
        write(6,3)lambda_1,Refl_1,e_Refl_1
c    .......End.of.Just test output...........
      end do
      close(1)

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