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 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 2026-Sep-06
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      (nr__) ! (deg) Right Ascension J2000
      real*8        DEdeg      (nr__) ! (deg)     Declination J2000
C  ---------------------------------- ! (position vector(s) in degrees)

      integer*4     RAh        (nr__) ! (h) Right ascension (J2000)
      integer*4     RAm        (nr__) ! (min) Right ascension (J2000)
      real*4        RAs        (nr__) ! (s) Right ascension (J2000)
      character*1   DE_        (nr__) ! Declination sign (J2000)
      integer*4     DEd        (nr__) ! (deg) Declination (J2000)
      integer*4     DEm        (nr__) ! (arcmin) Declination (J2000)
      integer*4     DEs        (nr__) ! (arcsec) Declination (J2000)
      real*4        Bmag       (nr__) ! (mag) B magnitude (Zwicky magnitude)
      integer*4     cz         (nr__) ! (km/s) ? Heliocentric redshift
      integer*4     e_cz       (nr__) ! (km/s) ? rms uncertainty on cz
      character*1   T          (nr__) ! [ABE] Spectral characteristics (1)
      integer*4     U          (nr__) ! [0/4] UZC class 0-4 (2)
      integer*4     N          (nr__) ! Number of UZC neighboring galaxies, within 3'
      character*12  Zname      (nr__) ! Zwicky label based on 1950 positions
      character*1   f_cz       (nr__) ! [FMTXZ] Origin of the redshift measurement (3)
      integer*4     r_cz       (nr__) ! ? Reference code detailed in file refs.dat
*                                   (blank for CfA unpublished data)
      character*11  Name       (nr__) ! Other name
      character*1   UZC        (nr__) ! [*] UZC multiplicity, * if multiple
      character*1   mul        (nr__) ! [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        (nr__1) ! Reference number
      character*19  BibCode    (nr__1) ! BibCode
      character*28  Aut        (nr__1) ! Author names
      character*68  Rem        (nr__1) ! 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(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__),DEm(i__),
     +  DEs(i__),Bmag(i__),cz(i__),e_cz(i__),T(i__),U(i__),N(i__),
     +  Zname(i__),f_cz(i__),r_cz(i__),Name(i__),UZC(i__),mul(i__)
        if(ar__(22:26) .EQ. '') cz(i__) = iNULL__
        if(ar__(28:30) .EQ. '') e_cz(i__) = iNULL__
        if(ar__(53:56) .EQ. '') r_cz(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(RAs(i__) .GT. -180) RAdeg(i__)=RAdeg(i__)+RAs(i__)/240.
        if(DEd(i__) .GE. 0) DEdeg(i__)=DEd(i__)
        if(DEm(i__) .GE. 0) DEdeg(i__)=DEdeg(i__)+DEm(i__)/60.
        if(DEs(i__) .GE. 0) DEdeg(i__)=DEdeg(i__)+DEs(i__)/3600.
        if(DE_(i__).EQ.'-'.AND.DEdeg(i__).GE.0) DEdeg(i__)=-DEdeg(i__)
c    ..............Just test output...........
        write(6,1)
     +  RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__),DEm(i__),
     +  DEs(i__),Bmag(i__),cz(i__),e_cz(i__),T(i__),U(i__),N(i__),
     +  Zname(i__),f_cz(i__),r_cz(i__),Name(i__),UZC(i__),mul(i__)
        write(6,'(6H Pos: 2F8.4)') RAdeg(i__),DEdeg(i__)
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(i__),BibCode(i__),Aut(i__),Rem(i__)
c    ..............Just test output...........
        write(6,2)Ref(i__),BibCode(i__),Aut(i__),Rem(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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