FORTRAN Generation

Conversion of standardized ReadMe file for file /./ftp/cats/VII/167/ 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  F77-compliant program generated by readme2f_1.81 (2015-09-23), on 2017-Sep-26
*  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
*  Please report problems or questions to   

      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

Cat. VII/167    General Catalog of Photometry of Galaxies    (Longo+ 1983)
*A general catalogue of photometric magnitudes and colors in the U,B,V
*system of 3,578 galaxies brighter than 16-th V-magnitude (1936-1982)
*        Longo G., de Vaucouleurs A.
*       <University of Texas Astronomy Monographs, No.3 (1983)>

C  Internal variables

      integer*4 i__

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

C  Declarations for 'catalog.dat'	! UBV catalogue of 3578 galaxies

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

      character*1   NIA         ! [NIA]! identification is given by:
*                                  'N'= NGC number, 'I'= IC number,
*                                  'A'= anonymous designation
      character*11  Name        ! [ 0-9A-I.+-]! identification name of galaxy (1)
      character*3   Type        ! [0-9- ] morphological type code (2)
      character*1   u_Type      ! [*$?PpR] uncertainty flag of TYPE
      real*4        logD        ! ([0.1arcmin]) []? log. of face-on isophotal diameter from RC2
      real*4        logA        ! ([0.1arcmin]) log. of photometer field aperture diameter
      character*6   source      ! sources, coded as indicated in the list of
*                                  references (3)
      real*4        Vmag        ! (mag) []? V band mag., except where suffix B is
*                                   attached if only B-band mag. is available
      character*1   u_Vmag      ! [*B$] uncertainty flag of V ('B' see above)
      real*4        B_V         ! (mag) []? B-V color index
      character*1   u_B_V       ! [*$] uncertainty flag of B-V
      real*4        U_B         ! (mag) []? U-B color index
      character*1   u_U_B       ! [*$] uncertainty flag of U-B
      character*5   Note        ! [0-9, ] refer to identifications and
*                                   observer's remarks listed on pp. 339 to
*                                   400 of the printed catalogue
*Note (1):
*    NGC and IC numbers are designated by 4 digits with suffix, if any.
*    Anonymous numbers already listed in RC2 are given with 4 digits for RA
*    and 2 digits for Dec., and additional objects are given with 4 digits
*    for RA and 4 digits for Dec., both with suffix, if any. The suffix
*    'A', 'B', etc. designates multiple or close objects. Two letters, e.g.
*    "A+B", indicate that two small objects are simultaneously present in
*    the photometer field aperture. If a fraction of an adjacent object is
*    included in the aperture, a '+' sign is added to the designation.
*Note (2):
*    Morphological type is along the Hubble sequence, coded numerically as
*    in RC2 from -6 for compact E to +11 for compact Im (see RC2 Table 2a).
*    In general the RC2 type was adopted. For many additional objects south
*    of -22 deg new types were provided by H.Corwin from "Southern Galaxy
*    Cat.".
*Note (3):
*    The list of references in pp. vii to xviii of the published catalogue
*    is not archived here. See also p.iii of it.


C  Loading file 'catalog.dat'	! UBV catalogue of 3578 galaxies

C  Format for file interpretation

    1 format(
     +  A1,A11,2X,A3,A1,1X,F5.2,2X,F5.2,1X,A6,3X,F5.2,A1,1X,F5.2,A1,
     +  1X,F5.2,A1,2X,A5)

C  Effective file loading

      write(6,*) '....Loading file: catalog.dat'
      do i__=1,16712
     +  NIA,Name,Type,u_Type,logD,logA,source,Vmag,u_Vmag,B_V,u_B_V,
     +  U_B,u_U_B,Note
        if(ar__(20:24) .EQ. '') logD = rNULL__
        if(ar__(42:46) .EQ. '') Vmag = rNULL__
        if(ar__(49:53) .EQ. '') B_V = rNULL__
        if(ar__(56:60) .EQ. '') U_B = rNULL__
c    ..............Just test output...........
     +  NIA,Name,Type,u_Type,logD,logA,source,Vmag,u_Vmag,B_V,u_B_V,
     +  U_B,u_U_B,Note
c    .......End.of.Just test output...........
      end do