Conversion of standardized ReadMe file for
file /./ftp/cats/J/ApJS/247/12 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-09
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/247/12 Strong lens models for 37 clusters from SGAS (Sharon+, 2020)
*================================================================================
*Strong lens models for 37 clusters of galaxies from the SDSS Giant Arcs Survey.
* Sharon K., Bayliss M.B., Dahle H., Dunham S.J., Florian M.K., Gladders M.D.,
* Johnson T.L., Mahler G., Paterno-Mahler R., Rigby J.R., Whitaker K.E.,
* Akhshik M., Koester B.P., Murray K., Remolina Gonzalez J.D., Wuyts E.
* <Astrophys. J. Suppl. Ser., 247, 12 (2020)>
* =2020ApJS..247...12S
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table1.dat' ! HST-GO-13003 observations
integer*4 nr__
parameter (nr__=37) ! Number of records
character*94 ar__ ! Full-size record
C J2000 position composed of: RAh RAm RAs DE- DEd DEm DEs
real*8 RAdeg (nr__) ! (deg) Right Ascension J2000
real*8 DEdeg (nr__) ! (deg) Declination J2000
C ---------------------------------- ! (position vector(s) in degrees)
character*15 Cluster (nr__) ! Cluster identifier (SDSS JHHMM+DDMM)
integer*4 RAh (nr__) ! (h) Hour of right ascension (J2000)
integer*4 RAm (nr__) ! (min) Minute of right ascension (J2000)
integer*4 RAs (nr__) ! (s) Second of right ascension (J2000)
character*1 DE_ (nr__) ! Sign of declination (J2000)
integer*4 DEd (nr__) ! (deg) Degree of declination (J2000)
integer*4 DEm (nr__) ! (arcmin) Arcminute of declination (J2000)
real*4 DEs (nr__) ! (arcsec) Arcsecond of declination (J2000)
character*11 Date (nr__) ! ("date") UT date of HST/WFC3 observation
integer*4 F390W (nr__) ! (s) [2256/2420]? Exposure time in WFC3 F390W filter
integer*4 F475W (nr__) ! (s) [2380/2400]? Exposure time in WFC3 F475W filter
integer*4 F606W (nr__) ! (s) [1440/2436]? Exposure time in WFC3 F606W filter
integer*4 F775W (nr__) ! (s) [2380/2424]? Exposure time in WFC3 F775W filter
integer*4 F814W (nr__) ! (s) [1964/2424]? Exposure time in WFC3 F814W filter
integer*4 F105W (nr__) ! (s) [1112/1112]? Exposure time in WFC3 F105W filter
integer*4 F110W (nr__) ! (s) [1112/1112]? Exposure time in WFC3 F110W filter
integer*4 F125W (nr__) ! (s) [1112/1112]? Exposure time in WFC3 F125W filter
integer*4 F160W (nr__) ! (s) [912/1212] Exposure time in WFC3 F160W filter
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table2.dat' ! Cluster properties
integer*4 nr__1
parameter (nr__1=37) ! Number of records
character*93 ar__1 ! Full-size record
integer*4 Seq (nr__1) ! [1/37] Running sequence number
character*15 Cluster_1 (nr__1) ! Cluster identifier (SDSS JHHMM+DDMM)
real*8 z (nr__1) ! [0.17/0.7] Spectroscopic redshift (1)
real*8 e_z (nr__1) ! [3e-5/0.009]? z uncertainty
integer*4 sigma (nr__1) ! (km/s) [556/1597]? Velocity dispersion
integer*4 e_sigma (nr__1) ! (km/s) [69/410]? sigma uncertainty
integer*4 Nsp (nr__1) ! [1/48] Number of spectra used (2)
real*4 M200 (nr__1) ! (10+14Msun) [1.5/35.7]? Mass M_200_ (3)
real*4 e_M200 (nr__1) ! (10+14Msun) [0.5/20]? Negative uncertainty on M200
real*4 E_M200_1 (nr__1) ! (10+14Msun) [0.7/32]? Positive uncertainty on M200
character*26 r_z (nr__1) ! Spectroscopic reference (4)
real*4 thetaE (nr__1) ! (arcsec) [1.4/23.1]? Einstein radius (5)
*Note (1): Where spectroscopic redshifts are available for several cluster-member
* galaxies, we define the cluster redshift as the mean redshift of these
* galaxies. Otherwise, the redshift of the cluster is assumed to be the
* redshift of the brightest cluster galaxy (BCG).
*Note (2): The number of unique cluster-member galaxies with spectroscopic
* redshifts that were used to compute the velocity dispersion. We used
* the Gapper estimator for clusters with Nsp<15 and the bi-weight sample
* variance otherwise (see Section 3.2).
*Note (3): M_200_ masses were calculated from the velocity dispersions based on
* the scaling relations found by Evrard+ (2008ApJ...672..122E).
*Note (4): References for spectroscopic redshift measurements of cluster
* galaxies are as follows:
* Carrasco+17 = Carrasco+ (2017, J/ApJ/834/210),
* Bayliss+11 = Bayliss+ (2011, J/ApJS/193/8)
* Bayliss+14 = Bayliss+ 2014ApJ...790..144B
* Irwin+15 = Irwin+ (2015, J/ApJ/806/268),
* Johnson+17 = Johnson+ (2017ApJ...843...78J),
* Kubo+10 = Kubo+ (2010ApJ...724L.137K),
* Stark+13 = Stark+ (2013MNRAS.436.1040S)
* SDSS DR12 = Alam+, 2015, V/147
*Note (5): The effective Einstein radii ({theta}_E_) for a source at redshift
* z_s_=2, from the best-fit lens model derived by this work. {theta}_E_
* is calculated as (A/{pi})^0.5 where A is the area enclosed by the
* tangential critical curve.
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table3.dat' ! Summary of spectroscopic observations
integer*4 nr__2
parameter (nr__2=28) ! Number of records
character*113 ar__2 ! Full-size record
character*15 Cluster_2 (nr__2) ! Cluster identifier (SDSS JHHMM+DDMM)
character*24 Tel (nr__2) ! Telescope / Instrument for the spectroscopic
* observation(s) if any
character*30 sDate (nr__2) ! Date(s) of spectroscopic observation(s)
character*27 sExp (nr__2) ! (s) Exposure time(s) for sDate(s)
character*13 PID (nr__2) ! Spectroscopic program ID
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'lensing.dat' ! List of lensing constraints for the 37 clusters
(Tables 4-10)
integer*4 nr__3
parameter (nr__3=668) ! Number of records
character*149 ar__3 ! Full-size record
C J2000 position composed of: RAdeg DEdeg
character*15 Cluster_3 (nr__3) ! Cluster identifier (SDSS JHHMM+DDMM)
character*7 ID (nr__3) ! Image identifier (1)
real*8 RAdeg_1 (nr__3) ! (deg) [1.2/341] Right Ascension (J2000)
real*8 DEdeg_1 (nr__3) ! (deg) [-9.7/65] Declination (J2000)
real*8 zspec (nr__3) ! [0/5.2]? Spectroscopic redshift
character*28 r_zspec (nr__3) ! Reference for zspec (2)
character*61 Notes (nr__3) ! Additional notes
*Note (1): The IDs of images of lensed galaxies are labeled as AB.X where A is
* a number or a letter indicating the source ID (or system name); B is
* a number or a letter indicating the ID of the emission knot within
* the system; and X is a number indicating the ID of the lensed image
* within the multiple image family.
*Note (2): References are as follows:
* Bayliss+10 = 2010ApJ...720.1559B
* Bayliss+11 = 2011ApJS..193....8B (Cat. J/ApJS/193/8)
* Bayliss+12 = 2012ApJ...744..156B
* Bayliss+14 = 2014ApJ...790..144B
* Diehl+09 = 2009ApJ...707..686D
* Johnson+17 = 2017ApJ...843...78J
* Koester+10 = 2010ApJ...723L..73K
* Kubo+10 = 2010ApJ...724L.137K
* Ofek+08 = 2008MNRAS.389..311O
* Rigby+18 = 2018AJ....155..104R (Cat. J/AJ/155/104)
* Stark+13 = 2013MNRAS.436.1040S
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table11.dat' ! List of spectroscopic redshifts; updated version
sent by the author
integer*4 nr__4
parameter (nr__4=158) ! Number of records
character*86 ar__4 ! Full-size record
C J2000 position composed of: RAh RAm RAs DE- DEd DEm DEs
real*8 RAdeg_2 (nr__4) ! (deg) Right Ascension J2000
real*8 DEdeg_2 (nr__4) ! (deg) Declination J2000
C ---------------------------------- ! (position vector(s) in degrees)
character*15 Cluster_4 (nr__4) ! Cluster identifier (SDSS JHHMM+DDMM)
integer*4 RAh_1 (nr__4) ! (h) Hour of right ascension (J2000)
integer*4 RAm_1 (nr__4) ! (min) Minute of right ascension (J2000)
real*4 RAs_1 (nr__4) ! (s) Second of right ascension (J2000)
character*1 DE__1 (nr__4) ! Sign of declination (J2000)
integer*4 DEd_1 (nr__4) ! (deg) Degree of declination (J2000)
integer*4 DEm_1 (nr__4) ! (arcmin) Arcminute of declination (J2000)
real*4 DEs_1 (nr__4) ! (arcsec) Arcsecond of declination (J2000)
real*8 z_1 (nr__4) ! [0.18/0.7] Spectroscopic redshift
* of cluster-member galaxies
character*34 r_z_1 (nr__4) ! Reference or Observation ID
C=============================================================================
C Loading file 'table1.dat' ! HST-GO-13003 observations
C Format for file interpretation
1 format(
+ A15,1X,I2,1X,I2,1X,I2,1X,A1,I2,1X,I2,1X,F5.2,1X,A11,1X,I4,1X,
+ I4,1X,I4,1X,I4,1X,I4,1X,I4,1X,I4,1X,I4,1X,I4)
C Effective file loading
open(unit=1,status='old',file=
+'table1.dat')
write(6,*) '....Loading file: table1.dat'
do i__=1,37
read(1,'(A94)')ar__
read(ar__,1)
+ Cluster(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__),
+ DEm(i__),DEs(i__),Date(i__),F390W(i__),F475W(i__),F606W(i__),
+ F775W(i__),F814W(i__),F105W(i__),F110W(i__),F125W(i__),
+ F160W(i__)
if(ar__(51:54) .EQ. '') F390W(i__) = iNULL__
if(ar__(56:59) .EQ. '') F475W(i__) = iNULL__
if(ar__(61:64) .EQ. '') F606W(i__) = iNULL__
if(ar__(66:69) .EQ. '') F775W(i__) = iNULL__
if(ar__(71:74) .EQ. '') F814W(i__) = iNULL__
if(ar__(76:79) .EQ. '') F105W(i__) = iNULL__
if(ar__(81:84) .EQ. '') F110W(i__) = iNULL__
if(ar__(86:89) .EQ. '') F125W(i__) = iNULL__
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.
if(DE_(i__).EQ.'-'.AND.DEdeg(i__).GE.0) DEdeg(i__)=-DEdeg(i__)
c ..............Just test output...........
write(6,1)
+ Cluster(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__),
+ DEm(i__),DEs(i__),Date(i__),F390W(i__),F475W(i__),F606W(i__),
+ F775W(i__),F814W(i__),F105W(i__),F110W(i__),F125W(i__),
+ F160W(i__)
write(6,'(6H Pos: 2F8.4)') RAdeg(i__),DEdeg(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table2.dat' ! Cluster properties
C Format for file interpretation
2 format(
+ I2,1X,A15,1X,F7.5,1X,F7.5,1X,I4,1X,I3,1X,I2,1X,F4.1,1X,F4.1,
+ 1X,F4.1,1X,A26,1X,F4.1)
C Effective file loading
open(unit=1,status='old',file=
+'table2.dat')
write(6,*) '....Loading file: table2.dat'
do i__=1,37
read(1,'(A93)')ar__1
read(ar__1,2)
+ Seq(i__),Cluster_1(i__),z(i__),e_z(i__),sigma(i__),
+ e_sigma(i__),Nsp(i__),M200(i__),e_M200(i__),E_M200_1(i__),
+ r_z(i__),thetaE(i__)
if(ar__1(28:34) .EQ. '') e_z(i__) = rNULL__
if(ar__1(36:39) .EQ. '') sigma(i__) = iNULL__
if(ar__1(41:43) .EQ. '') e_sigma(i__) = iNULL__
if(ar__1(48:51) .EQ. '') M200(i__) = rNULL__
if(ar__1(53:56) .EQ. '') e_M200(i__) = rNULL__
if(ar__1(58:61) .EQ. '') E_M200_1(i__) = rNULL__
if(ar__1(90:93) .EQ. '') thetaE(i__) = rNULL__
c ..............Just test output...........
write(6,2)
+ Seq(i__),Cluster_1(i__),z(i__),e_z(i__),sigma(i__),
+ e_sigma(i__),Nsp(i__),M200(i__),e_M200(i__),E_M200_1(i__),
+ r_z(i__),thetaE(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table3.dat' ! Summary of spectroscopic observations
C Format for file interpretation
3 format(A15,1X,A24,1X,A30,1X,A27,1X,A13)
C Effective file loading
open(unit=1,status='old',file=
+'table3.dat')
write(6,*) '....Loading file: table3.dat'
do i__=1,28
read(1,'(A113)')ar__2
read(ar__2,3)
+ Cluster_2(i__),Tel(i__),sDate(i__),sExp(i__),PID(i__)
c ..............Just test output...........
write(6,3)
+ Cluster_2(i__),Tel(i__),sDate(i__),sExp(i__),PID(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'lensing.dat' ! List of lensing constraints for the 37 clusters
* (Tables 4-10)
C Format for file interpretation
4 format(A15,1X,A7,1X,F12.8,1X,F12.9,1X,F8.6,1X,A28,1X,A61)
C Effective file loading
open(unit=1,status='old',file=
+'lensing.dat')
write(6,*) '....Loading file: lensing.dat'
do i__=1,668
read(1,'(A149)')ar__3
read(ar__3,4)
+ Cluster_3(i__),ID(i__),RAdeg_1(i__),DEdeg_1(i__),zspec(i__),
+ r_zspec(i__),Notes(i__)
if(ar__3(51:58) .EQ. '') zspec(i__) = rNULL__
c ..............Just test output...........
write(6,4)
+ Cluster_3(i__),ID(i__),RAdeg_1(i__),DEdeg_1(i__),zspec(i__),
+ r_zspec(i__),Notes(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table11.dat' ! List of spectroscopic redshifts; updated version
* sent by the author
C Format for file interpretation
5 format(
+ A15,1X,I2,1X,I2,1X,F6.3,1X,A1,I2,1X,I2,1X,F6.3,1X,F8.6,1X,A34)
C Effective file loading
open(unit=1,status='old',file=
+'table11.dat')
write(6,*) '....Loading file: table11.dat'
do i__=1,158
read(1,'(A86)')ar__4
read(ar__4,5)
+ Cluster_4(i__),RAh_1(i__),RAm_1(i__),RAs_1(i__),DE__1(i__),
+ DEd_1(i__),DEm_1(i__),DEs_1(i__),z_1(i__),r_z_1(i__)
RAdeg_2(i__) = rNULL__
DEdeg_2(i__) = rNULL__
c Derive coordinates RAdeg_2 and DEdeg_2 from input data
c (RAdeg_2 and DEdeg_2 are set to rNULL__ when unknown)
if(RAh_1(i__) .GT. -180) RAdeg_2(i__)=RAh_1(i__)*15.
if(RAm_1(i__) .GT. -180) RAdeg_2(i__)=RAdeg_2(i__)+RAm_1(i__)/4.
if(RAs_1(i__) .GT. -180) RAdeg_2(i__)=RAdeg_2(i__)+RAs_1(i__)/240.
if(DEd_1(i__) .GE. 0) DEdeg_2(i__)=DEd_1(i__)
if(DEm_1(i__) .GE. 0) DEdeg_2(i__)=DEdeg_2(i__)+DEm_1(i__)/60.
if(DEs_1(i__) .GE. 0) DEdeg_2(i__)=DEdeg_2(i__)+DEs_1(i__)/3600.
if(DE__1(i__).EQ.'-'.AND.DEdeg_2(i__).GE.0) DEdeg_2(i__)=-DEdeg_2(i__)
c ..............Just test output...........
write(6,5)
+ Cluster_4(i__),RAh_1(i__),RAm_1(i__),RAs_1(i__),DE__1(i__),
+ DEd_1(i__),DEm_1(i__),DEs_1(i__),z_1(i__),r_z_1(i__)
write(6,'(6H Pos: 2F8.4)') RAdeg_2(i__),DEdeg_2(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end