FORTRAN Generation
(/./ftp/cats/J/MNRAS/301/640)

Conversion of standardized ReadMe file for file /./ftp/cats/J/MNRAS/301/640 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-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. J/MNRAS/301/640     Ultracompact H II regions studies. II.   (Walsh+, 1998)
*================================================================================
*Studies of ultracompact H II regions -
*II. High-resolution radio continuum and methanol maser survey.
*    Walsh A.J., Burton M.G., Hyland A.R., Robinson G.
*   <Mon. Not. R. Astron. Soc. 301, 640 (1998)>
*   =1998MNRAS.301..640W
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table2.dat'	! List of the UC HII regions detected

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

      character*11  IRAS       (nr__) ! Name of IRAS source, used for the pointing
*                                   centre
      character*6   Obs        (nr__) ! Date of Observation (either Aug/94 or Jan/95)
      integer*4     RAh        (nr__) ! (h) ? 8.64GHz radio continuum
*                                                         right ascension (J2000)
      integer*4     RAm        (nr__) ! (min) ? 8.64GHz radio continuum
*                                                         right ascension (J2000)
      real*4        RAs        (nr__) ! (s) ? 8.64GHz radio continuum
*                                                         right ascension (J2000)
      character*1   DE_        (nr__) ! 8.64GHz radio continuum
*                                                        declination sign (J2000)
      integer*4     DEd        (nr__) ! (deg) ? 8.64GHz radio continuum declination (J2000)
      integer*4     DEm        (nr__) ! (arcmin) ? 8.64GHz radio continuum declination (J2000)
      real*4        DEs        (nr__) ! (arcsec) ? 8.64GHz radio continuum declination (J2000)
      character*1   n_RAh      (nr__) ! [nc] Note (1) (2)
      character*1   l_S8_64GHz (nr__) ! [~] Limit flag on S8.64GHz
      real*8        S8_64GHz   (nr__) ! (mJy) ? 8.64GHz radio continuum integrated
*                                     flux density
      integer*4     RA1h       (nr__) ! (h) ? 6.67GHz methanol maser
*                                                         right ascension (J2000)
      integer*4     RA1m       (nr__) ! (min) ? 6.67GHz methanol maser
*                                                         right ascension (J2000)
      real*4        RA1s       (nr__) ! (s) ? 6.67GHz methanol maser
*                                                         right ascension (J2000)
      character*1   DE1_       (nr__) ! 6.67GHz methanol maser
*                                                        declination sign (J2000)
      integer*4     DE1d       (nr__) ! (deg) ? 6.67GHz methanol maser declination (J2000)
      integer*4     DE1m       (nr__) ! (arcmin) ? 6.67GHz methanol maser declination (J2000)
      real*4        DE1s       (nr__) ! (arcsec) ? 6.67GHz methanol maser declination (J2000)
      character*1   n_RA1h     (nr__) ! [nc] Note (1) (3)
      real*4        S6_67GHzm  (nr__) ! (Jy) ? 6.67GHz methanol maser peak flux density
*                                      (in Janskys per beam)
      real*4        RV         (nr__) ! (km/s) ? Radial velocity of the methanol maser
*                                     component, with respect to the local
*                                     standard of rest (LSR)
      integer*4     RA2h       (nr__) ! (h) ? 6.67GHz radio continuum
*                                                         right ascension (J2000)
      integer*4     RA2m       (nr__) ! (min) ? 6.67GHz radio continuum
*                                                         right ascension (J2000)
      real*4        RA2s       (nr__) ! (s) ? 6.67GHz radio continuum
*                                                        right ascension (J2000)
      character*1   DE2_       (nr__) ! 6.67GHz radio continuum
*                                                        declination sign (J2000)
      integer*4     DE2d       (nr__) ! (deg) ? 6.67GHz radio continuum declination (J2000)
      integer*4     DE2m       (nr__) ! (arcmin) ? 6.67GHz radio continuum declination (J2000)
      real*4        DE2s       (nr__) ! (arcsec) ? 6.67GHz radio continuum declination (J2000)
      character*1   n_RA2h     (nr__) ! [nc] Note (2) (1)
      real*4        S6_67GHzr  (nr__) ! (mJy) ? 6.67GHz radio continuum integrated flux
