FORTRAN Generation
(/./ftp/cats/J/ApJ/718/530)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/718/530 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/ApJ/718/530          Leo IV g- and r-band photometry             (Sand+, 2010)
*================================================================================
*A deeper look at Leo IV: star formation history and extended structure.
*    Sand D.J., Seth A., Olszewski E.W., Willman B., Zaritsky D.,
*    Kallivayalil N.
*   <Astrophys. J., 718, 530-542 (2010)>
*   =2010ApJ...718..530S
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Leo IV photometry

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

C  J2000 position composed of: RAdeg DEdeg
      integer*4     v_SSO2010_ (nr__) ! [0/25281] Star index number
      real*8        RAdeg      (nr__) ! (deg) Right Ascension in decimal degrees (J2000)
      real*8        DEdeg      (nr__) ! (deg) Declination in decimal degrees (J2000)
      real*4        gmag       (nr__) ! (mag) The g band magnitude; uncorrected for extinction
      real*4        e_gmag     (nr__) ! (mag) Uncertainty in gmag
      real*4        Ag         (nr__) ! (mag) Galactic extinction value in g band
      real*4        rmag       (nr__) ! (mag) The r band magnitude; uncorrected for extinction
      real*4        e_rmag     (nr__) ! (mag) Uncertainty in rmag
      real*4        Ar         (nr__) ! (mag) Galactic extinction value in r band
      character*4   Ref        (nr__) ! Photometry source; SDSS or MMT

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

C  Loading file 'table1.dat'	! Leo IV photometry

C  Format for file interpretation

    1 format(
     +  I5,1X,F9.5,1X,F8.5,1X,F5.2,1X,F4.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,
     +  F4.2,1X,A4)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,25282
        read(1,'(A61)')ar__
        read(ar__,1)
     +  v_SSO2010_(i__),RAdeg(i__),DEdeg(i__),gmag(i__),e_gmag(i__),
     +  Ag(i__),rmag(i__),e_rmag(i__),Ar(i__),Ref(i__)
c    ..............Just test output...........
        write(6,1)
     +  v_SSO2010_(i__),RAdeg(i__),DEdeg(i__),gmag(i__),e_gmag(i__),
     +  Ag(i__),rmag(i__),e_rmag(i__),Ar(i__),Ref(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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