Conversion of standardized ReadMe file for
file /./ftp/cats/J/AJ/135/588 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-Sep-15
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/AJ/135/588 Arecibo legacy fast ALFA survey V. (Saintonge+, 2008)
*================================================================================
*The Arecibo Legacy Fast Alfa Survey.
*V. The H I source catalog of the Anti-Virgo region at {delta} = +27{deg}.
* Saintonge A., Giovanelli R., Haynes M.P., Hoffman G.L., Kent B.R.,
* Martin A.M., Stierwalt S., Brosch N.
* <Astron. J., 135, 588-604 (2008)>
* =2008AJ....135..588S
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table1.dat' ! HI Candidate Detections
integer*4 nr__
parameter (nr__=488) ! Number of records
character*337 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 ALFALFA2 ! Catalog entry number (2-NNN)
integer*4 AGC ! Arecibo General Catalog number (1)
integer*4 RAh ! (h) HI Hour of Right Ascension (J2000) (2)
integer*4 RAm ! (min) HI Minute of Right Ascension (J2000) (2)
real*4 RAs ! (s) HI Second of Right Ascension (J2000) (2)
character*1 DE_ ! HI Declination sign (J2000) (2)
integer*4 DEd ! (deg) HI Degree of Declination (J2000) (2)
integer*4 DEm ! (arcmin) HI Arcminute of Declination (J2000) (2)
integer*4 DEs ! (arcsec) HI Arcsecond of Declination (J2000) (2)
integer*4 RAOh ! (h) ? Optical Right Ascension (J2000) (3)
integer*4 RAOm ! (min) ? Optical Right Ascension (J2000) (3)
real*4 RAOs ! (s) ? Optical Right Ascension (J2000) (3)
character*1 DEO_ ! Optical Declination sign (J2000)(3)
integer*4 DEOd ! (deg) ? Optical Declination (J2000) (3)
integer*4 DEOm ! (arcmin) ? Optical Declination (J2000) (3)
integer*4 DEOs ! (arcsec) ? Optical Declination (J2000) (3)
integer*4 cz ! (km/s) Heliocentric velocity of the HI source (4)
integer*4 W50 ! (km/s) Velocity width at 50% level (5)
integer*4 e_W50 ! (km/s) Estimated error in W50
real*4 Fc ! (Jy.km/s) Integrated flux density (6)
real*4 e_Fc ! (Jy.km/s) Estimated error in Fc
real*4 S_N ! Signal-to-noise ratio of detection (7)
real*4 rms ! (mJy) Noise figure of spatially integrated
* spectral profile (8)
real*4 Dist ! (Mpc) ? Adopted distance (9)
real*4 logM ! ([solMass]) ? Log of HI mass (10)
integer*4 Qual ! Source quality code (11)
character*231 Note ! Additional comments for source
*Note (1): The AGC entry (Cat. VIII/77) normally corresponds to an optical
* counterpart except in the cases of HI sources which cannot be
* associated with an optical object with any high degree of probability.
* Numbers lower than 1000 are UGC number (Cat. VII/26).
*Note (2): Of the HI source, after correction for systematic telescope
* pointing errors, which are on the order of 20". The accuracy of the
* HI positions depends on source strength. On average, the positional
* accuracy is about 19".
*Note (3): Optical galaxy found to provide a reasonable optical counterpart.
* Quality of centroids is estimated to be ~2" or better. The assessment
* of optical identification is based on spatial proximity, optical
* redshift (if available), morphology and color. For sources with no
* discernible optical counterpart and those for which such assignment
* is ambiguous, due to the presence of more than one equally possible
* optical counterpart, no optical position is listed.
*Note (4): Measured as the midpoint between the channels at which the flux
* density drops to 50% of each of the two peaks (or of one, if only one
* is present) at each side of the spectral feature.
*Note (5): This value is corrected for instrumental broadening. No
* corrections due to turbulent motions, disk inclination or
* cosmological effects are applied.
*Note (6): Measured on the integrated spectrum, obtained by spatially
* integrating the source image over a solid angle of at least 7'x7'
* and dividing by the sum of the survey beam values over the same
* set of image pixels.
*Note (7): Estimated as S/N=(1000Fc/W50)(w_smo_^1/2^/rms). Where w_smo_ is
* either W50/(2x10) for W50<400km/s or 400/(2x10)=20 for W50{>=}400km/s
* [w_smo_ is a smoothing width expressed as the number of spectral
* resolution bins of 10km/s bridging half of the signal width].
*Note (8): The rms as measured over the signal- and rfi-free portions of the
* spectrum, after Hanning smoothing to a spectral resolution of 10km/s.
*Note (9): For objects with cz>6000km/s, the distance is simply
* cz_cmb_/H_0_; cz_cmb_ is the recession velocity measured in the Cosmic
* Microwave Background reference frame and H_0_ is the Hubble constant,
* for which we use a value of 70km/s/Mpc. For objects of lower cz_cmb_,
* we use the peculiar velocity model for the local universe of Masters
* (Giovanelli et al., Paper II, 2005, Cat. J/AJ/130/2613), which is
* based on data from the SFI++ catalog of galaxies (Springob et al.,
* 2007, Cat. J/ApJS/172/599).
*Note (10): Obtained by using the expression M_HI_=2.356x10^5^Dist^2^Fc.
*Note (11): Quality code as 1, 2 or 9:
* 1 = refers to sources of S/N and general qualities that make it a
* reliable detection. See text for additional details.
* 2 = refers to sources of low S/N (<6.5), which would ordinarily not be
* considered reliable detections by the criteria set for code 1.
* 9 = refers to objects assumed to be HVCs; no estimate of their
* distances is made.
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table2.dat' ! Detections in the NGC672 and NGC784 Groups
integer*4 nr__1
parameter (nr__1=11) ! Number of records
character*69 ar__1 ! Full-size record
C J2000 position composed of: RAh RAm RAs DE- DEd DEm DEs
real*8 RAdeg_1 ! (deg) Right Ascension J2000
real*8 DEdeg_1 ! (deg) Declination J2000
C ---------------------------------- ! (position vector(s) in degrees)
integer*4 AGC_1 ! AGC catalog identification number
character*6 OName ! NGC, IC or [KK98a] number
integer*4 RAh_1 ! (h) HI Hour of Right Ascension (J2000)
integer*4 RAm_1 ! (min) HI Minute of Right Ascension (J2000)
real*4 RAs_1 ! (s) HI Second of Right Ascension (J2000)
character*1 DE__1 ! HI Declination sign (J2000)
integer*4 DEd_1 ! (deg) HI Degree of Declination (J2000)
integer*4 DEm_1 ! (arcmin) HI Arcminute of Declination (J2000)
integer*4 DEs_1 ! (arcsec) HI Arcsecond of Declination (J2000)
integer*4 cz_1 ! (km/s) Heliocentric recession velocity
integer*4 W50_1 ! (km/s) Velocity width at 50% level
real*4 Fc_1 ! (Jy.km/s) Integrated flux density
real*4 Dist_1 ! (Mpc) ?=- Calculated distance using the peculiar
* velocity model
real*4 Distl ! (Mpc) ? Distance from litterature (1)
character*1 n_Distl ! [a] Remark on Distance (2)
real*4 logM_1 ! ([solMass]) ? Log of HI mass estimated from Dist
real*4 logMl ! ([solMass]) Log of HI mass estimated from Distl
character*1 n_logMl ! [b] means HI mass of the object, if at the
* distance of NGC784 of 5.0Mpc
character*4 Group ! Group Membership
*Note (1): Distances found in the literature and assigned on the basis of
* primary distance indicators or group membership (Huchtmeier et al.,
* 2000, Cat J/A+AS/141/469; Karachentsev et al., 2003, Cat.
* J/A+A/398/479, Karachentsev et al., 2004, Cat. J/AJ/127/2031).
*Note (2): No association between the HI detection and an optical galaxy
* which is part of the NGC784 group has been made. This object is likely
* to be of Galactic origin, and therefore a distance from the peculiar
* velocity model is not warranted.
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table3.dat' ! Detections of High Velocity Clouds (HVCs)
Previously Reported
integer*4 nr__2
parameter (nr__2=12) ! Number of records
character*38 ar__2 ! Full-size record
C J2000 position composed of: RAh RAm DE- DEd DEm
real*8 RAdeg_2 ! (deg) Right Ascension J2000
real*8 DEdeg_2 ! (deg) Declination J2000
C ---------------------------------- ! (position vector(s) in degrees)
character*6 Name ! HVC catalogs identification
character*5 Cat ! Catalog reference (1)
integer*4 RAh_2 ! (h) HI Hour of Right ascension (J2000)
real*4 RAm_2 ! (min) HI Minute of right ascension (J2000)
character*1 DE__2 ! HI Declination sign (J2000)
integer*4 DEd_2 ! (deg) HI Degree of Declination (J2000)
integer*4 DEm_2 ! (arcmin) HI Arcminute of declination (J2000)
integer*4 v_LSR ! (km/s) Local Standard of Rest (LSR) velocity
integer*4 F ! (Jy.km/s) ?=- Integrated flux density
character*3 ALFALFA ! Yes or No for sources in ALFALFA
*Note (1): HVC catalogs as follows:
* WW91 = Wakker & van Woerden, 1991A&A...250..509W (WV NNN in Simbad)
* DBB02 = de Heij et al., 2002A&A...391..159D, Cat. J/A+A/391/159 ([DBB2002]
* NNN in Simbad)
* L02 = Lockman et al., 2002, Cat. J/ApJS/140/331, ID=119 in table 4
C=============================================================================
C Loading file 'table1.dat' ! HI Candidate Detections
C Format for file interpretation
1 format(
+ 2X,I3,1X,I6,1X,I2,1X,I2,1X,F4.1,1X,A1,I2,1X,I2,1X,I2,1X,I2,1X,
+ I2,1X,F4.1,1X,A1,I2,1X,I2,1X,I2,1X,I5,1X,I3,1X,I3,1X,F6.2,1X,
+ F4.2,1X,F5.1,1X,F4.2,1X,F5.1,1X,F5.2,1X,I1,1X,A231)
C Effective file loading
open(unit=1,status='old',file=
+'table1.dat')
write(6,*) '....Loading file: table1.dat'
do i__=1,488
read(1,'(A337)')ar__
read(ar__,1)
+ ALFALFA2,AGC,RAh,RAm,RAs,DE_,DEd,DEm,DEs,RAOh,RAOm,RAOs,DEO_,
+ DEOd,DEOm,DEOs,cz,W50,e_W50,Fc,e_Fc,S_N,rms,Dist,logM,Qual,
+ Note
if(ar__(35:36) .EQ. '') RAOh = iNULL__
if(ar__(38:39) .EQ. '') RAOm = iNULL__
if(ar__(41:44) .EQ. '') RAOs = rNULL__
if(ar__(47:48) .EQ. '') DEOd = iNULL__
if(ar__(50:51) .EQ. '') DEOm = iNULL__
if(ar__(53:54) .EQ. '') DEOs = iNULL__
if(ar__(93:97) .EQ. '') Dist = rNULL__
if(ar__(99:103) .EQ. '') logM = 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)
+ ALFALFA2,AGC,RAh,RAm,RAs,DE_,DEd,DEm,DEs,RAOh,RAOm,RAOs,DEO_,
+ DEOd,DEOm,DEOs,cz,W50,e_W50,Fc,e_Fc,S_N,rms,Dist,logM,Qual,
+ Note
write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table2.dat' ! Detections in the NGC672 and NGC784 Groups
C Format for file interpretation
2 format(
+ I6,1X,A6,1X,I2,I2,F4.1,A1,I2,I2,I2,1X,I3,1X,I3,1X,F6.2,1X,
+ F3.1,1X,F3.1,A1,1X,F4.2,1X,F4.2,A1,1X,A4)
C Effective file loading
open(unit=1,status='old',file=
+'table2.dat')
write(6,*) '....Loading file: table2.dat'
do i__=1,11
read(1,'(A69)')ar__1
read(ar__1,2)
+ AGC_1,OName,RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,DEs_1,cz_1,
+ W50_1,Fc_1,Dist_1,Distl,n_Distl,logM_1,logMl,n_logMl,Group
if (idig(ar__1(46:48)).EQ.0) Dist_1 = rNULL__
if(ar__1(50:52) .EQ. '') Distl = rNULL__
if(ar__1(55:58) .EQ. '') logM_1 = rNULL__
RAdeg_1 = rNULL__
DEdeg_1 = rNULL__
c Derive coordinates RAdeg_1 and DEdeg_1 from input data
c (RAdeg_1 and DEdeg_1 are set to rNULL__ when unknown)
if(RAh_1 .GT. -180) RAdeg_1=RAh_1*15.
if(RAm_1 .GT. -180) RAdeg_1=RAdeg_1+RAm_1/4.
if(RAs_1 .GT. -180) RAdeg_1=RAdeg_1+RAs_1/240.
if(DEd_1 .GE. 0) DEdeg_1=DEd_1
if(DEm_1 .GE. 0) DEdeg_1=DEdeg_1+DEm_1/60.
if(DEs_1 .GE. 0) DEdeg_1=DEdeg_1+DEs_1/3600.
if(DE__1.EQ.'-'.AND.DEdeg_1.GE.0) DEdeg_1=-DEdeg_1
c ..............Just test output...........
write(6,2)
+ AGC_1,OName,RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,DEs_1,cz_1,
+ W50_1,Fc_1,Dist_1,Distl,n_Distl,logM_1,logMl,n_logMl,Group
write(6,'(6H Pos: 2F8.4)') RAdeg_1,DEdeg_1
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table3.dat' ! Detections of High Velocity Clouds (HVCs)
* Previously Reported
C Format for file interpretation
3 format(A6,1X,A5,1X,I2,F4.1,A1,I2,I2,1X,I4,1X,I4,1X,A3)
C Effective file loading
open(unit=1,status='old',file=
+'table3.dat')
write(6,*) '....Loading file: table3.dat'
do i__=1,12
read(1,'(A38)')ar__2
read(ar__2,3)
+ Name,Cat,RAh_2,RAm_2,DE__2,DEd_2,DEm_2,v_LSR,F,ALFALFA
if (F .EQ. 45) F = iNULL__
RAdeg_2 = rNULL__
DEdeg_2 = rNULL__
c Derive coordinates RAdeg_2 and DEdeg_2 from input data
c (RAdeg_2 and DEdeg_2 are set to rNULL__ when unknown)
if(RAh_2 .GT. -180) RAdeg_2=RAh_2*15.
if(RAm_2 .GT. -180) RAdeg_2=RAdeg_2+RAm_2/4.
if(DEd_2 .GE. 0) DEdeg_2=DEd_2
if(DEm_2 .GE. 0) DEdeg_2=DEdeg_2+DEm_2/60.
if(DE__2.EQ.'-'.AND.DEdeg_2.GE.0) DEdeg_2=-DEdeg_2
c ..............Just test output...........
write(6,3)
+ Name,Cat,RAh_2,RAm_2,DE__2,DEd_2,DEm_2,v_LSR,F,ALFALFA
write(6,'(6H Pos: 2F8.4)') RAdeg_2,DEdeg_2
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