FORTRAN Generation
(/./ftp/cats/J/MNRAS/440/3430)

Conversion of standardized ReadMe file for file /./ftp/cats/J/MNRAS/440/3430 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-18
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/MNRAS/440/3430    SDSS-2MASS-WISE stellar colour locus     (Davenport+, 2014)
*================================================================================
*The SDSS-2MASS-WISE 10-dimensional stellar colour locus.
*    Davenport J.R.A., Ivezic Z., Becker A.C., Ruan J.J., Hunt-Walker N.M.,
*    Covey K.R., Lewis A.R., Alsayyad Y., Anderson L.M.
*   <Mon. Not. R. Astron. Soc., 440, 3430-3438 (2014)>
*   =2014MNRAS.440.3430D    (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Optical and NIR colour locus as a function of
                                 g-i colour bins

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

      real*4        g_i         ! (mag) g-i colour index
      integer*4     Nstar       ! Number of stars in each bin
      real*4        u_g         ! (mag) u-g colour index
      real*4        e_u_g       ! (mag) rms uncertainty on u-g
      real*4        g_r         ! (mag) g-r colour index
      real*4        e_g_r       ! (mag) rms uncertainty on g-r
      real*4        r_i         ! (mag) r-i colour index
      real*4        e_r_i       ! (mag) rms uncertainty on r-i
      real*4        i_z         ! (mag) i-z colour index
      real*4        e_i_z       ! (mag) rms uncertainty on i-z
      real*4        z_J         ! (mag) z-J colour index
      real*4        e_z_J       ! (mag) rms uncertainty on z-J
      real*4        J_H         ! (mag) J-H colour index
      real*4        e_J_H       ! (mag) rms uncertainty on J-H
      real*4        H_Ks        ! (mag) H-Ks colour index
      real*4        e_H_Ks      ! (mag) rms uncertainty on H-Ks

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

C  Declarations for 'table2.dat'	! The mid-IR colour locus as a function of
                                 g-i colour

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

      real*4        g_i_1       ! (mag) g-i colour index
      integer*4     Nstars      ! Number of stars in each bin from the
*                                   primary sample
      real*4        Ks_W1       ! (mag) Ks-W1 colour index
      real*4        e_Ks_W1     ! (mag) rms uncertainty on Ks-W1
      real*4        W1_W2       ! (mag) W1-W2 colour index
      real*4        e_W1_W2     ! (mag) rms uncertainty on W1-W2
      integer*4     NStarsW3    ! Number of stars in each bin from the
*                                   W3-limited subsample
      real*8        W2_W3       ! (mag) ?=-99 W2-W3 colour index
      real*4        e_W2_W3     ! (mag) ?=0 rms uncertainty on W2-W3

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

C  Loading file 'table1.dat'	! Optical and NIR colour locus as a function of
*                                 g-i colour bins

C  Format for file interpretation

    1 format(
     +  1X,F4.2,3X,I5,1X,F5.3,1X,F5.3,1X,F5.3,1X,F5.3,1X,F5.3,1X,F5.3,
     +  F6.3,1X,F5.3,1X,F5.3,1X,F5.3,1X,F5.3,1X,F5.3,1X,F5.3,1X,F5.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,135
        read(1,'(A97)')ar__
        read(ar__,1)
     +  g_i,Nstar,u_g,e_u_g,g_r,e_g_r,r_i,e_r_i,i_z,e_i_z,z_J,e_z_J,
     +  J_H,e_J_H,H_Ks,e_H_Ks
c    ..............Just test output...........
        write(6,1)
     +  g_i,Nstar,u_g,e_u_g,g_r,e_g_r,r_i,e_r_i,i_z,e_i_z,z_J,e_z_J,
     +  J_H,e_J_H,H_Ks,e_H_Ks
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table2.dat'	! The mid-IR colour locus as a function of
*                                 g-i colour

C  Format for file interpretation

    2 format(
     +  3X,F4.2,2X,I5,3X,F5.3,3X,F5.3,2X,F6.3,3X,F5.3,3X,I3,2X,F7.3,
     +  5X,F5.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,135
        read(1,'(A71)')ar__1
        read(ar__1,2)
     +  g_i_1,Nstars,Ks_W1,e_Ks_W1,W1_W2,e_W1_W2,NStarsW3,W2_W3,
     +  e_W2_W3
c    ..............Just test output...........
        write(6,2)
     +  g_i_1,Nstars,Ks_W1,e_Ks_W1,W1_W2,e_W1_W2,NStarsW3,W2_W3,
     +  e_W2_W3
c    .......End.of.Just test output...........
      end do
      close(1)

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