FORTRAN Generation
(/./ftp/cats/J/AJ/128/245)

Conversion of standardized ReadMe file for file /./ftp/cats/J/AJ/128/245 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-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/AJ/128/245    M giant stars in the Sagittarius dwarf galaxy  (Majewski+, 2004)
*================================================================================
*A Two Micron All Sky Survey view of the Sagittarius dwarf galaxy.
*II. Swope telescope spectroscopy of M giant stars in the dynamically cold
*Sagittarius tidal stream.
*    Majewski S.R., Kunkel W.E., Law D.R., Patterson R.J., Polak A.A.,
*    Rocha-Pinto H.J., Crane J.D., Frinchaboy P.M., Hummels C.B., Johnston K.V.,
*    Rhee J., Skrutskie M.F., Weinberg M.
*   <Astron. J., 128, 245-259 (2004)>
*   =2004AJ....128..245M
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table3.dat'	! M Giants with radial velocity data

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

C  Position composed of: GLON GLAT
      character*14  Name       (nr__) ! Object name, based on J2000 position (1)
      real*4        Ksmag      (nr__) ! (mag) Dereddened K_s_ magnitude
      real*4        J_Ks       (nr__) ! (mag) Dereddened (J-K_s_) color (2)
      real*4        E_B_V      (nr__) ! (mag) Adopted (B-V) color excess
      real*4        GLON       (nr__) ! (deg) Paper I (2003ApJ...599.1082M) galactic longitude
      real*4        GLAT       (nr__) ! (deg) Paper I (2003ApJ...599.1082M) galactic latitude
      real*4        Dist       (nr__) ! (kpc) Photometric parallax distance
      real*4        Lambda     (nr__) ! (deg) The Sgr longitude as viewed from the Sun
      real*4        ZSgr       (nr__) ! (kpc) Distance from best fit Sgr plane
      real*4        HRV        (nr__) ! (km/s) Measured heliocentric radial velocity (3)
      real*4        VGSR       (nr__) ! (km/s) Measured Galactic Standard of Rest radial
*                               velocity (3)
      real*4        CCP        (nr__) ! Peak of the cross-correlation curve
      integer*4     Qual       (nr__) ! Cross-correlation quality index
      character*13  RVDate     (nr__) ! Date of radial velocity observation(s)
*Note (1): Derived from the Equinox 2000.0 coordinates. These star names have
*          been generated with our own software and may differ slightly from
*          the official names for the stars in the 2MASS database due to
*          differences in rounding the coordinates.
*Note (2): The dereddening procedure is described in Paper I
*          (2003ApJ...599.1082M).
*Note (3): A Local Standard of Rest rotation velocity of 220km/s and a solar
*          peculiar velocity of (u, v, w)=(-9, 12, 7)km/s are adopted.

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

C  Loading file 'table3.dat'	! M Giants with radial velocity data

C  Format for file interpretation

    1 format(
     +  A14,1X,F5.2,1X,F4.2,1X,F4.2,1X,F5.1,1X,F5.1,1X,F4.1,1X,F5.1,
     +  1X,F4.1,1X,F6.1,1X,F6.1,1X,F4.2,1X,I1,1X,A13)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,284
        read(1,'(A94)')ar__
        read(ar__,1)
     +  Name(i__),Ksmag(i__),J_Ks(i__),E_B_V(i__),GLON(i__),GLAT(i__),
     +  Dist(i__),Lambda(i__),ZSgr(i__),HRV(i__),VGSR(i__),CCP(i__),
     +  Qual(i__),RVDate(i__)
c    ..............Just test output...........
        write(6,1)
     +  Name(i__),Ksmag(i__),J_Ks(i__),E_B_V(i__),GLON(i__),GLAT(i__),
     +  Dist(i__),Lambda(i__),ZSgr(i__),HRV(i__),VGSR(i__),CCP(i__),
     +  Qual(i__),RVDate(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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