Conversion of standardized ReadMe file for
file /./ftp/cats/J/A_A/474/891 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-Jun-08
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/A+A/474/891 13CO observations of YSOs in South Gal. plane (Urquhart+, 2007)
*================================================================================
*The RMS survey. ^13^CO observations of candidate massive YSOs in the southern
*Galactic plane.
* Urquhart J.S., Busfield A.L., Hoare M.G., Lumsden S.L., Oudmaijer R.D.,
* Moore T.J.T., Gibb A.G., Purcell C.R., Burton M.G., Marechal L.J.L.
* <Astron. Astrophys., 474, 891-901 (2007)>
* =2007A&A...474..891U
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table3.dat' ! *Summary of the RMS sources observed, observed
positions, the rms noise levels of the reduced
spectra, line component parameters and Galactic
kinematic distances.
integer*4 nr__
parameter (nr__=2132) ! Number of records
character*156 ar__ ! Full-size record
C J2000 position composed of: RAdeg DEdeg
character*17 MSX (nr__) ! Field name (GLLL.llll+DD.dddd)
real*8 RAdeg (nr__) ! (deg) Right ascension (J2000)
real*8 DEdeg (nr__) ! (deg) Declination (J2000)
character*1 Tel (nr__) ! [JOM] Telescope symbol
* (J)CMT, (O)nsala and (M)opra
real*4 rms (nr__) ! (K) Spectra rms in units of T_A_^*^
integer*4 Comp (nr__) ! ?=- Component number
integer*4 Match (nr__) ! [1]? Flag to identify line component associated
* with RMS source
* 1=association, blank=unassociated
real*4 VLSR (nr__) ! (km/s) ?=- Kinematic velocity
real*4 TR (nr__) ! (K) ?=- Receiver temperature
real*4 FWHM (nr__) ! (km/s) ?=- Line full width at half maximum
real*4 TRdV (nr__) ! (km/s.K) ?=- Integrated emission
character*26 Profile (nr__) ! ?=- Note on component profile
real*4 RGC (nr__) ! (kpc) ?=- Galactocentric distance of component
real*4 Near (nr__) ! (kpc) ?=- Near distance
real*4 e_Near (nr__) ! (kpc) ?=- Error in the near distance
real*4 Far (nr__) ! (kpc) ?=- Far distance
real*4 e_Far (nr__) ! (kpc) ?=- Error in the far distance
character*5 Notes (nr__) ! Notes on the method used to identify the
* component associated with an RMS source (1)
character*26 Radix (nr__) ! Filename radix with the spectrum (2)
*Note (1): Methods as follows:
* 1 = strongest component
* 2 = methanol maser
* 3 = water maser
* 4 = CS detection by Bronfman et al., 1996, Cat. <J/A+AS/115/81>
* 5 = Fontani et al., 2005, Cat. <J/A+A/432/921>
*Note (2): only the file radix is given in this column; the extension
* ".fits" should be added for the FITS version, or ".png" for the
* image. The files are in the "sp" subdirectory.
C=============================================================================
C Loading file 'table3.dat' ! *Summary of the RMS sources observed, observed
* positions, the rms noise levels of the reduced
* spectra, line component parameters and Galactic
* kinematic distances.
C Format for file interpretation
1 format(
+ A17,1X,F8.4,1X,F8.4,1X,A1,1X,F5.3,1X,I2,1X,I1,1X,F6.1,1X,F4.1,
+ 1X,F4.1,1X,F5.1,1X,A26,1X,F4.1,1X,F4.1,1X,F4.2,1X,F4.1,1X,
+ F4.2,1X,A5,1X,A26)
C Effective file loading
open(unit=1,status='old',file=
+'table3.dat')
write(6,*) '....Loading file: table3.dat'
do i__=1,2132
read(1,'(A156)')ar__
read(ar__,1)
+ MSX(i__),RAdeg(i__),DEdeg(i__),Tel(i__),rms(i__),Comp(i__),
+ Match(i__),VLSR(i__),TR(i__),FWHM(i__),TRdV(i__),Profile(i__),
+ RGC(i__),Near(i__),e_Near(i__),Far(i__),e_Far(i__),Notes(i__),
+ Radix(i__)
if (Comp(i__) .EQ. 45) Comp(i__) = iNULL__
if(ar__(48:48) .EQ. '') Match(i__) = iNULL__
if (idig(ar__(50:55)).EQ.0) VLSR(i__) = rNULL__
if (idig(ar__(57:60)).EQ.0) TR(i__) = rNULL__
if (idig(ar__(62:65)).EQ.0) FWHM(i__) = rNULL__
if (idig(ar__(67:71)).EQ.0) TRdV(i__) = rNULL__
if (idig(ar__(100:103)).EQ.0) RGC(i__) = rNULL__
if (idig(ar__(105:108)).EQ.0) Near(i__) = rNULL__
if (idig(ar__(110:113)).EQ.0) e_Near(i__) = rNULL__
if (idig(ar__(115:118)).EQ.0) Far(i__) = rNULL__
if (idig(ar__(120:123)).EQ.0) e_Far(i__) = rNULL__
c ..............Just test output...........
write(6,1)
+ MSX(i__),RAdeg(i__),DEdeg(i__),Tel(i__),rms(i__),Comp(i__),
+ Match(i__),VLSR(i__),TR(i__),FWHM(i__),TRdV(i__),Profile(i__),
+ RGC(i__),Near(i__),e_Near(i__),Far(i__),e_Far(i__),Notes(i__),
+ Radix(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