Conversion of standardized ReadMe file for
file /./ftp/cats/J/AJ/135/588 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-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 (nr__) ! (deg) Right Ascension J2000
real*8 DEdeg (nr__) ! (deg) Declination J2000
C ---------------------------------- ! (position vector(s) in degrees)
integer*4 ALFALFA2 (nr__) ! Catalog entry number (2-NNN)
integer*4 AGC (nr__) ! Arecibo General Catalog number (1)
integer*4 RAh (nr__) ! (h) HI Hour of Right Ascension (J2000) (2)
integer*4 RAm (nr__) ! (min) HI Minute of Right Ascension (J2000) (2)
real*4 RAs (nr__) ! (s) HI Second of Right Ascension (J2000) (2)
character*1 DE_ (nr__) ! HI Declination sign (J2000) (2)
integer*4 DEd (nr__) ! (deg) HI Degree of Declination (J2000) (2)
integer*4 DEm (nr__) ! (arcmin) HI Arcminute of Declination (J2000) (2)
integer*4 DEs (nr__) ! (arcsec) HI Arcsecond of Declination (J2000) (2)
integer*4 RAOh (nr__) ! (h) ? Optical Right Ascension (J2000) (3)
integer*4 RAOm (nr__) ! (min) ? Optical Right Ascension (J2000) (3)
real*4 RAOs (nr__) ! (s) ? Optical Right Ascension (J2000) (3)
character*1 DEO_ (nr__) ! Optical Declination sign (J2000)(3)
integer*4 DEOd (nr__) ! (deg) ? Optical Declination (J2000) (3)
integer*4 DEOm (nr__) ! (arcmin) ? Optical Declination (J2000) (3)
integer*4 DEOs (nr__) ! (arcsec) ? Optical Declination (J2000) (3)
integer*4 cz (nr__) ! (km/s) Heliocentric velocity of the HI source (4)
integer*4 W50 (nr__) ! (km/s) Velocity width at 50% level (5)
integer*4 e_W50 (nr__) ! (km/s) Estimated error in W50
real*4 Fc (nr__) ! (Jy.km/s) Integrated flux density (6)
real*4 e_Fc (nr__) ! (Jy.km/s) Estimated error in Fc
real*4 S_N (nr__) ! Signal-to-noise ratio of detection (7)
real*4 rms (nr__) ! (mJy) Noise figure of spatially integrated
* spectral profile (8)
real*4 Dist (nr__) ! (Mpc) ? Adopted distance (9)
real*4 logM (nr__) ! ([solMass]) ? Log of HI mass (10)
integer*4 Qual (nr__) ! Source quality code (11)
character*231 Note (nr__) ! 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 (nr__1) ! (deg) Right Ascension J2000
real*8 DEdeg_1 (nr__1) ! (deg) Declination J2000
C ---------------------------------- ! (position vector(s) in degrees)
integer*4 AGC_1 (nr__1) ! AGC catalog identification number
character*6 OName (nr__1) ! NGC, IC or [KK98a] number
integer*4 RAh_1 (nr__1) ! (h) HI Hour of Right Ascension (J2000)
integer*4 RAm_1 (nr__1) ! (min) HI Minute of Right Ascension (J2000)
real*4 RAs_1 (nr__1) ! (s) HI Second of Right Ascension (J2000)
character*1 DE__1 (nr__1) ! HI Declination sign (J2000)
integer*4 DEd_1 (nr__1) ! (deg) HI Degree of Declination (J2000)
integer*4 DEm_1 (nr__1) ! (arcmin) HI Arcminute of Declination (J2000)
integer*4 DEs_1 (nr__1) ! (arcsec) HI Arcsecond of Declination (J2000)
integer*4 cz_1 (nr__1) ! (km/s) Heliocentric recession velocity
integer*4 W50_1 (nr__1) ! (km/s) Velocity width at 50% level
real*4 Fc_1 (nr__1) ! (Jy.km/s) Integrated flux density
real*4 Dist_1 (nr__1) ! (Mpc) ?=- Calculated distance using the peculiar
* velocity model
real*4 Distl (nr__1) ! (Mpc) ? Distance from litterature (1)
character*1 n_Distl (nr__1) ! [a] Remark on Distance (2)
real*4 logM_1 (nr__1) ! ([solMass]) ? Log of HI mass estimated from Dist
real*4 logMl (nr__1) ! ([solMass]) Log of HI mass estimated from Distl
character*1 n_logMl (nr__1) ! [b] means HI mass of the object, if at the
* distance of NGC784 of 5.0Mpc
character*4 Group (nr__1) ! 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 (nr__2) ! (deg) Right Ascension J2000
real*8 DEdeg_2 (nr__2) ! (deg) Declination J2000
C ---------------------------------- ! (position vector(s) in degrees)
character*6 Name (nr__2) ! HVC catalogs identification
character*5 Cat (nr__2) ! Catalog reference (1)
integer*4 RAh_2 (nr__2) ! (h) HI Hour of Right ascension (J2000)
real*4 RAm_2 (nr__2) ! (min) HI Minute of right ascension (J2000)
character*1 DE__2 (nr__2) ! HI Declination sign (J2000)
integer*4 DEd_2 (nr__2) ! (deg) HI Degree of Declination (J2000)
integer*4 DEm_2 (nr__2) ! (arcmin) HI Arcminute of declination (J2000)
integer*4 v_LSR (nr__2) ! (km/s) Local Standard of Rest (LSR) velocity
integer*4 F (nr__2) ! (Jy.km/s) ?=- Integrated flux density
character*3 ALFALFA (nr__2) ! 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(i__),AGC(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),
+ DEd(i__),DEm(i__),DEs(i__),RAOh(i__),RAOm(i__),RAOs(i__),
+ DEO_(i__),DEOd(i__),DEOm(i__),DEOs(i__),cz(i__),W50(i__),
+ e_W50(i__),Fc(i__),e_Fc(i__),S_N(i__),rms(i__),Dist(i__),
+ logM(i__),Qual(i__),Note(i__)
if(ar__(35:36) .EQ. '') RAOh(i__) = iNULL__
if(ar__(38:39) .EQ. '') RAOm(i__) = iNULL__
if(ar__(41:44) .EQ. '') RAOs(i__) = rNULL__
if(ar__(47:48) .EQ. '') DEOd(i__) = iNULL__
if(ar__(50:51) .EQ. '') DEOm(i__) = iNULL__
if(ar__(53:54) .EQ. '') DEOs(i__) = iNULL__
if(ar__(93:97) .EQ. '') Dist(i__) = rNULL__
if(ar__(99:103) .EQ. '') logM(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)
+ ALFALFA2(i__),AGC(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),
+ DEd(i__),DEm(i__),DEs(i__),RAOh(i__),RAOm(i__),RAOs(i__),
+ DEO_(i__),DEOd(i__),DEOm(i__),DEOs(i__),cz(i__),W50(i__),
+ e_W50(i__),Fc(i__),e_Fc(i__),S_N(i__),rms(i__),Dist(i__),
+ logM(i__),Qual(i__),Note(i__)
write(6,'(6H Pos: 2F8.4)') RAdeg(i__),DEdeg(i__)
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(i__),OName(i__),RAh_1(i__),RAm_1(i__),RAs_1(i__),
+ DE__1(i__),DEd_1(i__),DEm_1(i__),DEs_1(i__),cz_1(i__),
+ W50_1(i__),Fc_1(i__),Dist_1(i__),Distl(i__),n_Distl(i__),
+ logM_1(i__),logMl(i__),n_logMl(i__),Group(i__)
if (idig(ar__1(46:48)).EQ.0) Dist_1(i__) = rNULL__
if(ar__1(50:52) .EQ. '') Distl(i__) = rNULL__
if(ar__1(55:58) .EQ. '') logM_1(i__) = rNULL__
RAdeg_1(i__) = rNULL__
DEdeg_1(i__) = 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(i__) .GT. -180) RAdeg_1(i__)=RAh_1(i__)*15.
if(RAm_1(i__) .GT. -180) RAdeg_1(i__)=RAdeg_1(i__)+RAm_1(i__)/4.
if(RAs_1(i__) .GT. -180) RAdeg_1(i__)=RAdeg_1(i__)+RAs_1(i__)/240.
if(DEd_1(i__) .GE. 0) DEdeg_1(i__)=DEd_1(i__)
if(DEm_1(i__) .GE. 0) DEdeg_1(i__)=DEdeg_1(i__)+DEm_1(i__)/60.
if(DEs_1(i__) .GE. 0) DEdeg_1(i__)=DEdeg_1(i__)+DEs_1(i__)/3600.
if(DE__1(i__).EQ.'-'.AND.DEdeg_1(i__).GE.0) DEdeg_1(i__)=-DEdeg_1(i__)
c ..............Just test output...........
write(6,2)
+ AGC_1(i__),OName(i__),RAh_1(i__),RAm_1(i__),RAs_1(i__),
+ DE__1(i__),DEd_1(i__),DEm_1(i__),DEs_1(i__),cz_1(i__),
+ W50_1(i__),Fc_1(i__),Dist_1(i__),Distl(i__),n_Distl(i__),
+ logM_1(i__),logMl(i__),n_logMl(i__),Group(i__)
write(6,'(6H Pos: 2F8.4)') RAdeg_1(i__),DEdeg_1(i__)
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(i__),Cat(i__),RAh_2(i__),RAm_2(i__),DE__2(i__),
+ DEd_2(i__),DEm_2(i__),v_LSR(i__),F(i__),ALFALFA(i__)
if (F(i__) .EQ. 45) F(i__) = iNULL__
RAdeg_2(i__) = rNULL__
DEdeg_2(i__) = 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(i__) .GT. -180) RAdeg_2(i__)=RAh_2(i__)*15.
if(RAm_2(i__) .GT. -180) RAdeg_2(i__)=RAdeg_2(i__)+RAm_2(i__)/4.
if(DEd_2(i__) .GE. 0) DEdeg_2(i__)=DEd_2(i__)
if(DEm_2(i__) .GE. 0) DEdeg_2(i__)=DEdeg_2(i__)+DEm_2(i__)/60.
if(DE__2(i__).EQ.'-'.AND.DEdeg_2(i__).GE.0) DEdeg_2(i__)=-DEdeg_2(i__)
c ..............Just test output...........
write(6,3)
+ Name(i__),Cat(i__),RAh_2(i__),RAm_2(i__),DE__2(i__),
+ DEd_2(i__),DEm_2(i__),v_LSR(i__),F(i__),ALFALFA(i__)
write(6,'(6H Pos: 2F8.4)') RAdeg_2(i__),DEdeg_2(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