FORTRAN Generation
(/./ftp/cats/J/AJ/154/72)

Conversion of standardized ReadMe file for file /./ftp/cats/J/AJ/154/72 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/154/72   Coordinates and photometry of stars in Haffner 16  (Davidge, 2017)
*================================================================================
*Haffner 16 redux: revisiting a young cluster in the outer galaxy.
*    Davidge T.J.
*   <Astron. J., 154, 72-72 (2017)>
*   =2017AJ....154...72D    (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table4.dat'	! Spectroscopic targets

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

C  J2000 position composed of: RAdeg DEdeg
      character*4   Star       (nr__) ! Star identification number (1)
      character*1   f_Star     (nr__) ! [ab*] Flag on Star (*=star that have multiple
*                                  observations; a and b=stars that are in the
*                                  same slitlet)
      character*9   OStar      (nr__) ! Star identification number in other mask(s) (1)
      real*8        RAdeg      (nr__) ! (deg) Right Ascension in decimal degrees (J2000)
      real*8        DEdeg      (nr__) ! (deg) Declination in decimal degrees (J2000)
      real*8        Xpix       (nr__) ! (pix) [938.8/2619.7] X pixel coordinate (2)
      real*8        Ypix       (nr__) ! (pix) [195.7/2211] Y pixel coordinate (2)
      real*4        i_mag      (nr__) ! (mag) [13.65/19.78]? The i' band magnitude
      real*4        g__i_      (nr__) ! (mag) [-0.26/2.61]? The (g'-i') color index
*Note (1): The identification number for each target consists of the mask number
*     (1-6), followed by the slit number, defined such that slitlet number 1 for
*     each mask is the closest to the bottom of the science field.
*Note (2): On the Gemini Multi-Object Spectrograph (GMOS) detector. Each
*     13.5{mu}m square pixel subtended 0.073 arcsec on the sky.

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

C  Loading file 'table4.dat'	! Spectroscopic targets

C  Format for file interpretation

    1 format(
     +  A4,A1,1X,A9,1X,F10.6,1X,F10.6,1X,F7.2,1X,F7.2,1X,F6.3,1X,F6.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table4.dat')
      write(6,*) '....Loading file: table4.dat'
      do i__=1,117
        read(1,'(A67)')ar__
        read(ar__,1)
     +  Star(i__),f_Star(i__),OStar(i__),RAdeg(i__),DEdeg(i__),
     +  Xpix(i__),Ypix(i__),i_mag(i__),g__i_(i__)
        if(ar__(55:60) .EQ. '') i_mag(i__) = rNULL__
        if(ar__(62:67) .EQ. '') g__i_(i__) = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  Star(i__),f_Star(i__),OStar(i__),RAdeg(i__),DEdeg(i__),
     +  Xpix(i__),Ypix(i__),i_mag(i__),g__i_(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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