*                                     density
*Note (1): n: non detection
*          c: can't locate
*Note (2): A non detection implies that the flux dentity is value is one
*           {sigma} upper limit.
*Note (3): A non detection implies that the peak flux value is the three
*           {sigma} upper limit.

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

C  Loading file 'table2.dat'	! List of the UC HII regions detected

C  Format for file interpretation

    1 format(
     +  A11,1X,A6,1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F4.1,A1,A1,
     +  F7.2,1X,I2,1X,I2,1X,F6.3,1X,A1,I2,1X,I2,1X,F5.2,A1,F6.1,2X,
     +  F6.1,2X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F4.1,2X,A1,F6.1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,1003
        read(1,'(A126)')ar__
        read(ar__,1)
     +  IRAS(i__),Obs(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),
     +  DEd(i__),DEm(i__),DEs(i__),n_RAh(i__),l_S8_64GHz(i__),
     +  S8_64GHz(i__),RA1h(i__),RA1m(i__),RA1s(i__),DE1_(i__),
     +  DE1d(i__),DE1m(i__),DE1s(i__),n_RA1h(i__),S6_67GHzm(i__),
     +  RV(i__),RA2h(i__),RA2m(i__),RA2s(i__),DE2_(i__),DE2d(i__),
     +  DE2m(i__),DE2s(i__),n_RA2h(i__),S6_67GHzr(i__)
        if(ar__(20:21) .EQ. '') RAh(i__) = iNULL__
        if(ar__(23:24) .EQ. '') RAm(i__) = iNULL__
        if(ar__(26:30) .EQ. '') RAs(i__) = rNULL__
        if(ar__(33:34) .EQ. '') DEd(i__) = iNULL__
        if(ar__(36:37) .EQ. '') DEm(i__) = iNULL__
        if(ar__(39:42) .EQ. '') DEs(i__) = rNULL__
        if(ar__(45:51) .EQ. '') S8_64GHz(i__) = rNULL__
        if(ar__(53:54) .EQ. '') RA1h(i__) = iNULL__
        if(ar__(56:57) .EQ. '') RA1m(i__) = iNULL__
        if(ar__(59:64) .EQ. '') RA1s(i__) = rNULL__
        if(ar__(67:68) .EQ. '') DE1d(i__) = iNULL__
        if(ar__(70:71) .EQ. '') DE1m(i__) = iNULL__
        if(ar__(73:77) .EQ. '') DE1s(i__) = rNULL__
        if(ar__(79:84) .EQ. '') S6_67GHzm(i__) = rNULL__
        if(ar__(87:92) .EQ. '') RV(i__) = rNULL__
        if(ar__(95:96) .EQ. '') RA2h(i__) = iNULL__
        if(ar__(98:99) .EQ. '') RA2m(i__) = iNULL__
        if(ar__(101:105) .EQ. '') RA2s(i__) = rNULL__
        if(ar__(108:109) .EQ. '') DE2d(i__) = iNULL__
        if(ar__(111:112) .EQ. '') DE2m(i__) = iNULL__
        if(ar__(114:117) .EQ. '') DE2s(i__) = rNULL__
        if(ar__(121:126) .EQ. '') S6_67GHzr(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)
     +  IRAS(i__),Obs(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),
     +  DEd(i__),DEm(i__),DEs(i__),n_RAh(i__),l_S8_64GHz(i__),
     +  S8_64GHz(i__),RA1h(i__),RA1m(i__),RA1s(i__),DE1_(i__),
     +  DE1d(i__),DE1m(i__),DE1s(i__),n_RA1h(i__),S6_67GHzm(i__),
     +  RV(i__),RA2h(i__),RA2m(i__),RA2s(i__),DE2_(i__),DE2d(i__),
     +  DE2m(i__),DE2s(i__),n_RA2h(i__),S6_67GHzr(i__)
        write(6,'(6H Pos: 2F8.4)') RAdeg(i__),DEdeg(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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