Conversion of standardized ReadMe file for
file /./ftp/cats/J/A_A/308/573 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-Oct-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/308/573 Ammonia on YSOs IRAS sources (Molinari+ 1996)
*================================================================================
*A search for precursors of ultracompact HII regions in a sample of luminous
*IRAS sources. I. Association with ammonia cores.
* Molinari S., Brand J., Cesaroni R., Palla F.
* <Astron. Astrophys. 308, 573 (1996)>
* =1996A&A...308..573M (SIMBAD/NED BibCode)
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table1.dat' ! General informations about observed sources.
integer*4 nr__
parameter (nr__=163) ! Number of records
character*124 ar__ ! Full-size record
C 1950 position composed of: RAh RAm RAs DE- DEd DEm DEs
real*8 RAdeg ! (deg) Right Ascension 1950
real*8 DEdeg ! (deg) Declination 1950
C ---------------------------------- ! (position vector(s) in degrees)
integer*4 Mol ! Running number
character*11 IRAS ! IRAS name
character*1 Type ! [HL] Source type (H --> HIGH; L --> LOW)
character*1 n_Type ! [^] A '^' means a 12um flux upper limit for
* that source
integer*4 RAh ! (h) 1950 hours of Right Ascension
integer*4 RAm ! (min) 1950 minutes of Right Ascension
real*4 RAs ! (s) 1950 seconds of Right Ascension
character*1 DE_ ! sign for declination
integer*4 DEd ! (deg) 1950 degrees of Declination
integer*4 DEm ! (arcmin) 1950 arcmin of Declination
real*4 DEs ! (arcsec) 1950 arcsec of Declination
real*8 GLON ! (deg) Galactic longitude
real*4 GLAT ! (deg) Galactic latitude
real*4 Dist ! (kpc) ? Distance from observer
character*1 n_Dist ! [ab] Note on distance (1)
real*4 Lum ! (solLum) ? Bolometric luminosity
character*1 NH3det ! Y/N flag indicating detection in ammonia
character*1 H2Odet ! Y/N flag indicating detection in water maser
character*36 IDent ! Other identification from the literature
*Note (1): 'a' means that the distance ambiguity has been resolved
* 'b' means the the distance of the tangent point has been assumed
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table2.dat' ! Ammonia line parameters and deduced physical
quantities
integer*4 nr__1
parameter (nr__1=102) ! Number of records
character*95 ar__1 ! Full-size record
integer*4 Mol_1 ! Running number (as in Table1.dat)
real*4 T11 ! (K) Antenna temperature for line (J,K)=(1,1)
integer*4 e_T11 ! (%) Percentage uncertainty on T11
real*4 V11 ! (km/s) (1,1) center line velocity
integer*4 e_V11 ! (%) Percentage uncertainty on V11
real*4 W11 ! (km/s) (1,1) FWHM
integer*4 e_W11 ! (%) Percentage uncertainty on W11
real*4 T22 ! (K) ? Antenna temperature for line (J,K)=(2,2)
integer*4 e_T22 ! (%) ? Percentage uncertainty on T22
real*4 V22 ! (km/s) ? (2,2) center line velocity
integer*4 e_V22 ! (%) ? Percentage uncertainty on V22
real*4 W22 ! (km/s) ? (2,2) FWHM
integer*4 e_W22 ! (%) ? Percentage uncertainty on W22
real*4 Tkin ! (K) ? Ammonia kinetic temperature
character*1 l_Tkin ! [ :] flag indicating that Tkin is a limit
integer*4 e_Tkin ! (%) ? Percentage uncertainty on Tkin
real*4 Ncol ! (cm-2) ? Ammonia column density
character*1 l_Ncol ! [ :] flag indicating that Ncol is a limit
integer*4 e_Ncol ! (%) ? Percentage uncertainty on Ncol
character*1 l_Tau ! [ <] indicates if the Tau value is upper limit
real*4 Tau ! ? Optical depth of (1,1) line
integer*4 e_Tau ! (%) ? Percentage uncertainty on Tau
C=============================================================================
C Loading file 'table1.dat' ! General informations about observed sources.
C Format for file interpretation
1 format(
+ I3,2X,A11,1X,A1,A1,2X,I2,1X,I2,1X,F4.1,2X,A1,I2,1X,I2,1X,F4.1,
+ 2X,F7.3,2X,F6.3,3X,F5.2,A1,1X,E8.2,2X,A1,2X,A1,2X,A36)
C Effective file loading
open(unit=1,status='old',file=
+'table1.dat')
write(6,*) '....Loading file: table1.dat'
do i__=1,163
read(1,'(A124)')ar__
read(ar__,1)
+ Mol,IRAS,Type,n_Type,RAh,RAm,RAs,DE_,DEd,DEm,DEs,GLON,GLAT,
+ Dist,n_Dist,Lum,NH3det,H2Odet,IDent
if(ar__(65:69) .EQ. '') Dist = rNULL__
if(ar__(72:79) .EQ. '') Lum = 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)
+ Mol,IRAS,Type,n_Type,RAh,RAm,RAs,DE_,DEd,DEm,DEs,GLON,GLAT,
+ Dist,n_Dist,Lum,NH3det,H2Odet,IDent
write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table2.dat' ! Ammonia line parameters and deduced physical
* quantities
C Format for file interpretation
2 format(
+ I3,1X,F5.2,1X,I2,1X,F6.1,1X,I2,2X,F4.2,1X,I2,2X,F5.2,1X,I2,1X,
+ F6.1,1X,I2,2X,F4.2,1X,I2,2X,F5.2,A1,I2,1X,E9.2,A1,I2,2X,A1,
+ F4.2,1X,I2)
C Effective file loading
open(unit=1,status='old',file=
+'table2.dat')
write(6,*) '....Loading file: table2.dat'
do i__=1,102
read(1,'(A95)')ar__1
read(ar__1,2)
+ Mol_1,T11,e_T11,V11,e_V11,W11,e_W11,T22,e_T22,V22,e_V22,W22,
+ e_W22,Tkin,l_Tkin,e_Tkin,Ncol,l_Ncol,e_Ncol,l_Tau,Tau,e_Tau
if(ar__1(34:38) .EQ. '') T22 = rNULL__
if(ar__1(40:41) .EQ. '') e_T22 = iNULL__
if(ar__1(43:48) .EQ. '') V22 = rNULL__
if(ar__1(50:51) .EQ. '') e_V22 = iNULL__
if(ar__1(54:57) .EQ. '') W22 = rNULL__
if(ar__1(59:60) .EQ. '') e_W22 = iNULL__
if(ar__1(63:67) .EQ. '') Tkin = rNULL__
if(ar__1(69:70) .EQ. '') e_Tkin = iNULL__
if(ar__1(72:80) .EQ. '') Ncol = rNULL__
if(ar__1(82:83) .EQ. '') e_Ncol = iNULL__
if(ar__1(87:90) .EQ. '') Tau = rNULL__
if(ar__1(92:93) .EQ. '') e_Tau = iNULL__
c ..............Just test output...........
write(6,2)
+ Mol_1,T11,e_T11,V11,e_V11,W11,e_W11,T22,e_T22,V22,e_V22,W22,
+ e_W22,Tkin,l_Tkin,e_Tkin,Ncol,l_Ncol,e_Ncol,l_Tau,Tau,e_Tau
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end