FORTRAN Generation
(/./ftp/cats/J/AJ/123/873)

Conversion of standardized ReadMe file for file /./ftp/cats/J/AJ/123/873 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-Oct-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/AJ/123/873        HIPASS high-velocity clouds              (Putman+, 2002)
*================================================================================
*HIPASS high-velocity clouds: properties of the compact and extended populations.
*    Putman M.E., de Heij V., Staveley-Smith L., Braun R., Freeman K.C.,
*    Gibson B.K., Burton W.B., Barnes D.G., Banks G.D., Bhathal R.,
*    de Blok W.J.G., Boyce P.J., Disney M.J., Drinkwater M.J., Ekers R.D.,
*    Henning P.A., Jerjen H., Kilborn V.A., Knezek P.M., Koribalski B.,
*    Malin D.F., Marquarding M., Minchin R.F., Mould J.R., Oosterloo T.,
*    Price R.M., Ryder S.D., Sadler E.M., Stewart I., Stootman F., Webster R.L.,
*    Wright A.E.
*   <Astron. J. 123, 873 (2002)>
*   =2002AJ....123..873P
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! HIPASS Catalog of Anomalous-Velocity Objects
                             (-500km/s< V_LSR_<500km/s; Decl.<+2{deg})

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

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

      integer*4     v_PDS2002_  ! HVC running number (G1)
      character*19  Name        ! Object designation (1)
      integer*4     RAh         ! (h) Hour of Right Ascension (J2000)
      real*4        RAm         ! (min) Minute of Right Ascension (J2000)
      character*1   DE_         ! Sign of the Declination (J2000)
      integer*4     DEd         ! (deg) Degree of Declination (J2000)
      integer*4     DEm         ! (arcmin) Arcminute of Declination (J2000)
      integer*4     VLSR        ! (km/s) Average Local Standard of Rest velocity
      integer*4     VGSR        ! (km/s) Average Galactic Standard of Rest
*                                    velocity (2)
      integer*4     VLGSR       ! (km/s) Average Local Group Standard of Rest
*                                    velocity (3)
      integer*4     FWHM        ! (km/s) Velocity Full-Width at Half-Maximum (4)
      real*4        MajAxis     ! (deg) Angular semi-major axis
      real*4        MinAxis     ! (deg) Angular semi-minor axis
      integer*4     PA          ! (deg) [-90/90] Position angle of the Full Width,
*                                             Half Power ellipse
      real*4        Size        ! (deg2) Angular area (5)
      real*4        TPeak       ! (K) Peak brightness temperature
      real*4        NHI         ! (10+20/cm2) Maximum column density
      real*8        Flux        ! (Jy.km/s) Total integrated 21cm flux
      character*30  GName       ! Previously cataloged LEDA or NED
*                                    galaxy name (6)
*Note (1): Consisting of a prefix followed by the Galactic longitude,
*          Galactic latitude, and Local Standard of Rest velocity.
*   HVC = filamentary features and their sub-structures which are organized
*         into large high-velocity cloud complexes;
*   CHVC = features satisfying the criteria of compact, isolated,
*          high-velocity clouds (as discussed in Section 2.4);
*   :HVC = clouds which could not be unambiguously classified as a CHVC;
*   GLXY = galaxies cataloged in either the LEDA or the NED databases or
*          visible in Digital Sky Survey (DSS) data.
*Note (2): Where VGSR = 220cos(b)sin(l) + VLSR.
*Note (3): Where VLGSR = VGSR - 62cos(l)cos(b) + 40sin(l)cos(b) - 35sin(b),
*    following Braun & Burton (1999A&A...341..437B).
*Note (4): From the spectrum which passes through the peak brightness
*    temperature pixel of the object. Those values below 26km/s (the
*    velocity resolution) should be thought of as having 26km/s as the
*    upper limit.
*Note (5): Based on the total number pixels assigned to an object
*    times the area of a 4'x4' pixel.
*Note (6): If the object has a clearly discernable optical counterpart
*    it is followed by ``(A)'', if it does not, and has a GSR velocity
*    exceeding 300km/s, it is followed with ``(B)''.

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

C  Declarations for 'table3.dat'	! Catalog of XHVCs, Objects with high-velocity
                             emission (-60km/s>V_dev_>60km/s) that merge
                             with Galactic emission below this velocity range

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

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

      integer*4     v_PDS2002__1 ! HVC running number (G1)
      character*19  Name_1      ! Object designation (1)
      integer*4     RAh_1       ! (h) Hour of Right Ascension (J2000)
      real*4        RAm_1       ! (min) Minute of Right Ascension (J2000)
      character*1   DE__1       ! Sign of the Declination (J2000)
      integer*4     DEd_1       ! (deg) Degree of Declination (J2000)
      integer*4     DEm_1       ! (arcmin) Arcminute of Declination (J2000)
      integer*4     VLSR_1      ! (km/s) Average Local Standard of Rest velocity
      integer*4     VGSR_1      ! (km/s) Average Galactic Standard of Rest
*                                    velocity (2)
      integer*4     VLGSR_1     ! (km/s) Average Local Group Standard of Rest
*                                    velocity (3)
      integer*4     FWHM_1      ! (km/s) Velocity Full-Width at Half-Maximum (4)
      real*4        MajAxis_1   ! (deg) Angular semi-major axis
      real*4        MinAxis_1   ! (deg) Angular semi-minor axis
      integer*4     PA_1        ! (deg) [-90/90] Position angle of the Full Width,
