FORTRAN Generation
(/./ftp/cats/VIII/65)

Conversion of standardized ReadMe file for file /./ftp/cats/VIII/65 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.



++++Column 'RAh' at line 52: Right Ascension J2000 (hours) (2)
    position has no associated Epoch (last analysed word: 'observation')
      program load_ReadMe
C=============================================================================
C  F77-compliant program generated by readme2f_1.81 (2015-09-23), on 2026-Aug-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. VIII/65             1.4GHz NRAO VLA Sky Survey (NVSS)      (Condon+ 1998)
*================================================================================
*The NRAO VLA Sky Survey
*     Condon J.J., Cotton W.D., Greisen E.W., Yin Q.F., Perley R.A.,
*     Taylor G.B., Broderick J.J.
*    <Astron. J. 115, 1693 (1998)>
*    =1998AJ....115.1693C
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'nvss.dat'	! The NVSS Catalog

      integer*4 nr__
      parameter (nr__=1773484)	! Number of records
      character*158 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)

      character*8   Field       ! Name of the original survey image field
*                                 from which the component was derived.
      real*8        Xpos        ! (pix) X position (RA direction) of the radio source
      real*8        Ypos        ! (pix) Y position (Dec direction) of the radio source
      character*14  NVSS        ! Source name (1)
      integer*4     RAh         ! (h) Right Ascension J2000 (hours) (2)
      integer*4     RAm         ! (min) Right Ascension J2000 (minutes) (2)
      real*4        RAs         ! (s) [0,60] Right Ascension J2000 (seconds) (2)
      character*1   DE_         ! Declination J2000 (sign) (2)
      integer*4     DEd         ! (deg) Declination J2000 (degrees) (2)
      integer*4     DEm         ! (arcmin) Declination J2000 (minutes) (2)
      real*4        DEs         ! (arcsec) [0,60] Declination J2000 (seconds) (2)
      real*4        e_RAs       ! (s) Mean error on RA
      real*4        e_DEs       ! (arcsec) Mean error on Dec
      real*8        S1_4        ! (mJy) Integrated 1.4GHz flux density of radio source
      real*8        e_S1_4      ! (mJy) Mean error on S1.4
      character*1   l_MajAxis   ! Limit flag on MajAxis
      real*4        MajAxis     ! (arcsec) Fitted (deconvolved) major axis of radio source
      character*1   l_MinAxis   ! Limit flag on MinAxis
      real*4        MinAxis     ! (arcsec) Fitted (deconvolved) minor axis of radio source
      real*4        PA          ! (deg) [-90, 90]? Position angle of fitted major axis
      real*4        e_MajAxis   ! (arcsec) ? Mean error on MajAxis
      real*4        e_MinAxis   ! (arcsec) ? Mean error on MinAxis
      real*4        e_PA        ! (deg) ? Mean error on PA
      character*2   f_resFlux   ! [PS* ] Residual Code (3)
      integer*4     resFlux     ! (mJy) ? Peak residual flux, in mJy/beam (3)
      real*4        polFlux     ! (mJy) ? Integrated linearly polarized flux density
      real*4        polPA       ! (deg) *[-90,90]? The position angle of polFlux (4)
      real*4        e_polFlux   ! (mJy) ? Mean error on polFlux
      real*4        e_polPA     ! (deg) ? Mean error on polPA
*Note (1):
*    The NVSS Catalog designation is of the form
*        NVSS JHHMMSS+DDMMSS
*    using the standard IAU nomenclature prescription, where NVSS is the
*    catalog acronym, J specifies the coordinate equinox (for J2000)
*    HHMMSS are the hours, minutes, and truncated (not rounded) seconds of
*    right ascension, + or - is the sign of the declination, and DDMMSS are
*    the degrees, arcminutes, and truncated (not rounded) arcseconds of
*    declination. Thus, the NVSS source at equinox J2000.0 coordinates of
*    00h00m00.24s -20d04'49.1" is called NVSS J000000-200449. This name,
*    without the leading "NVSS J" prefix, is reported in the NVSS column.
*    There are four cases where a suffix "a" or "b" have been appended to
*    the name to ensure the naming unicity.
*Note (2): Position of the centroid of the fitted radio source,
*    for the epoch of observation (1995+/-2).
*Note (3): High residual values generally indicate complex sources.
*    f_resFlux contains a flag indicating a residual of the fit to the
*    radio source, which can be:
*      P: if the peak flux density residual was high
*      S: if the integrated flux density residual was high
*Note (4):
*    polPA is the position angle (N through East) of the "E" vector of the
*    linear polarization if the source was detected (1 sigma) in linear
*    polarization.

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

C  Loading file 'nvss.dat'	! The NVSS Catalog

C  Format for file interpretation

    1 format(
     +  A8,1X,F7.2,1X,F7.2,1X,A14,1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,
     +  1X,F4.1,1X,F5.2,1X,F4.1,1X,F8.1,1X,F7.1,1X,A1,F5.1,1X,A1,F5.1,
     +  1X,F5.1,1X,F4.1,1X,F4.1,1X,F4.1,1X,A2,1X,I4,1X,F6.2,1X,F5.1,
     +  1X,F5.2,1X,F4.1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'nvss.dat')
      write(6,*) '....Loading file: nvss.dat'
      do i__=1,1773484
        read(1,'(A158)')ar__
        read(ar__,1)
     +  Field,Xpos,Ypos,NVSS,RAh,RAm,RAs,DE_,DEd,DEm,DEs,e_RAs,e_DEs,
     +  S1_4,e_S1_4,l_MajAxis,MajAxis,l_MinAxis,MinAxis,PA,e_MajAxis,
     +  e_MinAxis,e_PA,f_resFlux,resFlux,polFlux,polPA,e_polFlux,
     +  e_polPA
        if(ar__(107:111) .EQ. '') PA = rNULL__
        if(ar__(113:116) .EQ. '') e_MajAxis = rNULL__
        if(ar__(118:121) .EQ. '') e_MinAxis = rNULL__
        if(ar__(123:126) .EQ. '') e_PA = rNULL__
        if(ar__(131:134) .EQ. '') resFlux = iNULL__
        if(ar__(136:141) .EQ. '') polFlux = rNULL__
        if(ar__(143:147) .EQ. '') polPA = rNULL__
        if(ar__(149:153) .EQ. '') e_polFlux = rNULL__
        if(ar__(155:158) .EQ. '') e_polPA = rNULL__
        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)
     +  Field,Xpos,Ypos,NVSS,RAh,RAm,RAs,DE_,DEd,DEm,DEs,e_RAs,e_DEs,
     +  S1_4,e_S1_4,l_MajAxis,MajAxis,l_MinAxis,MinAxis,PA,e_MajAxis,
     +  e_MinAxis,e_PA,f_resFlux,resFlux,polFlux,polPA,e_polFlux,
     +  e_polPA
        write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
c    .......End.of.Just test output...........
      end do
      close(1)

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