FORTRAN Generation
(/./ftp/cats/J/A_A/599/A81)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/599/A81 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-Mar-29
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/599/A81   OmegaWINGS local clusters of galaxies redshifts (Moretti+, 2017)
*================================================================================
*OmegaWINGS: spectroscopy in the outskirts of local clusters of galaxies.
*    Moretti A., Gullieuszik M., Poggianti B., Paccagnella A., Couch W.J.,
*    Vulcani B., Bettoni D., Fritz J., Cava A., Fasaano G., D'Onofrio M.,
*    Omizzolo A.
*    <Astron. Astrophys. 599, A81 (2017)>
*    =2017A&A...599A..81M        (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table4.dat'	! Redshifts for 17985 galaxies

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

C  J2000.0 position composed of: RAdeg DEdeg
      character*7   Cluster    (nr__) ! Cluster name
      character*19  WINGS      (nr__) ! WINGS designation (JHHMMSS.ss+DDMMSS.s)
      real*8        RAdeg      (nr__) ! (deg) Right ascension (J2000.0)
      real*8        DEdeg      (nr__) ! (deg) Declination (J2000.0)
      real*8        z          (nr__) ! Redshift
      real*8        e_z        (nr__) ! ?=- Error on redshift
      real*4        Cm         (nr__) ! ?=- Magnitude completeness
      real*4        Cr         (nr__) ! ?=- Radial completeness
      integer*4     Memb       (nr__) ! [0/2] Membership (1)
*Note (1): Membership flag as follows:
*           1 = cluster member (depending on the cluster structure)
*           2 = cluster member (depending on the secondary structure)
*           0 = not cluster member

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

C  Loading file 'table4.dat'	! Redshifts for 17985 galaxies

C  Format for file interpretation

    1 format(
     +  A7,6X,A19,1X,F11.7,1X,F11.7,1X,F7.5,1X,F7.5,1X,F5.3,1X,F5.3,
     +  1X,I1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table4.dat')
      write(6,*) '....Loading file: table4.dat'
      do i__=1,17985
        read(1,'(A86)')ar__
        read(ar__,1)
     +  Cluster(i__),WINGS(i__),RAdeg(i__),DEdeg(i__),z(i__),e_z(i__),
     +  Cm(i__),Cr(i__),Memb(i__)
        if (idig(ar__(66:72)).EQ.0) e_z(i__) =  rNULL__
        if (idig(ar__(74:78)).EQ.0) Cm(i__) =  rNULL__
        if (idig(ar__(80:84)).EQ.0) Cr(i__) =  rNULL__
c    ..............Just test output...........
        write(6,1)
     +  Cluster(i__),WINGS(i__),RAdeg(i__),DEdeg(i__),z(i__),e_z(i__),
     +  Cm(i__),Cr(i__),Memb(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C Locate position of first digit in string; or return 0
      integer function idig(c)
      character*(*) c
      character*1 c1
      integer lc,i
      lc=len(c)
      idig=0
      do i=1,lc
         if(c(i:i).ne.' ') go to 1
      end do
    1 if(i.gt.lc) return
      c1=c(i:i)
      if(c1.eq.'.'.or.c1.eq.'-'.or.c1.eq.'+') i=i+1
      if(i.gt.lc) return
      c1=c(i:i)
      if(c1.ge.'0'.and.c1.le.'9') idig=i
      return
      end