FORTRAN Generation
(/./ftp/cats/J/A_A/505/901)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/505/901 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-Apr-16
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/505/901       OGLE-TR-10 u', g' and i'-band photometry   (Bentley+, 2009)
*================================================================================
*A Stellar Flare during the Transit of the Extrasolar Planet OGLE-TR-10b.
*(Research Note).
*    Bentley S.J., Hellier C., Maxted P.F.L., Dhillon V.S., Marsh T.R.,
*    Copperwheat C.M., Littlefair S.P.
*   <Astron. Astrophys. 505, 901 (2009)>
*   =2009A&A...505..901B
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table2.dat'	! VLT-ULTRACAM u'g'i'-band photometry of OGLE-TR-10

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

      real*8        HJDu_      (nr__) ! (d) ?=- Heliocentric Julian Date
      real*4        u_mag      (nr__) ! ?=- Relative u'-band brightness
      real*4        e_u_mag    (nr__) ! ?=- Relative u'-band brightness error
      real*8        HJDg_      (nr__) ! (d) Heliocentric Julian Date
      real*4        g_mag      (nr__) ! Relative g'-band brightness
      real*4        e_g_mag    (nr__) ! Relative g'-band brightness error
      real*8        HJDi_      (nr__) ! (d) Heliocentric Julian Date
      real*4        i_mag      (nr__) ! Relative i'-band brightness
      real*4        e_i_mag    (nr__) ! Relative i'-band brightness error

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

C  Loading file 'table2.dat'	! VLT-ULTRACAM u'g'i'-band photometry of OGLE-TR-10

C  Format for file interpretation

    1 format(
     +  F12.4,1X,F6.4,1X,F6.4,1X,F12.4,1X,F6.4,1X,F6.4,1X,F12.4,1X,
     +  F6.4,1X,F6.4)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,65
        read(1,'(A80)')ar__
        read(ar__,1)
     +  HJDu_(i__),u_mag(i__),e_u_mag(i__),HJDg_(i__),g_mag(i__),
     +  e_g_mag(i__),HJDi_(i__),i_mag(i__),e_i_mag(i__)
        if (idig(ar__(1:12)).EQ.0) HJDu_(i__) =  rNULL__
        if (idig(ar__(14:19)).EQ.0) u_mag(i__) =  rNULL__
        if (idig(ar__(21:26)).EQ.0) e_u_mag(i__) =  rNULL__
c    ..............Just test output...........
        write(6,1)
     +  HJDu_(i__),u_mag(i__),e_u_mag(i__),HJDg_(i__),g_mag(i__),
     +  e_g_mag(i__),HJDi_(i__),i_mag(i__),e_i_mag(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C Locate position of first digit in string; or return 0
      integer function idig(c)
      character*(*) c
      character*1 c1
      integer lc,i
      lc=len(c)
      idig=0
      do i=1,lc
         if(c(i:i).ne.' ') go to 1
      end do
    1 if(i.gt.lc) return
      c1=c(i:i)
      if(c1.eq.'.'.or.c1.eq.'-'.or.c1.eq.'+') i=i+1
      if(i.gt.lc) return
      c1=c(i:i)
      if(c1.ge.'0'.and.c1.le.'9') idig=i
      return
      end