FORTRAN Generation
(/./ftp/cats/J/ApJ/939/118)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/939/118 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-Aug-15
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/939/118 Deep view into Sagittarius dSph with MUSE. III. (Kacharov+, 2022)
*================================================================================
*A deep view into the nucleus of the Sagittarius dwarf spheroidal galaxy with
*MUSE.
*III. Discrete multicomponent population-dynamical models based on the Jeans
*equations.
*    Kacharov N., Alfaro-Cuello M., Neumayer N., Lutzgendorf N., Watkins L.L.,
*    Mastrobuono-Battisti A., Kamann S., van de Ven G., Seth A.C., Voggel K.T.,
*    Georgiev I.Y., Leaman R., Bianchini P., Boker T., Mieske S.
*   <Astrophys. J., 939, 118 (2022)>
*   =2022ApJ...939..118K
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table7.dat'	! M54 complete dataset

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

C  J2000 position composed of: RAdeg DEdeg
      integer*4     Seq        (nr__) ! [6/389623] Sequential identifier for NGC 6715
*                               from Sarajedini et al. (1)
      real*8        RAdeg      (nr__) ! (deg) [283.7/283.8] Right Ascension (J2000) (1)
      real*8        DEdeg      (nr__) ! (deg) [-30.51/-30.4] Declination (J2000) (1)
      real*8        RVel       (nr__) ! (km/s) [-244.7/360.3] Radial velocity
      real*8        e_RVel     (nr__) ! (km/s) [0.19/15] Uncertainty in RVel
      real*8        FeH        (nr__) ! ([-]) [-3.93/0.95]? Metallicity
      real*8        e_FeH      (nr__) ! ([-]) [1.4e-05/1.7]? Uncertainty in FeH
      real*4        F606W      (nr__) ! (mag) [12.31/24.31] HST/ACS WFC F606W Vega magnitude (1)
      real*4        F814W      (nr__) ! (mag) [11.46/22.94] HST/ACS WFC F814W Vega magnitude (1)
      real*4        e_F606W    (nr__) ! (mag) [0/2] Uncertainty in F606W (1)
      real*4        e_F814W    (nr__) ! (mag) [0/2.4] Uncertainty in F814W (1)
      character*8   Mode       (nr__) ! MUSE Mode ("WFM-noAO", "WFM-AO" or "NFM");
*                               see the "Description" section
*Note (1): Sequential identifiers, positions, and magnitudes taken from the
*    catalog associated with Sarajedini+ 2007, J/AJ/133/1658
*    (<[SBC2007] NGC 6715 NNNNNN> in Simbad).

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

C  Loading file 'table7.dat'	! M54 complete dataset

C  Format for file interpretation

    1 format(
     +  I6,1X,F11.7,1X,F12.8,1X,F22.17,1X,F20.17,1X,F25.22,1X,F23.21,
     +  1X,F6.3,1X,F6.3,1X,F6.4,1X,F6.4,1X,A8)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table7.dat')
      write(6,*) '....Loading file: table7.dat'
      do i__=1,8927
        read(1,'(A162)')ar__
        read(ar__,1)
     +  Seq(i__),RAdeg(i__),DEdeg(i__),RVel(i__),e_RVel(i__),FeH(i__),
     +  e_FeH(i__),F606W(i__),F814W(i__),e_F606W(i__),e_F814W(i__),
     +  Mode(i__)
        if(ar__(77:101) .EQ. '') FeH(i__) = rNULL__
        if(ar__(103:125) .EQ. '') e_FeH(i__) = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  Seq(i__),RAdeg(i__),DEdeg(i__),RVel(i__),e_RVel(i__),FeH(i__),
     +  e_FeH(i__),F606W(i__),F814W(i__),e_F606W(i__),e_F814W(i__),
     +  Mode(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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