Conversion of standardized ReadMe file for
file /./ftp/cats/J/ApJS/155/89 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-07
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/ApJS/155/89 325MHz radio survey in M31 (Gelfand+, 2004)
*================================================================================
*A wide-field, low-frequency radio survey of the field of M31.
*I. Construction and statistical analysis of the source catalog.
* Gelfand J.D., Lazio T.J.W., Gaensler B.M.
* <Astrophys. J. Suppl. Ser., 155, 89-100 (2004)>
* =2004ApJS..155...89G
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table3.dat' ! GLG source list
integer*4 nr__
parameter (nr__=405) ! Number of records
character*148 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)
integer*4 GLG ! Source name (1)
character*3 Type ! Morphological category (2)
integer*4 RAh ! (h) Hour of Right Ascension (J2000)
integer*4 RAm ! (min) Minute of Right Ascension (J2000)
real*4 RAs ! (s) Second of Right Ascension (J2000)
real*4 e_RAs ! (arcsec) Error in RAs
character*1 DE_ ! Sign of the Declination (J2000)
integer*4 DEd ! (deg) Degree of Declination (J2000)
integer*4 DEm ! (arcmin) Arcminute of Declination (J2000)
real*4 DEs ! (arcsec) Arcsecond of Declination (J2000)
real*4 e_DEs ! (arcsec) Error in DEs
real*4 Theta ! (arcmin) Angular distance from the center of M31
real*4 Rad ! (kpc) Projected radius of source in M31 (3)
real*4 MajAxis ! (arcsec) Source major axis
real*4 e_MajAxis ! (arcsec) Error in MajAxis
real*4 MinAxis ! (arcsec) Source minor axis
real*4 e_MinAxis ! (arcsec) Error in MinAxis
integer*4 PA ! (deg) [-90,90] Position Angle (4)
integer*4 e_PA ! (deg) Error in PA
real*8 I325MHz ! (mJy) Peak brightness at 325MHz in units of mJy/beam
real*4 e_I325MHz ! (mJy) Error in I325MHz
real*8 S325MHz ! (mJy) Integrated flux density at 325MHz
real*4 e_S325MHz ! (mJy) Error in S325MHz
real*4 RMS ! (mJy) RMS of the flux density around the source
character*4 l_Sp_Index ! [<=] Limit flag on Sp+Index
real*4 Sp_Index ! ? Radio spectral index (5)
real*4 e_Sp_Index ! ? Error in Sp+Index
real*4 phi ! ? Spectral curvature parameter (5)
real*4 e_phi ! ? Error in phi
*Note (1): In increasing distance from the center of the FOV.
*Note (2): Morphological category, defined as follows:
* U = unresolved;
* El = elongated;
* C = complex;
* Ex = extended;
* ExG = Extended source with a counterpart in one or more other radio
* surveys of M31.
*Note (3): Projected radius of source in M31 defined in Section 4.1.
*Note (4): Position angle North through East of the source.
*Note (5): As calculated in Section 4.3.
C=============================================================================
C Loading file 'table3.dat' ! GLG source list
C Format for file interpretation
1 format(
+ 3X,I3,1X,A3,1X,I2,1X,I2,1X,F5.2,1X,F4.2,1X,A1,I2,1X,I2,1X,
+ F5.2,1X,F4.2,1X,F4.1,1X,F4.1,1X,F4.1,1X,F4.1,1X,F4.1,1X,F4.1,
+ 1X,I3,1X,I4,1X,F7.2,1X,F6.2,1X,F7.2,1X,F6.2,1X,F5.2,1X,A4,
+ F5.2,1X,F4.2,1X,F5.2,1X,F4.2)
C Effective file loading
open(unit=1,status='old',file=
+'table3.dat')
write(6,*) '....Loading file: table3.dat'
do i__=1,405
read(1,'(A148)')ar__
read(ar__,1)
+ GLG,Type,RAh,RAm,RAs,e_RAs,DE_,DEd,DEm,DEs,e_DEs,Theta,Rad,
+ MajAxis,e_MajAxis,MinAxis,e_MinAxis,PA,e_PA,I325MHz,e_I325MHz,
+ S325MHz,e_S325MHz,RMS,l_Sp_Index,Sp_Index,e_Sp_Index,phi,e_phi
if(ar__(126:130) .EQ. '') Sp_Index = rNULL__
if(ar__(132:135) .EQ. '') e_Sp_Index = rNULL__
if(ar__(137:141) .EQ. '') phi = rNULL__
if(ar__(143:146) .EQ. '') e_phi = 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)
+ GLG,Type,RAh,RAm,RAs,e_RAs,DE_,DEd,DEm,DEs,e_DEs,Theta,Rad,
+ MajAxis,e_MajAxis,MinAxis,e_MinAxis,PA,e_PA,I325MHz,e_I325MHz,
+ S325MHz,e_S325MHz,RMS,l_Sp_Index,Sp_Index,e_Sp_Index,phi,e_phi
write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end