Conversion of standardized ReadMe file for
file /./ftp/cats/J/ApJS/109/367 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-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/109/367 4C 23.56 field deep imaging (Knopp+ 1997)
*================================================================================
*Deep imaging of the field of the high-redshift radio source 4C 23.56
* Knopp G.P., Chambers K.C.
* <Astrophys. J. Suppl. Ser. 109, 367 (1997)>
* =1997ApJS..109..367K (SIMBAD/NED BibCode)
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table4' ! Photometry of 4C 23.56 field sources
integer*4 nr__
parameter (nr__=116) ! Number of records
character*100 ar__ ! Full-size record
C J2000 position composed of: RAh RAm RAs 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 Seq (nr__) ! [1/117]+ Source sequential number
integer*4 RAh (nr__) ! (h) Right ascension (J2000)
integer*4 RAm (nr__) ! (min) Right ascension (J2000)
real*4 RAs (nr__) ! (s) Right ascension (J2000)
integer*4 DEd (nr__) ! (deg) Declination (J2000)
integer*4 DEm (nr__) ! (arcmin) Declination (J2000)
real*4 DEs (nr__) ! (arcsec) Declination (J2000)
character*1 l_U_mag (nr__) ! Limit flag on U'mag
real*4 U_mag (nr__) ! (mag) U' magnitude (3402{AA})
real*4 e_U_mag (nr__) ! (mag) ? rms uncertainty on U'mag
character*1 n_U_mag (nr__) ! [sof] Note on U'mag (1)
character*1 l_NB (nr__) ! Limit flag on NB
real*4 NB (nr__) ! (mag) Narrow band magnitude (4229{AA}) in
* AB magnitude (2)
real*4 e_NB (nr__) ! (mag) ? rms uncertainty on NB in AB magnitude (2)
character*1 n_NB (nr__) ! [sof] Note on NB (1)
character*1 l_Vmag (nr__) ! Limit flag on Vmag
real*4 Vmag (nr__) ! (mag) V magnitude (5457{AA})
real*4 e_Vmag (nr__) ! (mag) ? rms uncertainty on Vmag
character*1 n_Vmag (nr__) ! [sof] Note on Vmag (1)
character*1 l_Imag (nr__) ! Limit flag on Imag
real*4 Imag (nr__) ! (mag) I magnitude (8300{AA})
real*4 e_Imag (nr__) ! (mag) ? rms uncertainty on Imag
character*1 n_Imag (nr__) ! [sof] Note on Imag (1)
character*1 l_K_mag (nr__) ! Limit flag on K'mag
real*4 K_mag (nr__) ! (mag) K' magnitude (21100{AA})
real*4 e_K_mag (nr__) ! (mag) ? rms uncertainty on K'mag
character*1 n_K_mag (nr__) ! [sof] Note on K'mag (1)
character*2 Class (nr__) ! Classification (3)
*Note (1): We abbreviate the notes to waveband measurements as
* s = saturated
* o = obscured in the wings of a bright source and thus not identified
* f = failed to meet selection criteria
*Note (2): In the AB-magnitude system, any object with a flat spectrum
* (F_{nu} prop. to {nu}^0^) has the same magnitude,
* independent of passband: m_AB_=-2.5log(f_{nu}_) - 48.59
*Note (3): Our tentative object classifications are abbreviated as follows:
* FS = field star
* UG = unidentified galaxy
* E = elliptical
* S = spiral
* Im = irregular
* RG = 4C 23.56
C=============================================================================
C Loading file 'table4' ! Photometry of 4C 23.56 field sources
C Format for file interpretation
1 format(
+ I3,1X,I2,1X,I2,1X,F5.2,2X,I2,1X,I2,1X,F4.1,1X,A1,F5.2,1X,F4.2,
+ 1X,A1,1X,A1,F5.2,1X,F4.2,1X,A1,1X,A1,F5.2,1X,F4.2,1X,A1,1X,A1,
+ F5.2,1X,F4.2,1X,A1,1X,A1,F5.2,1X,F4.2,1X,A1,1X,A2)
C Effective file loading
open(unit=1,status='old',file=
+'table4')
write(6,*) '....Loading file: table4'
do i__=1,116
read(1,'(A100)')ar__
read(ar__,1)
+ Seq(i__),RAh(i__),RAm(i__),RAs(i__),DEd(i__),DEm(i__),
+ DEs(i__),l_U_mag(i__),U_mag(i__),e_U_mag(i__),n_U_mag(i__),
+ l_NB(i__),NB(i__),e_NB(i__),n_NB(i__),l_Vmag(i__),Vmag(i__),
+ e_Vmag(i__),n_Vmag(i__),l_Imag(i__),Imag(i__),e_Imag(i__),
+ n_Imag(i__),l_K_mag(i__),K_mag(i__),e_K_mag(i__),n_K_mag(i__),
+ Class(i__)
if(ar__(36:39) .EQ. '') e_U_mag(i__) = rNULL__
if(ar__(50:53) .EQ. '') e_NB(i__) = rNULL__
if(ar__(64:67) .EQ. '') e_Vmag(i__) = rNULL__
if(ar__(78:81) .EQ. '') e_Imag(i__) = rNULL__
if(ar__(92:95) .EQ. '') e_K_mag(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.
c ..............Just test output...........
write(6,1)
+ Seq(i__),RAh(i__),RAm(i__),RAs(i__),DEd(i__),DEm(i__),
+ DEs(i__),l_U_mag(i__),U_mag(i__),e_U_mag(i__),n_U_mag(i__),
+ l_NB(i__),NB(i__),e_NB(i__),n_NB(i__),l_Vmag(i__),Vmag(i__),
+ e_Vmag(i__),n_Vmag(i__),l_Imag(i__),Imag(i__),e_Imag(i__),
+ n_Imag(i__),l_K_mag(i__),K_mag(i__),e_K_mag(i__),n_K_mag(i__),
+ Class(i__)
write(6,'(6H Pos: 2F8.4)') RAdeg(i__),DEdeg(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end