Conversion of standardized ReadMe file for
file /./ftp/cats/J/ApJS/155/89 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-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/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 (nr__) ! (deg) Right Ascension J2000
real*8 DEdeg (nr__) ! (deg) Declination J2000
C ---------------------------------- ! (position vector(s) in degrees)
integer*4 GLG (nr__) ! Source name (1)
character*3 Type (nr__) ! Morphological category (2)
integer*4 RAh (nr__) ! (h) Hour of Right Ascension (J2000)
integer*4 RAm (nr__) ! (min) Minute of Right Ascension (J2000)
real*4 RAs (nr__) ! (s) Second of Right Ascension (J2000)
real*4 e_RAs (nr__) ! (arcsec) Error in RAs
character*1 DE_ (nr__) ! Sign of the Declination (J2000)
integer*4 DEd (nr__) ! (deg) Degree of Declination (J2000)
integer*4 DEm (nr__) ! (arcmin) Arcminute of Declination (J2000)
real*4 DEs (nr__) ! (arcsec) Arcsecond of Declination (J2000)
real*4 e_DEs (nr__) ! (arcsec) Error in DEs
real*4 Theta (nr__) ! (arcmin) Angular distance from the center of M31
real*4 Rad (nr__) ! (kpc) Projected radius of source in M31 (3)
real*4 MajAxis (nr__) ! (arcsec) Source major axis
real*4 e_MajAxis (nr__) ! (arcsec) Error in MajAxis
real*4 MinAxis (nr__) ! (arcsec) Source minor axis
real*4 e_MinAxis (nr__) ! (arcsec) Error in MinAxis
integer*4 PA (nr__) ! (deg) [-90,90] Position Angle (4)
integer*4 e_PA (nr__) ! (deg) Error in PA
real*8 I325MHz (nr__) ! (mJy) Peak brightness at 325MHz in units of mJy/beam
real*4 e_I325MHz (nr__) ! (mJy) Error in I325MHz
real*8 S325MHz (nr__) ! (mJy) Integrated flux density at 325MHz
real*4 e_S325MHz (nr__) ! (mJy) Error in S325MHz
real*4 RMS (nr__) ! (mJy) RMS of the flux density around the source
character*4 l_Sp_Index (nr__) ! [<=] Limit flag on Sp+Index
real*4 Sp_Index (nr__) ! ? Radio spectral index (5)
real*4 e_Sp_Index (nr__) ! ? Error in Sp+Index
real*4 phi (nr__) ! ? Spectral curvature parameter (5)
real*4 e_phi (nr__) ! ? 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(i__),Type(i__),RAh(i__),RAm(i__),RAs(i__),e_RAs(i__),
+ DE_(i__),DEd(i__),DEm(i__),DEs(i__),e_DEs(i__),Theta(i__),
+ Rad(i__),MajAxis(i__),e_MajAxis(i__),MinAxis(i__),
+ e_MinAxis(i__),PA(i__),e_PA(i__),I325MHz(i__),e_I325MHz(i__),
+ S325MHz(i__),e_S325MHz(i__),RMS(i__),l_Sp_Index(i__),
+ Sp_Index(i__),e_Sp_Index(i__),phi(i__),e_phi(i__)
if(ar__(126:130) .EQ. '') Sp_Index(i__) = rNULL__
if(ar__(132:135) .EQ. '') e_Sp_Index(i__) = rNULL__
if(ar__(137:141) .EQ. '') phi(i__) = rNULL__
if(ar__(143:146) .EQ. '') e_phi(i__) = rNULL__
RAdeg(i__) = rNULL__
DEdeg(i__) = rNULL__
c Derive coordinates RAdeg and DEdeg from input data
c (RAdeg and DEdeg are set to rNULL__ when unknown)
if(RAh(i__) .GT. -180) RAdeg(i__)=RAh(i__)*15.
if(RAm(i__) .GT. -180) RAdeg(i__)=RAdeg(i__)+RAm(i__)/4.
if(RAs(i__) .GT. -180) RAdeg(i__)=RAdeg(i__)+RAs(i__)/240.
if(DEd(i__) .GE. 0) DEdeg(i__)=DEd(i__)
if(DEm(i__) .GE. 0) DEdeg(i__)=DEdeg(i__)+DEm(i__)/60.
if(DEs(i__) .GE. 0) DEdeg(i__)=DEdeg(i__)+DEs(i__)/3600.
if(DE_(i__).EQ.'-'.AND.DEdeg(i__).GE.0) DEdeg(i__)=-DEdeg(i__)
c ..............Just test output...........
write(6,1)
+ GLG(i__),Type(i__),RAh(i__),RAm(i__),RAs(i__),e_RAs(i__),
+ DE_(i__),DEd(i__),DEm(i__),DEs(i__),e_DEs(i__),Theta(i__),
+ Rad(i__),MajAxis(i__),e_MajAxis(i__),MinAxis(i__),
+ e_MinAxis(i__),PA(i__),e_PA(i__),I325MHz(i__),e_I325MHz(i__),
+ S325MHz(i__),e_S325MHz(i__),RMS(i__),l_Sp_Index(i__),
+ Sp_Index(i__),e_Sp_Index(i__),phi(i__),e_phi(i__)
write(6,'(6H Pos: 2F8.4)') RAdeg(i__),DEdeg(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end