FORTRAN Generation
(/./ftp/cats/J/ApJ/588/824)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/588/824 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 2026-Jun-08
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/588/824     Velocities of blue stars near (l,b)=(198,-27)   (Yanny+, 2003)
*================================================================================
*A low-latitude halo stream around the Milky way.
*    Yanny B., Newberg H.J., Grebel E.K., Kent S., Odenkirchen M., Rockosi C.M.,
*    Schlegel D., Subbarao M., Brinkmann J., Fukugita M., Ivezic Z., Lamb D.Q.,
*    Schneider D.P., York D.G.
*   <Astrophys. J. 588, 824 (2003)>
*   =2003ApJ...588..824Y
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Blue stars near (l,b) = (198{deg}, -27{deg})

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

C  J2000 position composed of: RAdeg DEdeg
      real*8        RAdeg      (nr__) ! (deg) Right Ascension in decimal degrees (J2000)
      real*8        DEdeg      (nr__) ! (deg) Declination in decimal degrees (J2000)
      character*17  SDSS_ID    (nr__) ! Identification in SDSS (1)
      character*13  FID        (nr__) ! Fiber identification (2)
      real*4        gmag       (nr__) ! (mag) The SDSS g band magnitude (3)
      real*4        g_r        (nr__) ! (mag) ? The SDSS (g-r) color index (3)
      real*4        u_g        (nr__) ! (mag) ? The SDSS (u-g) color index (3)
      real*4        HRV        (nr__) ! (km/s) Heliocentric corrected radial velocity
      real*4        EWCaII     (nr__) ! (0.1nm) Ca II K absorption line equivalent width in
*                                   units of Angstroems
      integer*4     CCut       (nr__) ! [0,1] Color cut in F-star box (4)
      real*4        E_B_V      (nr__) ! (mag) The (B-V) excess at (RAdeg,DEdeg) (5)
*Note (1): In the format of run-rerun-camcol-field-id.
*          [YNG2003] NNNN-N-N-NNN-NNNN in Simbad
*Note (2): In the format of plate-MJD-fiber.
*Note (3): Reddening corrected
*Note (4): Colour cut is 1 when the star is in the F-star box:
*          0.158<g-r<0.3, 19.1<gmag<20.3;
*          0 = outside box.
*Note (5): From Schlegel, Finkbeiner and Davis (1998ApJ...500..525S).

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

C  Loading file 'table1.dat'	! Blue stars near (l,b) = (198{deg}, -27{deg})

C  Format for file interpretation

    1 format(
     +  F9.6,2X,F9.6,1X,A17,1X,A13,1X,F6.3,1X,F6.3,2X,F5.3,1X,F6.1,1X,
     +  F5.2,1X,I1,1X,F6.4)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,392
        read(1,'(A95)')ar__
        read(ar__,1)
     +  RAdeg(i__),DEdeg(i__),SDSS_ID(i__),FID(i__),gmag(i__),
     +  g_r(i__),u_g(i__),HRV(i__),EWCaII(i__),CCut(i__),E_B_V(i__)
        if(ar__(61:66) .EQ. '') g_r(i__) = rNULL__
        if(ar__(69:73) .EQ. '') u_g(i__) = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  RAdeg(i__),DEdeg(i__),SDSS_ID(i__),FID(i__),gmag(i__),
     +  g_r(i__),u_g(i__),HRV(i__),EWCaII(i__),CCut(i__),E_B_V(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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