FORTRAN Generation
(/./ftp/cats/J/ApJ/384/404)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/384/404 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-28
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/384/404  Redshifts of a nearby rich clusters of galaxies   (Postman+ 1992)
*================================================================================
*The distribution of nearby rich clusters of galaxies
*     POSTMAN M., HUCHRA J. P., GELLER M. J.
*    <Astrophys. J. 384, 404 (1992)>
*    =1992ApJ...384..404P
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1'	! catalogue of redshifts of a sample
                                        of nearby rich clusters of galaxies

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

C  B1950 position composed of: RAh RAm DE-
      real*8        RAdeg      (nr__) ! (deg) Right Ascension B1950
      real*8        DEdeg      (nr__) ! (deg)     Declination B1950
C  ---------------------------------- ! (position vector(s) in degrees)

      character*1   CluID      (nr__) ! [AV] Cluster ID: A=Abell, V=Virgo cluster;
*                                      these codes added at CDS for clarity
      integer*4     Anumb      (nr__) ! [0,3744] Abell number, or 0 for Virgo
      integer*4     RAh        (nr__) ! (h) [0,24[ Right ascension (B1950) of the
*                                      cluster centre (hours)
      real*4        RAm        (nr__) ! (min) [0,60[ right ascension (minutes)
      character*1   DE_        (nr__) ! (.) declination sign (B1950)
      integer*4     DEd        (nr__) ! (deg) [0,90] declination of the cluster center
*                                      (degrees) (B1950)
      integer*4     DEm        (nr__) ! (arcmin) declination (minutes)
      integer*4     R          (nr__) ! [0,3] Abell's richness class
      integer*4     D          (nr__) ! [0,5] Abell's distance class
      real*4        m1         (nr__) ! (mag) [8.49,16.6]? brightness of 1st-ranked galaxy
*                                      from Leir & vandenBergh 1977, ApJS 34, 381
*                                      (1)
      real*4        m10        (nr__) ! (mag) [10.0,16.5] brightness of 10th-ranked galaxy
*                                      (1)
      real*4        Zest       (nr__) ! []? estimated z (1)
      real*4        Zobs       (nr__) ! observed z
      integer*4     Ngal       (nr__) ! [1,360]? number of galaxies with measured z
      character*10  r_z        (nr__) ! reference code(s), see (2)
      character*29  NOTE       (nr__) ! notes (3)

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

C  Loading file 'table1'	! catalogue of redshifts of a sample
*                                        of nearby rich clusters of galaxies

C  Format for file interpretation

    1 format(
     +  A1,I4,1X,I2,F4.1,A1,I2,I2,1X,I1,1X,I1,1X,F5.2,1X,F4.1,1X,F4.3,
     +  1X,F5.4,1X,I3,1X,A10,1X,A29)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1')
      write(6,*) '....Loading file: table1'
      do i__=1,351
        read(1,'(A88)')ar__
        read(ar__,1)
     +  CluID(i__),Anumb(i__),RAh(i__),RAm(i__),DE_(i__),DEd(i__),
     +  DEm(i__),R(i__),D(i__),m1(i__),m10(i__),Zest(i__),Zobs(i__),
     +  Ngal(i__),r_z(i__),NOTE(i__)
        if(ar__(23:27) .EQ. '') m1(i__) = rNULL__
        if(ar__(34:37) .EQ. '') Zest(i__) = rNULL__
        if(ar__(45:47) .EQ. '') Ngal(i__) = iNULL__
        RAdeg(i__) = rNULL__
        DEdeg(i__) = rNULL__
c  Derive coordinates RAdeg and DEdeg from input data
c  (RAdeg and DEdeg are set to rNULL__ when unknown)
        if(RAh(i__) .GT. -180) RAdeg(i__)=RAh(i__)*15.
        if(RAm(i__) .GT. -180) RAdeg(i__)=RAdeg(i__)+RAm(i__)/4.
        if(DE_(i__).EQ.'-'.AND.DEdeg(i__).GE.0) DEdeg(i__)=-DEdeg(i__)
c    ..............Just test output...........
        write(6,1)
     +  CluID(i__),Anumb(i__),RAh(i__),RAm(i__),DE_(i__),DEd(i__),
     +  DEm(i__),R(i__),D(i__),m1(i__),m10(i__),Zest(i__),Zobs(i__),
     +  Ngal(i__),r_z(i__),NOTE(i__)
        write(6,'(6H Pos: 2F8.4)') RAdeg(i__),DEdeg(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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