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

Conversion of standardized ReadMe file for file /./ftp/cats/VIII/78/ 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 2024-Apr-16
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/78        Sydney University Molonglo Sky Survey (SUMSS)     (Mauch+ 2006)
*================================================================================
*The Sydney University Molonglo Sky Survey (SUMSS), Version 01 June 2006.
*     Mauch T., Murphy T., Buttery H.J., Curran J., Hunstead R.W.,
*     Piestrzynski B., Ropbertson J.G., Sadler E.M.
*    <Mon. Not. R. Astron. Soc. 342, 1117 (2003)>
*    =2003MNRAS.342.1117M
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'sumsscat.dat'	! The SUMSS Catalog, Version 1.7 (2006-06-01)

      integer*4 nr__
      parameter (nr__=205676)	! Number of records
      character*135 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 (hours)
      integer*4     RAm        (nr__) ! (min) Right Ascension J2000 (minutes)
      real*4        RAs        (nr__) ! (s) Right Ascension J2000 (seconds)
      character*1   DE_        (nr__) ! Declination J2000 (sign)
      integer*4     DEd        (nr__) ! (deg) Declination J2000 (degrees)
      integer*4     DEm        (nr__) ! (arcmin) Declination J2000 (minutes)
      real*4        DEs        (nr__) ! (arcsec) Declination J2000 (seconds)
      real*4        e_RAs      (nr__) ! (arcsec) The uncertainty in Right Ascension (1)
      real*4        e_DEs      (nr__) ! (arcsec) The uncertainty  Declination
      real*8        Sp         (nr__) ! (mJy) Peak brightness at 843MHz (in mJy.beam-1)
      real*4        e_Sp       (nr__) ! (mJy) Uncertainty on Sp
      real*8        St         (nr__) ! (mJy) Total flux density at 843MHz
      real*4        e_St       (nr__) ! (mJy) Uncertainty on St
      real*4        MajAxis    (nr__) ! (arcsec) Fitted major axis
      real*4        MinAxis    (nr__) ! (arcsec) Fitted minor axis
      real*4        PA         (nr__) ! (deg) Fitted major axis position angle (N to E)
      real*4        dMajAxis   (nr__) ! (arcsec) Fitted major axis after deconvolution (2)
      real*4        dMinAxis   (nr__) ! (arcsec) Fitted minor axis after deconvolution (2)
      real*4        dPA        (nr__) ! (deg) ? Fitted major axis position angle
      character*8   Mosaic     (nr__) ! Mosaic in which the source appears (3)
      integer*4     Nm         (nr__) ! Number of mosaics with the source (4)
      real*4        Xpos       (nr__) ! (pix) Position of the source on quoted mosaic (4)
      real*4        Ypos       (nr__) ! (pix) Position of the source on quoted mosaic (4)
*Note (1): positional uncertainties are calculated from the quadratic
*    sum of the MOST calibration in Right Ascension (averaged 1.5'') and
*    Declination (averaged 1.7'') using Equations (2) and (3) of the paper.
*Note (2): If the fitted major axis size exceeds the beam size by more
*    than 2.33{sigma}({theta}_M_), the major axis size after deconvolution
*    from the MOST beam is given in arcseconds.
*Note (3): The naming scheme for SUMSS mosaics is JHHMMMDD indicating the
*    J2000 RA and Dec of the mosaic centre. The original mosaics are
*    available online at http://www.astrop.physics.usyd.edu.au/mosaics.
*    In the case of duplicate matches the mosaic name quoted is that used
*    for the fit which is chosen to be included in the catalogue.
*Note (4): when the source appears in  more than one image, the source
*    parameters are those of the most reliable fit.

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

C  Loading file 'sumsscat.dat'	! The SUMSS Catalog, Version 1.7 (2006-06-01)

C  Format for file interpretation

    1 format(
     +  I2,1X,I2,1X,F5.2,2X,A1,I2,1X,I2,1X,F5.2,1X,F4.1,1X,F4.1,3X,
     +  F7.1,1X,F6.1,2X,F8.1,1X,F6.1,2X,F6.1,1X,F5.1,1X,F5.1,2X,F6.1,
     +  1X,F5.1,1X,F5.1,2X,A8,1X,I1,1X,F6.1,1X,F6.1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'sumsscat.dat')
      write(6,*) '....Loading file: sumsscat.dat'
      do i__=1,205676
        read(1,'(A135)')ar__
        read(ar__,1)
     +  RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__),DEm(i__),
     +  DEs(i__),e_RAs(i__),e_DEs(i__),Sp(i__),e_Sp(i__),St(i__),
     +  e_St(i__),MajAxis(i__),MinAxis(i__),PA(i__),dMajAxis(i__),
     +  dMinAxis(i__),dPA(i__),Mosaic(i__),Nm(i__),Xpos(i__),Ypos(i__)
        if(ar__(105:109) .EQ. '') dPA(i__) = rNULL__
        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__),e_RAs(i__),e_DEs(i__),Sp(i__),e_Sp(i__),St(i__),
     +  e_St(i__),MajAxis(i__),MinAxis(i__),PA(i__),dMajAxis(i__),
     +  dMinAxis(i__),dPA(i__),Mosaic(i__),Nm(i__),Xpos(i__),Ypos(i__)
        write(6,'(6H Pos: 2F8.4)') RAdeg(i__),DEdeg(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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