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

Conversion of standardized ReadMe file for file /./ftp/cats/VIII/96 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-18
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/96           6-GHz methanol multibeam maser catalogue   (Caswell+, 2010-12)
*================================================================================
*The 6-GHz methanol multibeam maser catalogue.
*I. Galactic centre region, longitudes 345{deg} to 6{deg}.
*II. Galactic longitudes 6{deg} to 20{deg}.
*III. Galactic longitudes 330{deg} to 345{deg}.
*IV. Galactic longitudes 186{deg}-330{deg} including the Orion-Monoceros region.
*    Caswell J.L., Fuller G.A., Green J.A., Avison A., Breen S.L., Brooks K.J.,
*    Burton M.G., Chrysostomou A., Cox J., Diamond P.J., Ellingsen S.P.,
*    Gray M.D., Hoare M.G., Masheder M.R.W., McClure-Griffiths N.M.,
*    Pestalozzi M.R., Phillips C.J., Quinn L., Thompson M.A., Voronkov M.A.,
*    Walsh A.J., Ward-Thompson D., Wong-McSweeney D., Yates J.A., Cohen R.J.
*    <Mon. Not. R. Astron. Soc., 404, 1029-1060 (2010); 409, 913-935 (2010);
*      417, 1964-1995 (2011); 420, 3108-3125 (2012)>
*   =2010MNRAS.404.1029C
*   +2010MNRAS.409..913G
*   +2011MNRAS.417.1964C
*   +2012MNRAS.420.3108G
*   =2014yCat.8096....0C
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'catalog.dat'	! Methanol maser positions observed on Parkes

      integer*4 nr__
      parameter (nr__=707)	! Number of records
      character*114 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*14  Name       (nr__) ! Source name (LLL.lll+BB.BBB)
      character*1   f_Name     (nr__) ! [+a] Flag on Name (1)
      integer*4     RAh        (nr__) ! (h) Right ascension (J2000) (2)
      integer*4     RAm        (nr__) ! (min) Right ascension (J2000) (2)
      real*4        RAs        (nr__) ! (s) Right ascension (J2000) (2)
      character*1   DE_        (nr__) ! Declination sign (J2000) (2)
      integer*4     DEd        (nr__) ! (deg) Declination (J2000) (2)
      integer*4     DEm        (nr__) ! (arcmin) Declination (J2000) (2)
      real*4        DEs        (nr__) ! (arcsec) Declination (J2000) (2)
      real*4        VL         (nr__) ! (km/s) Lower value of velocity range
      real*4        VH         (nr__) ! (km/s) Upper value of velocity range
      real*4        VpkMX      (nr__) ! (km/s) ?=- Peak velocity at 6668MHz from MX spectrum
      character*1   l_SpkMX    (nr__) ! Limit flag on SpkMX
      real*8        SpkMX      (nr__) ! (Jy) ?=- MX peak flux density at 6668MHz
      character*1   f_SpkMX    (nr__) ! [b] Flag on SpkMK (1)
      real*4        VpkSC      (nr__) ! (km/s) ?=- Peak velocity at 6668MHz from Survey Cube
      character*1   l_SpkSC    (nr__) ! Limit flag on SpkSC
      real*8        SpkSC      (nr__) ! (Jy) ?=- Survey cube peak flux density at 6668MHz
      character*25  Ref        (nr__) ! References and/or epoch (3)
*Note (1): Flags as follows:
*   + = position from single-dish observations only
*   a = The source is possibly thermal (see main text for details)
*   b = these were specific epoch MX observation values as the sources were
*       undetected at other epochs (see individual source notes for details)
*Note (2): Position is from non-bracketed reference.
*Note (3): Reference abbreviations are as follows:
*   B02    = Beuther et al. (2002A&A...390..289B)
*   C+95   = Caswell et al. (1995MNRAS.272...96C)
*   C2009  = Caswell (2009PASA...26..454C, Cat. J/other/PASA/26.454)
*   C96    = Caswell (1996MNRAS.279...79C)
*   C97    = Caswell (1997MNRAS.289..203C)
*   CP2008 = Caswell & Phillips (2008MNRAS.386.1521C)
*   CVF95  = Caswell, Vaile & Forster (1995MNRAS.277..210C)
*   HW1995 = Houghton & Whiteoak (1995MNRAS.273.1033H)
*   M01    = Minier, Conway & Booth (2001A&A...369..278M)
*   M03    = Minier et al. (2003A&A...403.1095M, Cat. J/A+A/403/1095)
*   MERLIN = MERLIN observations
*   P98    = Phillips et al. (1998MNRAS.300.1131P)
*   V05    = Voronkov et al. (2005MNRAS.362..995V)
*   W97    = Walsh et al. (1997MNRAS.291..261W, Cat. J/MNRAS/291/261)
*   W98    = Walsh et al. (1998MNRAS.301..640W, Cat. J/MNRAS/301/640)
*   X08    = Xu et al. (2008A&A...485..729X)
*   X09    = Xu et al. (2009A&A...507.1117X)

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

