Conversion of standardized ReadMe file for
file /./home/cats/VIII/96 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-May-10
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 ! (deg) Right Ascension J2000
real*8 DEdeg ! (deg) Declination J2000
C ---------------------------------- ! (position vector(s) in degrees)
character*14 Name ! Source name (LLL.lll+BB.BBB)
character*1 f_Name ! [+a] Flag on Name (1)
integer*4 RAh ! (h) Right ascension (J2000) (2)
integer*4 RAm ! (min) Right ascension (J2000) (2)
real*4 RAs ! (s) Right ascension (J2000) (2)
character*1 DE_ ! Declination sign (J2000) (2)
integer*4 DEd ! (deg) Declination (J2000) (2)
integer*4 DEm ! (arcmin) Declination (J2000) (2)
real*4 DEs ! (arcsec) Declination (J2000) (2)
real*4 VL ! (km/s) Lower value of velocity range
real*4 VH ! (km/s) Upper value of velocity range
real*4 VpkMX ! (km/s) ?=- Peak velocity at 6668MHz from MX spectrum
character*1 l_SpkMX ! Limit flag on SpkMX
real*8 SpkMX ! (Jy) ?=- MX peak flux density at 6668MHz
character*1 f_SpkMX ! [b] Flag on SpkMK (1)
real*4 VpkSC ! (km/s) ?=- Peak velocity at 6668MHz from Survey Cube
character*1 l_SpkSC ! Limit flag on SpkSC
real*8 SpkSC ! (Jy) ?=- Survey cube peak flux density at 6668MHz
character*25 Ref ! 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 ! Source name (LLL.lll+B.BBB)
character*1 r_Name ! [ab] Reference of source (1)
real*4 Vpk ! (km/s) Peak velocity at 6668MHz
real*4 Vmid ! (km/s) Mean velocity at 6668MHz
real*8 Spk ! (Jy) Peak flux density at 6668MHz
character*4 Arm ! [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 ! Source name (LLL.lll+BB.BBB)
character*65 Note ! 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,f_Name,RAh,RAm,RAs,DE_,DEd,DEm,DEs,VL,VH,VpkMX,l_SpkMX,
+ SpkMX,f_SpkMX,VpkSC,l_SpkSC,SpkSC,Ref
if (idig(ar__(57:62)).EQ.0) VpkMX = rNULL__
if (idig(ar__(65:71)).EQ.0) SpkMX = rNULL__
if (idig(ar__(74:79)).EQ.0) VpkSC = rNULL__
if (idig(ar__(82:88)).EQ.0) SpkSC = 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)
+ Name,f_Name,RAh,RAm,RAs,DE_,DEd,DEm,DEs,VL,VH,VpkMX,l_SpkMX,
+ SpkMX,f_SpkMX,VpkSC,l_SpkSC,SpkSC,Ref
write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
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,r_Name,Vpk,Vmid,Spk,Arm
c ..............Just test output...........
write(6,2)Name_1,r_Name,Vpk,Vmid,Spk,Arm
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,Note
c ..............Just test output...........
write(6,3)Name_2,Note
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