FORTRAN Generation
(/./ftp/cats/J/MNRAS/466/2006)

Conversion of standardized ReadMe file for file /./ftp/cats/J/MNRAS/466/2006 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/MNRAS/466/2006    Phoenix dwarf galaxy RV and [Fe/H] catalog (Kacharov+, 2017)
*================================================================================
*Prolate rotation and metallicity gradient in the transforming dwarf galaxy
*Phoenix.
*     Kacharov N., Battaglia G., Rejkuba M., Cole A.A., Carrera R.,
*     Fraternali F., Wilkinson M.I., Gallart C.G., Irwin M., Tolstoy E.
*    <Mon. Not. R. Astron. Soc. 466, 2006 (2017)>
*    =2017MNRAS.466.2006K        (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'phxcat.dat'	! The catalogue

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

C  J2000 position composed of: RAdeg DEdeg
      character*8   Name       (nr__) ! Photometric ID (1)
      real*8        RAdeg      (nr__) ! (deg) Right ascension (J2000) (1)
      real*8        DEdeg      (nr__) ! (deg) Declination (J2000) (1)
      real*4        Vmag       (nr__) ! (mag) V band magnitude (1)
      real*4        e_Vmag     (nr__) ! (mag) rms uncertainty on Vmag (1)
      real*4        Imag       (nr__) ! (mag) I band magnitude (1)
      real*4        e_Imag     (nr__) ! (mag) rms uncertainty on Imag (1)
      real*8        HRV        (nr__) ! (km/s) ?=999.99 Heliocentric radial velocity
      real*4        e_HRV      (nr__) ! (km/s) ?=99.99 rms uncertainty on HRV
      real*4        v_Fe_H_    (nr__) ! ?=9.99 Metallicity
      real*4        e__Fe_H_   (nr__) ! ?=9.99 rms uncertainty on [Fe/H]
      real*4        EW1        (nr__) ! (0.1nm) Equivalent width of the first CaT line
      real*4        e_EW1      (nr__) ! (0.1nm) rms uncertainty on EW1
      real*4        EW2        (nr__) ! (0.1nm) Equivalent width of the second CaT line
      real*4        e_EW2      (nr__) ! (0.1nm) rms uncertainty on EW2
      real*4        EW3        (nr__) ! (0.1nm) Equivalent width of the third CaT line
      real*4        e_EW3      (nr__) ! (0.1nm) rms uncertainty on EW3
      integer*4     SNR        (nr__) ! Signal to noise per pixel
      character*3   Memb       (nr__) ! [yes/no ] Member of Phx
*Note (1): From Battaglia et al., 2012, Cat. J/MNRAS/424/1113

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

C  Loading file 'phxcat.dat'	! The catalogue

C  Format for file interpretation

    1 format(
     +  A8,1X,F9.6,1X,F10.6,1X,F5.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,F7.2,
     +  1X,F6.2,1X,F5.2,1X,F4.2,1X,F4.2,1X,F4.2,1X,F4.2,1X,F4.2,1X,
     +  F4.2,1X,F4.2,1X,I2,1X,A3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'phxcat.dat')
      write(6,*) '....Loading file: phxcat.dat'
      do i__=1,228
        read(1,'(A114)')ar__
        read(ar__,1)
     +  Name(i__),RAdeg(i__),DEdeg(i__),Vmag(i__),e_Vmag(i__),
     +  Imag(i__),e_Imag(i__),HRV(i__),e_HRV(i__),v_Fe_H_(i__),
     +  e__Fe_H_(i__),EW1(i__),e_EW1(i__),EW2(i__),e_EW2(i__),
     +  EW3(i__),e_EW3(i__),SNR(i__),Memb(i__)
c    ..............Just test output...........
        write(6,1)
     +  Name(i__),RAdeg(i__),DEdeg(i__),Vmag(i__),e_Vmag(i__),
     +  Imag(i__),e_Imag(i__),HRV(i__),e_HRV(i__),v_Fe_H_(i__),
     +  e__Fe_H_(i__),EW1(i__),e_EW1(i__),EW2(i__),e_EW2(i__),
     +  EW3(i__),e_EW3(i__),SNR(i__),Memb(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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