FORTRAN Generation
(/./ftp/cats/J/A_A/694/A248)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/694/A248 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-May-17
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/A+A/694/A248  Metallicity spread and dispersion among P1 stars (Latour+, 2025)
*================================================================================
*A stellar census in globular clusters with MUSE.
*Metallicity spread and dispersion among first-population stars.
*    Latour M., Kamann S., Martocchia S., Husser T.-O., Saracino S., Dreizler S.
*    <Astron. Astrophys. 694, A248 (2025)>
*    =2025A&A...694A.248L        (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Properties of the RGB stars in our spectral sample

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

C  J2000 position composed of: RAdeg DEdeg
      integer*4     Source     (nr__) ! Star identification number
      real*8        RAdeg      (nr__) ! (deg) Right ascension (J2000)
      real*8        DEdeg      (nr__) ! (deg) Declination (J2000)
      character*7   Cluster    (nr__) ! Cluster name
      real*4        v_M_H_     (nr__) ! ([Sun]) Metallicity
      real*4        e__M_H_    (nr__) ! ([Sun]) Error on the metallicity
      integer*4     Teff       (nr__) ! (K) Effective temperature
      integer*4     e_Teff     (nr__) ! (K) Error on the effective temperature
      integer*4     SNR        (nr__) ! Average signal-to-noise of the Nspec spectra
      integer*4     Nspec      (nr__) ! Number of spectra used to average
*                                     Teff and [M/H]
      real*4        logg       (nr__) ! ([cm/s2]) Surface gravity
      real*4        e_logg     (nr__) ! ([cm/s2]) Error on the surface gravity (1)
      real*8        CMx        (nr__) ! Delta(F275W,F814W), X-axis position on the
*                                     Chromosome map
      real*8        CMy        (nr__) ! DeltaC(F275W,F336W,F438W), Y-axis position
*                                     on the Chromosome map
      integer*4     P1         (nr__) ! [0/1] =1 if the star belongs to P1
      integer*4     P2         (nr__) ! [0/1] =1 if the star belongs to P2
*Note (1): For three clusters there is not uncertainty (=0) on the surface
*  gravity measurements because it was obtained with only one set of photometry.

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

C  Loading file 'table1.dat'	! Properties of the RGB stars in our spectral sample

C  Format for file interpretation

    1 format(
     +  1X,I6,2X,F11.7,2X,F11.7,2X,A7,3X,F6.3,2X,F5.3,6X,I4,6X,I2,2X,
     +  I3,4X,I2,5X,F5.3,4X,F5.3,2X,F7.4,2X,F7.4,3X,I1,3X,I1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,8382
        read(1,'(A132)')ar__
        read(ar__,1)
     +  Source(i__),RAdeg(i__),DEdeg(i__),Cluster(i__),v_M_H_(i__),
     +  e__M_H_(i__),Teff(i__),e_Teff(i__),SNR(i__),Nspec(i__),
     +  logg(i__),e_logg(i__),CMx(i__),CMy(i__),P1(i__),P2(i__)
c    ..............Just test output...........
        write(6,1)
     +  Source(i__),RAdeg(i__),DEdeg(i__),Cluster(i__),v_M_H_(i__),
     +  e__M_H_(i__),Teff(i__),e_Teff(i__),SNR(i__),Nspec(i__),
     +  logg(i__),e_logg(i__),CMx(i__),CMy(i__),P1(i__),P2(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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