*                                             Half Power ellipse
      real*4        Size_1      ! (deg2) Angular area (5)
      real*4        TPeak_1     ! (K) Peak brightness temperature
      real*4        NHI_1       ! (10+20/cm2) Maximum column density
      real*8        Flux_1      ! (Jy.km/s) Total integrated 21cm flux
      character*30  GName_1     ! Previously cataloged LEDA or NED
*                                    galaxy name (6)
*Note (1): Consisting of a prefix followed by the Galactic longitude,
*          Galactic latitude, and Local Standard of Rest velocity.
*   HVC = filamentary features and their sub-structures which are organized
*         into large high-velocity cloud complexes;
*   CHVC = features satisfying the criteria of compact, isolated,
*          high-velocity clouds (as discussed in Section 2.4);
*   :HVC = clouds which could not be unambiguously classified as a CHVC;
*   GLXY = galaxies cataloged in either the LEDA or the NED databases or
*          visible in Digital Sky Survey (DSS) data.
*Note (2): Where VGSR = 220cos(b)sin(l) + VLSR.
*Note (3): Where VLGSR = VGSR - 62cos(l)cos(b) + 40sin(l)cos(b) - 35sin(b),
*    following Braun & Burton (1999A&A...341..437B).
*Note (4): From the spectrum which passes through the peak brightness
*    temperature pixel of the object. Those values below 26km/s (the
*    velocity resolution) should be thought of as having 26km/s as the
*    upper limit.
*Note (5): Based on the total number pixels assigned to an object
*    times the area of a 4'x4' pixel.
*Note (6): If the object has a clearly discernable optical counterpart
*    it is followed by ``(A)'', if it does not, and has a GSR velocity
*    exceeding 300km/s, it is followed with ``(B)''.

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

C  Loading file 'table1.dat'	! HIPASS Catalog of Anomalous-Velocity Objects
*                             (-500km/s< V_LSR_<500km/s; Decl.<+2{deg})

C  Format for file interpretation

    1 format(
     +  I4,1X,A19,1X,I2,1X,F4.1,2X,A1,I2,1X,I2,3X,I4,2X,I4,2X,I4,4X,
     +  I3,3X,F4.1,3X,F4.1,2X,I3,1X,F6.2,2X,F6.2,2X,F5.2,2X,F9.1,1X,
     +  A30)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,1997
        read(1,'(A149)')ar__
        read(ar__,1)
     +  v_PDS2002_,Name,RAh,RAm,DE_,DEd,DEm,VLSR,VGSR,VLGSR,FWHM,
     +  MajAxis,MinAxis,PA,Size,TPeak,NHI,Flux,GName
        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(DEd .GE. 0) DEdeg=DEd
        if(DEm .GE. 0) DEdeg=DEdeg+DEm/60.
        if(DE_.EQ.'-'.AND.DEdeg.GE.0) DEdeg=-DEdeg
c    ..............Just test output...........
        write(6,1)
     +  v_PDS2002_,Name,RAh,RAm,DE_,DEd,DEm,VLSR,VGSR,VLGSR,FWHM,
     +  MajAxis,MinAxis,PA,Size,TPeak,NHI,Flux,GName
        write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table3.dat'	! Catalog of XHVCs, Objects with high-velocity
*                             emission (-60km/s>V_dev_>60km/s) that merge
*                             with Galactic emission below this velocity range

C  Format for file interpretation

    2 format(
     +  I4,1X,A19,1X,I2,1X,F4.1,2X,A1,I2,1X,I2,3X,I4,2X,I4,2X,I4,4X,
     +  I3,3X,F4.1,3X,F4.1,2X,I3,1X,F6.2,2X,F6.2,2X,F5.2,2X,F9.1,1X,
     +  A30)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,190
        read(1,'(A149)')ar__1
        read(ar__1,2)
     +  v_PDS2002__1,Name_1,RAh_1,RAm_1,DE__1,DEd_1,DEm_1,VLSR_1,
     +  VGSR_1,VLGSR_1,FWHM_1,MajAxis_1,MinAxis_1,PA_1,Size_1,TPeak_1,
     +  NHI_1,Flux_1,GName_1
        RAdeg_1 = rNULL__
        DEdeg_1 = rNULL__
c  Derive coordinates RAdeg_1 and DEdeg_1 from input data
c  (RAdeg_1 and DEdeg_1 are set to rNULL__ when unknown)
        if(RAh_1 .GT. -180) RAdeg_1=RAh_1*15.
        if(RAm_1 .GT. -180) RAdeg_1=RAdeg_1+RAm_1/4.
        if(DEd_1 .GE. 0) DEdeg_1=DEd_1
        if(DEm_1 .GE. 0) DEdeg_1=DEdeg_1+DEm_1/60.
        if(DE__1.EQ.'-'.AND.DEdeg_1.GE.0) DEdeg_1=-DEdeg_1
c    ..............Just test output...........
        write(6,2)
     +  v_PDS2002__1,Name_1,RAh_1,RAm_1,DE__1,DEd_1,DEm_1,VLSR_1,
     +  VGSR_1,VLGSR_1,FWHM_1,MajAxis_1,MinAxis_1,PA_1,Size_1,TPeak_1,
     +  NHI_1,Flux_1,GName_1
        write(6,'(6H Pos: 2F8.4)') RAdeg_1,DEdeg_1
c    .......End.of.Just test output...........
      end do
      close(1)

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