Conversion of standardized ReadMe file for
file /./ftp/cats/J/A_AS/95/87 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-Aug-12
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/A+AS/95/87 Photometry and Spectroscopy in A2218 (Le Borgne+, 1992)
*================================================================================
*Photometric and spectroscopic survey of the cluster of galaxies Abell 2218.
* Le Borgne J.F., Pello R., Sanahuja B.
* <Astron. Astrophys. Suppl. Ser. 95, 87 (1992)>
* =1992A&AS...95...87L
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table2.dat' ! Photographic catalog of A2218
integer*4 nr__
parameter (nr__=729) ! Number of records
character*84 ar__ ! Full-size record
integer*4 LPS ! [1/729] Sequential number
integer*4 BO ! ? Butcher-Oemler (1984ApJ...285..426B) number
real*8 Xpos ! (arcsec) X position (1)
real*8 Ypos ! (arcsec) Y position (1)
real*4 Bmag ! (mag) ? Johnson B magnitude
real*4 gmag ! (mag) ? Thuan-Gunn g magnitude
real*4 rmag ! (mag) ? Thuan-Gunn r magnitude
real*4 imag ! (mag) ? Thuan-Gunn i magnitude
real*4 zmag ! (mag) ? Thuan-Gunn z magnitude
real*4 B_g ! (mag) ? Johnson-Thuan-Gunn B-g colour index
real*4 g_r ! (mag) ? Thuan-Gunn g-r colour index
real*4 B_r ! (mag) ? Johnson-Thuan-Gunn B-r colour index
real*4 r_z ! (mag) ? Thuan-Gunn r-z colour index
real*4 i_z ! (mag) ? Thuan-Gunn i-z colour index
*Note (1): x and y coordinates with respect to the central galaxy.
* x increases southward, y increase westward.
* Galaxy #391 (x=y=0) has position from NED LEDA 140648 of
* 16:35:49.20+66:12:43.5 (J2000.0)
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table3.dat' ! Spectroscopic data for objects in the field
of Abell 2218
integer*4 nr__1
parameter (nr__1=66) ! Number of records
character*89 ar__1 ! Full-size record
character*1 n_Id ! [LBF] Source list (1)
integer*4 Id ! Identification in list (1)
real*4 z ! ? Redshift (spectroscopic)
real*4 e_z ! ? rms uncertainty on z
real*4 rmag_1 ! (mag) ? Thuan-Gunn r magnitude
real*4 B_r_1 ! (mag) ? Johnson-Thuan-Gunn B-r colour index
integer*4 RV ! (km/s) ? Radial velocity relative to the cluster
* center of mass, for cluster members only
real*4 S_N ! ? Signal-to-noise ratio
character*5 MType ! Morphological type
character*40 Lines ! List of detected lines
*Note (1): Source list as follows:
* L = this paper, star name is <LPS NNN> in Simbad
* B = form Butcher et al. (1983ApJS...52..183B), cluster center,
* name is <BOW ACO 2218 CCNNN> in Simbad
* F = form Butcher et al. (1983ApJS...52..183B), blank field
* name is <BOW ACO 2218 BFNNN> in Simbad
C=============================================================================
C Loading file 'table2.dat' ! Photographic catalog of A2218
C Format for file interpretation
1 format(
+ I3,1X,I3,1X,F7.3,1X,F8.3,1X,F5.2,1X,F5.2,1X,F5.2,1X,F5.2,1X,
+ F5.2,1X,F5.2,1X,F5.2,1X,F5.2,1X,F5.2,1X,F5.2)
C Effective file loading
open(unit=1,status='old',file=
+'table2.dat')
write(6,*) '....Loading file: table2.dat'
do i__=1,729
read(1,'(A84)')ar__
read(ar__,1)
+ LPS,BO,Xpos,Ypos,Bmag,gmag,rmag,imag,zmag,B_g,g_r,B_r,r_z,i_z
if(ar__(5:7) .EQ. '') BO = iNULL__
if(ar__(26:30) .EQ. '') Bmag = rNULL__
if(ar__(32:36) .EQ. '') gmag = rNULL__
if(ar__(38:42) .EQ. '') rmag = rNULL__
if(ar__(44:48) .EQ. '') imag = rNULL__
if(ar__(50:54) .EQ. '') zmag = rNULL__
if(ar__(56:60) .EQ. '') B_g = rNULL__
if(ar__(62:66) .EQ. '') g_r = rNULL__
if(ar__(68:72) .EQ. '') B_r = rNULL__
if(ar__(74:78) .EQ. '') r_z = rNULL__
if(ar__(80:84) .EQ. '') i_z = rNULL__
c ..............Just test output...........
write(6,1)
+ LPS,BO,Xpos,Ypos,Bmag,gmag,rmag,imag,zmag,B_g,g_r,B_r,r_z,i_z
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table3.dat' ! Spectroscopic data for objects in the field
* of Abell 2218
C Format for file interpretation
2 format(
+ A1,I3,1X,F6.4,1X,F6.4,1X,F5.2,1X,F4.2,1X,I5,1X,F6.3,1X,A5,1X,
+ A40)
C Effective file loading
open(unit=1,status='old',file=
+'table3.dat')
write(6,*) '....Loading file: table3.dat'
do i__=1,66
read(1,'(A89)')ar__1
read(ar__1,2)n_Id,Id,z,e_z,rmag_1,B_r_1,RV,S_N,MType,Lines
if(ar__1(6:11) .EQ. '') z = rNULL__
if(ar__1(13:18) .EQ. '') e_z = rNULL__
if(ar__1(20:24) .EQ. '') rmag_1 = rNULL__
if(ar__1(26:29) .EQ. '') B_r_1 = rNULL__
if(ar__1(31:35) .EQ. '') RV = iNULL__
if(ar__1(37:42) .EQ. '') S_N = rNULL__
c ..............Just test output...........
write(6,2)n_Id,Id,z,e_z,rmag_1,B_r_1,RV,S_N,MType,Lines
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end