Conversion of standardized ReadMe file for
file /./ftp/cats/J/MNRAS/466/3088 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/MNRAS/466/3088 Lensed and extended quasars (Williams+, 2017)
*================================================================================
*Population mixtures and searches of lensed and extended quasars across
*photometric surveys.
* Williams P., Agnello A., Treu T.
* <Mon. Not. R. Astron. Soc., 466, 3088-3102 (2017)>
* =2017MNRAS.466.3088W (SIMBAD/NED BibCode)
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table2.dat' ! List of all known lenses in SDSS, along with
selected membership probabilities
integer*4 nr__
parameter (nr__=128) ! Number of records
character*89 ar__ ! Full-size record
C J2000 position composed of: RAdeg DEdeg
character*19 Name (nr__) ! Name
real*8 RAdeg (nr__) ! (deg) Right ascension (J2000)
real*8 DEdeg (nr__) ! (deg) Declination (J2000)
real*8 p_lens (nr__) ! Probability of lensed QSO
real*8 p_PLQSO (nr__) ! Probability of point-like QSO, all redshifts
real*8 p_ExtQSO1 (nr__) ! Probability of extended QSO, 1.2<z<1.75
real*8 p_ExtQSO2 (nr__) ! Probability of extended QSO, 1.75<z<2.4
real*8 p_ExtQSO3 (nr__) ! Probability of extended QSO, z>2.4
real*4 Sep (nr__) ! (arcsec) Separation
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table3.dat' ! *Coordinates and colours of the 43 SDSS objects
selected by visual inspection.
integer*4 nr__1
parameter (nr__1=43) ! Number of records
character*102 ar__1 ! Full-size record
C J2000 position composed of: RAdeg DEdeg
real*8 RAdeg_1 (nr__1) ! (deg) Rigth ascension (J2000)
real*8 DEdeg_1 (nr__1) ! (deg) Declination (J2000)
real*4 umag (nr__1) ! (mag) SDSS u magnitude (AB)
real*4 gmag (nr__1) ! (mag) SDSS g magnitude (AB)
real*4 rmag (nr__1) ! (mag) SDSS r magnitude (AB)
real*4 imag (nr__1) ! (mag) SDSS i magnitude (AB)
real*4 zmag (nr__1) ! (mag) SDSS z magnitude (AB)
real*4 W1mag (nr__1) ! (mag) WISE W1 magnitude (Vega)
real*4 W2mag (nr__1) ! (mag) WISE W2 magnitude (Vega)
real*4 gmagpsf (nr__1) ! (mag) SDSS PSF g magnitude (AB)
real*4 rmagpsf (nr__1) ! (mag) SDSS PSF r magnitude (AB)
real*4 imagpsf (nr__1) ! (mag) SDSS PSF i magnitude (AB)
real*4 W3mag (nr__1) ! (mag) WISE W3 magnitude (Vega)
real*4 z (nr__1) ! Redshift
real*8 p_lens_1 (nr__1) ! Lensing QSO probability
C=============================================================================
C Loading file 'table2.dat' ! List of all known lenses in SDSS, along with
* selected membership probabilities
C Format for file interpretation
1 format(
+ A19,1X,F11.7,1X,F11.7,1X,F7.5,1X,F7.5,1X,F7.5,1X,F7.5,1X,F7.5,
+ 1X,F5.2)
C Effective file loading
open(unit=1,status='old',file=
+'table2.dat')
write(6,*) '....Loading file: table2.dat'
do i__=1,128
read(1,'(A89)')ar__
read(ar__,1)
+ Name(i__),RAdeg(i__),DEdeg(i__),p_lens(i__),p_PLQSO(i__),
+ p_ExtQSO1(i__),p_ExtQSO2(i__),p_ExtQSO3(i__),Sep(i__)
c ..............Just test output...........
write(6,1)
+ Name(i__),RAdeg(i__),DEdeg(i__),p_lens(i__),p_PLQSO(i__),
+ p_ExtQSO1(i__),p_ExtQSO2(i__),p_ExtQSO3(i__),Sep(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table3.dat' ! *Coordinates and colours of the 43 SDSS objects
* selected by visual inspection.
C Format for file interpretation
2 format(
+ F11.7,1X,F10.7,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,1X,F5.2,1X,F5.3,1X,F7.5)
C Effective file loading
open(unit=1,status='old',file=
+'table3.dat')
write(6,*) '....Loading file: table3.dat'
do i__=1,43
read(1,'(A102)')ar__1
read(ar__1,2)
+ RAdeg_1(i__),DEdeg_1(i__),umag(i__),gmag(i__),rmag(i__),
+ imag(i__),zmag(i__),W1mag(i__),W2mag(i__),gmagpsf(i__),
+ rmagpsf(i__),imagpsf(i__),W3mag(i__),z(i__),p_lens_1(i__)
c ..............Just test output...........
write(6,2)
+ RAdeg_1(i__),DEdeg_1(i__),umag(i__),gmag(i__),rmag(i__),
+ imag(i__),zmag(i__),W1mag(i__),W2mag(i__),gmagpsf(i__),
+ rmagpsf(i__),imagpsf(i__),W3mag(i__),z(i__),p_lens_1(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end