C  Declarations for 'table2.dat'	! Sources associated with the 3-kpc arms as
                             identified by Green et al. (2009ApJ...696L.156G)
                             and Caswell et al. (Paper I, 2010MNRAS.404.1029C)
                             (from Paper II, 2010MNRAS.409..913G)

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

      character*13  Name_1     (nr__1) ! Source name (LLL.lll+B.BBB)
      character*1   r_Name     (nr__1) ! [ab] Reference of source (1)
      real*4        Vpk        (nr__1) ! (km/s) Peak velocity at 6668MHz
      real*4        Vmid       (nr__1) ! (km/s) Mean velocity at 6668MHz
      real*8        Spk        (nr__1) ! (Jy) Peak flux density at 6668MHz
      character*4   Arm        (nr__1) ! [Far Near] Arm location
*Note (1): For source details see:
*   a = Caswell et al. (Paper I, 2010MNRAS.404.1029C)
*   b = Green et al. (Paper II, 2010MNRAS.409..913G)

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

C  Declarations for 'notes.dat'	! Individual notes

      integer*4 nr__2
      parameter (nr__2=2408)	! Number of records
      character*80 ar__2  	! Full-size record

      character*14  Name_2     (nr__2) ! Source name (LLL.lll+BB.BBB)
      character*65  Note       (nr__2) ! Text of the note

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

C  Loading file 'catalog.dat'	! Methanol maser positions observed on Parkes

C  Format for file interpretation

    1 format(
     +  A14,A1,1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F4.1,1X,F6.1,2X,
     +  F6.1,2X,F6.1,1X,A1,F7.2,A1,1X,F6.1,1X,A1,F7.2,1X,A25)

C  Effective file loading

      open(unit=1,status='old',file=
     +'catalog.dat')
      write(6,*) '....Loading file: catalog.dat'
      do i__=1,707
        read(1,'(A114)')ar__
        read(ar__,1)
     +  Name(i__),f_Name(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),
     +  DEd(i__),DEm(i__),DEs(i__),VL(i__),VH(i__),VpkMX(i__),
     +  l_SpkMX(i__),SpkMX(i__),f_SpkMX(i__),VpkSC(i__),l_SpkSC(i__),
     +  SpkSC(i__),Ref(i__)
        if (idig(ar__(57:62)).EQ.0) VpkMX(i__) =  rNULL__
        if (idig(ar__(65:71)).EQ.0) SpkMX(i__) =  rNULL__
        if (idig(ar__(74:79)).EQ.0) VpkSC(i__) =  rNULL__
        if (idig(ar__(82:88)).EQ.0) SpkSC(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)
     +  Name(i__),f_Name(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),
     +  DEd(i__),DEm(i__),DEs(i__),VL(i__),VH(i__),VpkMX(i__),
     +  l_SpkMX(i__),SpkMX(i__),f_SpkMX(i__),VpkSC(i__),l_SpkSC(i__),
     +  SpkSC(i__),Ref(i__)
        write(6,'(6H Pos: 2F8.4)') RAdeg(i__),DEdeg(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table2.dat'	! Sources associated with the 3-kpc arms as
*                             identified by Green et al. (2009ApJ...696L.156G)
*                             and Caswell et al. (Paper I, 2010MNRAS.404.1029C)
*                             (from Paper II, 2010MNRAS.409..913G)

C  Format for file interpretation

    2 format(A13,A1,1X,F6.1,1X,F6.1,1X,F7.2,1X,A4)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,45
        read(1,'(A41)')ar__1
        read(ar__1,2)
     +  Name_1(i__),r_Name(i__),Vpk(i__),Vmid(i__),Spk(i__),Arm(i__)
c    ..............Just test output...........
        write(6,2)
     +  Name_1(i__),r_Name(i__),Vpk(i__),Vmid(i__),Spk(i__),Arm(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'notes.dat'	! Individual notes

C  Format for file interpretation

    3 format(A14,1X,A65)

C  Effective file loading

      open(unit=1,status='old',file=
     +'notes.dat')
      write(6,*) '....Loading file: notes.dat'
      do i__=1,2408
        read(1,'(A80)')ar__2
        read(ar__2,3)Name_2(i__),Note(i__)
c    ..............Just test output...........
        write(6,3)Name_2(i__),Note(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C Locate position of first digit in string; or return 0
      integer function idig(c)
      character*(*) c
      character*1 c1
      integer lc,i
      lc=len(c)
      idig=0
      do i=1,lc
         if(c(i:i).ne.' ') go to 1
      end do
    1 if(i.gt.lc) return
      c1=c(i:i)
      if(c1.eq.'.'.or.c1.eq.'-'.or.c1.eq.'+') i=i+1
      if(i.gt.lc) return
      c1=c(i:i)
      if(c1.ge.'0'.and.c1.le.'9') idig=i
      return
      end