Conversion of standardized ReadMe file for
file /./ftp/cats/J/A_A/688/A34 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-14
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+A/688/A34 Strong lenses KiDS DR4 (Grespan+, 2024)
*================================================================================
*TEGLIE: Transformer encoders as strong gravitational lens finders in KiDS.
*From simulations to surveys.
* Grespan M., Thuruthipilly H., Pollo A., Lochner M., Biesiada M., Etsebeth V.
* <Astron. Astrophys. 688, A34 (2024)>
* =2024A&A...688A..34G (SIMBAD/NED BibCode)
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'tablea1.dat' ! List of the strong lenses, grade 1
integer*4 nr__
parameter (nr__=71) ! Number of records
character*116 ar__ ! Full-size record
C J2000 position composed of: RAdeg DEdeg
integer*4 ID (nr__) ! [0/70] Object Identifier in the publication
character*16 KiDSTile (nr__) ! Pointing in AW convention in which the object
* has been observed in KiDS DR4
character*21 KiDSID (nr__) ! Object ID (JHHMMSS.sss+DDMMSS.ss,
* ICR coordinates)
real*8 RAdeg (nr__) ! (deg) Centroid sky position right ascension (J2000)
real*8 DEdeg (nr__) ! (deg) Centroid sky position declination (J2000)
real*4 zphot (nr__) ! BPZ photometric redshift estimation from
* BPZ code from KiDS DR4
real*4 zspec (nr__) ! ? AUTOZ spectroscopic redshift estimate of
* the blended spectra of the first correlation
* peak from GAMA DR4
* (AATSpecAutozAllv27_DR4 catalog)
real*4 zspec2 (nr__) ! ? AUTOZ spectroscopic redshift estimate of
* the blended spectra from GAMA DR4 of the
* second correlation peak
* (AATSpecAutozAllv27_DR4 catalog)
character*4 test (nr__) ! Identifier of the paper section in which the
* candidate has been detected
character*36 Crosscheck (nr__) ! Additional comments on previous detections
* of the object
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'tablec1.dat' ! List of the strong lenses, grade 2
integer*4 nr__1
parameter (nr__1=193) ! Number of records
character*51 ar__1 ! Full-size record
C J2000 position composed of: RAdeg DEdeg
integer*4 ID_1 (nr__1) ! [0/192] Object Identifier in the publication
character*21 KiDSID_1 (nr__1) ! Object ID (JHHMMSS.sss+DDMMSS.ss,
* ICR coordinates)
real*8 RAdeg_1 (nr__1) ! (deg) Centroid sky position right ascension (J2000)
real*8 DEdeg_1 (nr__1) ! (deg) Centroid sky position declination (J2000)
real*4 zphot_1 (nr__1) ! BPZ photometric redshift estimation from
* BPZ code from KiDS DR4
character*2 test_1 (nr__1) ! Identifier of the paper section in which the
* candidate has been detected
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table6.dat' ! Machine learning candidates
integer*4 nr__2
parameter (nr__2=51627) ! Number of records
character*76 ar__2 ! Full-size record
C J2000 position composed of: RAdeg DEdeg
integer*4 ID_2 (nr__2) ! [0/51626] Object Identifier in the publication
character*16 KiDSTile_1 (nr__2) ! Pointing in AW convention in which the object
* has been observed in KiDS DR4
character*21 KiDSID_2 (nr__2) ! Object ID (JHHMMSS.sss+DDMMSS.ss,
* ICR coordinates)
real*8 RAdeg_2 (nr__2) ! (deg) Centroid sky position right ascension (J2000)
real*8 DEdeg_2 (nr__2) ! (deg) Centroid sky position declination (J2000)
real*4 zphot_2 (nr__2) ! BPZ photometric redshift estimation from
* BPZ code from KiDS DR4
real*4 Grade (nr__2) ! [0/3] Object grade after visual inspection (1)
real*4 Prob (nr__2) ! Predicition probability given by the model
*Note (1): Grade as follows:
* 1 = Most likely a Strong lens
* 2 = Possibly a Strong Lens
* 3 = Object exhibiting lensing-like features, 0No lensing features are present
C=============================================================================
C Loading file 'tablea1.dat' ! List of the strong lenses, grade 1
C Format for file interpretation
1 format(
+ I2,1X,A16,1X,A21,1X,F8.4,1X,F8.4,1X,F4.2,1X,F4.2,1X,F4.2,1X,
+ A4,1X,A36)
C Effective file loading
open(unit=1,status='old',file=
+'tablea1.dat')
write(6,*) '....Loading file: tablea1.dat'
do i__=1,71
read(1,'(A116)')ar__
read(ar__,1)
+ ID(i__),KiDSTile(i__),KiDSID(i__),RAdeg(i__),DEdeg(i__),
+ zphot(i__),zspec(i__),zspec2(i__),test(i__),Crosscheck(i__)
if(ar__(66:69) .EQ. '') zspec(i__) = rNULL__
if(ar__(71:74) .EQ. '') zspec2(i__) = rNULL__
c ..............Just test output...........
write(6,1)
+ ID(i__),KiDSTile(i__),KiDSID(i__),RAdeg(i__),DEdeg(i__),
+ zphot(i__),zspec(i__),zspec2(i__),test(i__),Crosscheck(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'tablec1.dat' ! List of the strong lenses, grade 2
C Format for file interpretation
2 format(I3,1X,A21,1X,F8.4,1X,F8.4,1X,F4.2,1X,A2)
C Effective file loading
open(unit=1,status='old',file=
+'tablec1.dat')
write(6,*) '....Loading file: tablec1.dat'
do i__=1,193
read(1,'(A51)')ar__1
read(ar__1,2)
+ ID_1(i__),KiDSID_1(i__),RAdeg_1(i__),DEdeg_1(i__),
+ zphot_1(i__),test_1(i__)
c ..............Just test output...........
write(6,2)
+ ID_1(i__),KiDSID_1(i__),RAdeg_1(i__),DEdeg_1(i__),
+ zphot_1(i__),test_1(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table6.dat' ! Machine learning candidates
C Format for file interpretation
3 format(I5,1X,A16,1X,A21,1X,F8.4,1X,F8.4,1X,F4.2,1X,F3.1,1X,F4.2)
C Effective file loading
open(unit=1,status='old',file=
+'table6.dat')
write(6,*) '....Loading file: table6.dat'
do i__=1,51627
read(1,'(A76)')ar__2
read(ar__2,3)
+ ID_2(i__),KiDSTile_1(i__),KiDSID_2(i__),RAdeg_2(i__),
+ DEdeg_2(i__),zphot_2(i__),Grade(i__),Prob(i__)
c ..............Just test output...........
write(6,3)
+ ID_2(i__),KiDSTile_1(i__),KiDSID_2(i__),RAdeg_2(i__),
+ DEdeg_2(i__),zphot_2(i__),Grade(i__),Prob(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end