Conversion of standardized ReadMe file for
file /./ftp/cats/J/A_A/681/A124 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.81 (2015-09-23), on 2026-Aug-11
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/681/A124 Strong lensing dataset in MACS J0416.1-2403 (Diego+, 2024)
*================================================================================
*BUFFALO/Flashlights: Constraints on the abundance of lensed supergiant stars in
*the Spock galaxy at redshift 1.
* Diego J.M., Li S.K., Meena A.K., Niemiec A., Acebron A., Jauzac M.,
* Struble M.F., Amruth A., Broadhurst T.J., Cerny C., Ebeling H.,
* Filippenko A.V., Jullo E., Kelly P., Koekemoer A.M., Lagattuta D., Lim J.,
* Limousin M., Mahler G., Patel N., Remolina J., Richard J., Sharon K.,
* Steinhardt C., Umetsu K., Williams L., Zitrin A., Palencia J.M., Dai L.,
* Ji L., Pascale M.
* <Astron. Astrophys., 681, A124 (2024)>
* =2024A&A...681A.124D (SIMBAD/NED BibCode)
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'tableb1.dat' ! Full strong lensing dataset
integer*4 nr__
parameter (nr__=214) ! Number of records
character*49 ar__ ! Full-size record
C J2000 position composed of: RAdeg DEdeg
integer*4 ID ! [1/76] System identification number
character*1 n_ID ! [+] note on ID (1)
real*8 RAdeg ! (deg) Right ascension (J2000)
real*8 DEdeg ! (deg) Declination (J2000)
real*4 zMUSE ! ?=- Muse redshift
character*8 ID2 ! System identification number in Bergamini et
* al. (2023A&A...674A..79B, Cat. J/A+A/674/A79)
real*4 z2 ! ? Redshift in Bergamini et al.
* (2023A&A...674A..79B, Cat. J/A+A/674/A79)
*Note (1): + for are from Bergamini et al. (2023A&A...674A..79B,
* Cat. J/A+A/674/A79), not included in our set of constraints since they were
* published after the model was derived.
C=============================================================================
C Loading file 'tableb1.dat' ! Full strong lensing dataset
C Format for file interpretation
1 format(I2,A1,1X,F10.7,1X,F11.7,1X,F6.4,1X,A8,1X,F6.4)
C Effective file loading
open(unit=1,status='old',file=
+'tableb1.dat')
write(6,*) '....Loading file: tableb1.dat'
do i__=1,214
read(1,'(A49)')ar__
read(ar__,1)ID,n_ID,RAdeg,DEdeg,zMUSE,ID2,z2
if (idig(ar__(28:33)).EQ.0) zMUSE = rNULL__
if(ar__(44:49) .EQ. '') z2 = rNULL__
c ..............Just test output...........
write(6,1)ID,n_ID,RAdeg,DEdeg,zMUSE,ID2,z2
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end
C Locate position of first digit in string; or return 0
integer function idig(c)
character*(*) c
character*1 c1
integer lc,i
lc=len(c)
idig=0
do i=1,lc
if(c(i:i).ne.' ') go to 1
end do
1 if(i.gt.lc) return
c1=c(i:i)
if(c1.eq.'.'.or.c1.eq.'-'.or.c1.eq.'+') i=i+1
if(i.gt.lc) return
c1=c(i:i)
if(c1.ge.'0'.and.c1.le.'9') idig=i
return
end