FORTRAN Generation
(/./ftp/cats/J/PASP/111/438)

Conversion of standardized ReadMe file for file /./ftp/cats/J/PASP/111/438 into FORTRAN code for reading data files line by line.

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-Sep-12
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/PASP/111/438      Updated Zwicky catalog (UZC)             (Falco+, 1999)
*================================================================================
*The updated Zwicky catalog (UZC).
*    Falco E.E., Kurtz M.J., Geller M.J., Huchra J.P., Peters J., Berlind P.,
*    Mink D.J., Tokarz S.P., Elwell B.
*   <Publ. Astron. Soc. Pac. 111, 438 (1999)>
*   =1999PASP..111..438F
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'catalog.dat'	! UZC catalog (table 1)

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

C  J2000 position composed of: RAh RAm RAs DE- DEd DEm DEs
      real*8        RAdeg       ! (deg) Right Ascension J2000
      real*8        DEdeg       ! (deg)     Declination J2000
C  ---------------------------------- ! (position vector(s) in degrees)

      integer*4     RAh         ! (h) Right ascension (J2000)
      integer*4     RAm         ! (min) Right ascension (J2000)
      real*4        RAs         ! (s) Right ascension (J2000)
      character*1   DE_         ! Declination sign (J2000)
      integer*4     DEd         ! (deg) Declination (J2000)
      integer*4     DEm         ! (arcmin) Declination (J2000)
      integer*4     DEs         ! (arcsec) Declination (J2000)
      real*4        Bmag        ! (mag) B magnitude (Zwicky magnitude)
      integer*4     cz          ! (km/s) ? Heliocentric redshift
      integer*4     e_cz        ! (km/s) ? rms uncertainty on cz
      character*1   T           ! [ABE] Spectral characteristics (1)
      integer*4     U           ! [0/4] UZC class 0-4 (2)
      integer*4     N           ! Number of UZC neighboring galaxies, within 3'
      character*12  Zname       ! Zwicky label based on 1950 positions
      character*1   f_cz        ! [FMTXZ] Origin of the redshift measurement (3)
      integer*4     r_cz        ! ? Reference code detailed in file refs.dat
*                                   (blank for CfA unpublished data)
      character*11  Name        ! Other name
      character*1   UZC         ! [*] UZC multiplicity, * if multiple
      character*1   mul         ! [PTG] NED multiplicity: Pair, Triple, Group
*Note (1): the symbol means:
*    A: absorption
*    E: emission
*    B: both emission and absorption
*Note (2): the UZC class is defined as:
*
*   0: a "hit", where the GSC and Zwicky objects are separated in position
*      by less than 180", are comparable in brightness as determined
*      visually, and there is no other object within the field that could
*      be a Zwicky galaxy.
*
*   1: a "hit" with positional difference less than 180", again with a GSC
*      brightness in the vicinity of the Zwicky value. However, the field is
*      centered on a GSC "star" rather than on a "nonstar", but there is only
*      one possible Zwicky galaxy nearby, within the field. Thus, index 1
*      merely indicated that the nearest GSC object to the Zwicky coordinates
*      is a star rather than the appropriate galaxy.
*
*   2: a near "hit" with positional difference less than 180". However,
*      there is confusion because there are at least two galaxies with an
*      estimated spread in magnitudes |{Delta}m| within the expected range,
*      either of which could be a Zwicky galaxy.
*
*   3: A near "hit" with positional difference less than 180", but with
*      |{Delta}m| outside the expected range, raising suspicions about the
*      match of the GSC object to the Zwicky galaxy.
*
*   4: No "hit" at all for a positional difference less than 180", i.e.,
*      there is no match for a Zwicky galaxy.
*Note (3): Code for the origin of the redshift measurement taken at the CfA:
*   Z for Z-machine,
*   M for the MMT (4.5m Multiple Mirror Telescope)
*   F for FAST spectra taken from our own and from other projects
*   X flags a low-S/N spectrum for Z-machine (FAST) measurements and
*     indicates a low S/N match with a spectrum at cz<100km/s.

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

C  Declarations for 'refs.dat'	! Velocity sources for the UZC (table 2)

      integer*4 nr__1
      parameter (nr__1=325)	! Number of records
      character*123 ar__1  	! Full-size record

      integer*4     Ref         ! Reference number
      character*19  BibCode     ! BibCode
      character*28  Aut         ! Author names
      character*68  Rem         ! Remarks

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

C  Loading file 'catalog.dat'	! UZC catalog (table 1)

C  Format for file interpretation

    1 format(
     +  I2,I2,F4.1,A1,I2,I2,I2,1X,F4.1,1X,I5,1X,I3,1X,A1,1X,I1,1X,I1,
     +  1X,A12,1X,A1,1X,I4,1X,A11,1X,A1,1X,A1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'catalog.dat')
      write(6,*) '....Loading file: catalog.dat'
      do i__=1,19367
        read(1,'(A72)')ar__
        read(ar__,1)
     +  RAh,RAm,RAs,DE_,DEd,DEm,DEs,Bmag,cz,e_cz,T,U,N,Zname,f_cz,
     +  r_cz,Name,UZC,mul
        if(ar__(22:26) .EQ. '') cz = iNULL__
        if(ar__(28:30) .EQ. '') e_cz = iNULL__
        if(ar__(53:56) .EQ. '') r_cz = iNULL__
        RAdeg = rNULL__
        DEdeg = rNULL__
c  Derive coordinates RAdeg and DEdeg from input data
c  (RAdeg and DEdeg are set to rNULL__ when unknown)
        if(RAh .GT. -180) RAdeg=RAh*15.
        if(RAm .GT. -180) RAdeg=RAdeg+RAm/4.
        if(RAs .GT. -180) RAdeg=RAdeg+RAs/240.
        if(DEd .GE. 0) DEdeg=DEd
        if(DEm .GE. 0) DEdeg=DEdeg+DEm/60.
        if(DEs .GE. 0) DEdeg=DEdeg+DEs/3600.
        if(DE_.EQ.'-'.AND.DEdeg.GE.0) DEdeg=-DEdeg
c    ..............Just test output...........
        write(6,1)
     +  RAh,RAm,RAs,DE_,DEd,DEm,DEs,Bmag,cz,e_cz,T,U,N,Zname,f_cz,
     +  r_cz,Name,UZC,mul
        write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'refs.dat'	! Velocity sources for the UZC (table 2)

C  Format for file interpretation

    2 format(I4,1X,A19,2X,A28,1X,A68)

C  Effective file loading

      open(unit=1,status='old',file=
     +'refs.dat')
      write(6,*) '....Loading file: refs.dat'
      do i__=1,325
        read(1,'(A123)')ar__1
        read(ar__1,2)Ref,BibCode,Aut,Rem
c    ..............Just test output...........
        write(6,2)Ref,BibCode,Aut,Rem
c    .......End.of.Just test output...........
      end do
      close(1)

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