Conversion of standardized ReadMe file for
catalog 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.5, on 2013-May-19
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__=-1.e37) ! NULL real number
parameter (iNULL__=-2147483647) ! NULL int number
C=============================================================================
Cat. J/PASJ/60/161 Multi-wave band emission from blazars (Yi+, 2008)
*================================================================================
*Broad-line and multi-wave band emission from blazars.
* Yi T., Xie G.
* <Publ. Astron. Soc. Jap., 60, 161-168 (2008)>
* =2008PASJ...60..161Y
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table1.dat' ! Sample of 50 blazars and the relevant data
integer*4 nr__
parameter (nr__=50) ! Number of records
character*60 ar__ ! Full-size record
character*8 Name ! IAU name (HHMM+DDd, B1950) of the blazar
real*4 z ! Redshift
real*4 FR ! (Jy) Radio flux at 5GHz
real*4 FO ! (mJy) V band optical flux
real*4 FX ! (uJy) 1keV X-ray flux (high state)
real*4 alpha ! X-ray photon spectral index
real*4 logFBLR ! ([mW/m2]) Estimated total broad-band flux (erg/cm^2^/s)
character*2 Class ! [Q BL] Class (Q: quasars or BL: BL Lac objects)
real*4 FX2 ! (uJy) ? 1keV X-ray flux (low state)
real*4 alpha2 ! ? X-ray photon spectral index for FX2
C=============================================================================
C Loading file 'table1.dat' ! Sample of 50 blazars and the relevant data
C Format for file interpretation
1 format(
+ A8,1X,F5.3,1X,F6.3,1X,F6.3,1X,F5.2,1X,F5.2,1X,F6.2,1X,A2,1X,
+ F4.2,1X,F4.2)
C Effective file loading
open(unit=1,file='table1.dat', status='old')
write(6,*) '....Loading file: table1.dat'
do i__=1,50
read(1,'(A60)')ar__
read(ar__,1)Name,z,FR,FO,FX,alpha,logFBLR,Class,FX2,alpha2
if(ar__(52:55) .EQ. '') FX2 = rNULL__
if(ar__(57:60) .EQ. '') alpha2 = rNULL__
c ..............Just test output...........
write(6,1)Name,z,FR,FO,FX,alpha,logFBLR,Class,FX2,alpha2
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end