Conversion of standardized ReadMe file for
file /./ftp/cats/J/MNRAS/391/1527 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-May-17
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/391/1527 Compact HII regions IR photometry (Phillips+, 2008)
*================================================================================
*Observations of 58 compact HII regions at mid-infrared wavelengths.
* Phillips J.P., Ramos-Larios G.
* <Mon. Not. R. Astron. Soc., 391, 1527-1544 (2008)>
* =2008MNRAS.391.1527P
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table1.dat' ! Infrared characteristics of compact galactic
HII regions
integer*4 nr__
parameter (nr__=58) ! Number of records
character*235 ar__ ! Full-size record
C Position composed of: GLON GLAT
integer*4 v_PR2008_ (nr__) ! Sequential number
real*8 GLON (nr__) ! (deg) Galactic longitude
real*4 GLAT (nr__) ! (deg) Galactic latitude
real*8 S12 (nr__) ! (Jy) ?=- IRAS flux density at 12um
real*8 S25 (nr__) ! (Jy) ?=- IRAS flux density at 25um
real*8 S60 (nr__) ! (Jy) ?=- IRAS flux density at 60um
real*8 S100 (nr__) ! (Jy) ?=- IRAS flux density at 1060um
integer*4 q_S12 (nr__) ! ? Quality flag on S12um (1)
integer*4 q_S25 (nr__) ! ? Quality flag on S25um (1)
integer*4 q_S60 (nr__) ! ? Quality flag on S60um (1)
integer*4 q_S100 (nr__) ! ? Quality flag on S100um (1)
real*4 m3_6 (nr__) ! (mag) Spitzer magnitude at 3.6um
real*4 m4_5 (nr__) ! (mag) Spitzer magnitude at 4.5um
real*4 m5_8 (nr__) ! (mag) Spitzer magnitude at 5.8um
real*4 m8_0 (nr__) ! (mag) Spitzer magnitude at 8.0um
integer*4 Min (nr__) ! (arcsec) Minimum diameter
integer*4 Max (nr__) ! (arcsec) Maximum diameter
character*1 Cont (nr__) ! [HL] Low or High contamination
character*136 Id (nr__) ! Identification (2)
character*9 r_Id (nr__) ! Reference(s), in refs.dat file
*Note (1): Quality of the IRAS flux measurements:
* 3 = high quality
* 2 = moderate quality
* 1 = upper limit
*Note (2): Source types are coded as follows:
* RAD = radio source
* SUBMM = submillimetre source
* H II = H II region
* Y*O = young stellar object
* GAL = galaxy
* MAS = maser source
* X-RAY = X-ray source
* *CL = stellar cluster
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'refs.dat' ! References
integer*4 nr__1
parameter (nr__1=16) ! Number of records
character*68 ar__1 ! Full-size record
integer*4 Ref (nr__1) ! Reference number
character*19 BibCode (nr__1) ! Bibcode
character*22 Aut (nr__1) ! Author's name
character*21 Com (nr__1) ! Comments
C=============================================================================
C Loading file 'table1.dat' ! Infrared characteristics of compact galactic
* HII regions
C Format for file interpretation
1 format(
+ I2,1X,F7.3,1X,F6.3,1X,F7.4,1X,F8.4,F8.3,1X,F7.2,1X,I1,I1,I1,
+ I1,1X,F5.2,1X,F5.2,1X,F4.2,1X,F4.2,1X,I3,2X,I3,1X,A1,1X,A136,
+ 1X,A9)
C Effective file loading
open(unit=1,status='old',file=
+'table1.dat')
write(6,*) '....Loading file: table1.dat'
do i__=1,58
read(1,'(A235)')ar__
read(ar__,1)
+ v_PR2008_(i__),GLON(i__),GLAT(i__),S12(i__),S25(i__),S60(i__),
+ S100(i__),q_S12(i__),q_S25(i__),q_S60(i__),q_S100(i__),
+ m3_6(i__),m4_5(i__),m5_8(i__),m8_0(i__),Min(i__),Max(i__),
+ Cont(i__),Id(i__),r_Id(i__)
if (idig(ar__(19:25)).EQ.0) S12(i__) = rNULL__
if (idig(ar__(27:34)).EQ.0) S25(i__) = rNULL__
if (idig(ar__(35:42)).EQ.0) S60(i__) = rNULL__
if (idig(ar__(44:50)).EQ.0) S100(i__) = rNULL__
if(ar__(52:52) .EQ. '') q_S12(i__) = iNULL__
if(ar__(53:53) .EQ. '') q_S25(i__) = iNULL__
if(ar__(54:54) .EQ. '') q_S60(i__) = iNULL__
if(ar__(55:55) .EQ. '') q_S100(i__) = iNULL__
c ..............Just test output...........
write(6,1)
+ v_PR2008_(i__),GLON(i__),GLAT(i__),S12(i__),S25(i__),S60(i__),
+ S100(i__),q_S12(i__),q_S25(i__),q_S60(i__),q_S100(i__),
+ m3_6(i__),m4_5(i__),m5_8(i__),m8_0(i__),Min(i__),Max(i__),
+ Cont(i__),Id(i__),r_Id(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'refs.dat' ! References
C Format for file interpretation
2 format(I2,1X,A19,1X,A22,2X,A21)
C Effective file loading
open(unit=1,status='old',file=
+'refs.dat')
write(6,*) '....Loading file: refs.dat'
do i__=1,16
read(1,'(A68)')ar__1
read(ar__1,2)Ref(i__),BibCode(i__),Aut(i__),Com(i__)
c ..............Just test output...........
write(6,2)Ref(i__),BibCode(i__),Aut(i__),Com(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