Conversion of standardized ReadMe file for
file /./ftp/cats/J/A_A/682/A4 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-Jun-08
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/682/A4 DES Y3 low surface brightness galaxies (Thuruthipilly+, 2024)
*================================================================================
*Shedding light on low surface brightness galaxies in
*Dark Energy Survey with transformers.
* Thuruthipilly H., Junais, Pollo A., Sureshkumar U., Grespan M., Sawant P.,
* Malek K., Zadrozny A.
* <Astron. Astrophys. 682, A4 (2024)>
* =2024A&A...682A...4T (SIMBAD/NED BibCode)
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'catalog.dat' ! Extended low-surface-brightness galaxy catalog
integer*4 nr__
parameter (nr__=4083) ! Number of records
character*109 ar__ ! Full-size record
C J2000 position composed of: RAdeg DEdeg
integer*4 CoadID (nr__) ! Coadd object identifier (COADD_OBJECT_ID)
real*8 RAdeg (nr__) ! (deg) Right Ascension (J2000) from galfit (RA)
real*8 DEdeg (nr__) ! (deg) Declination (J2000) from galfit (DEC)
real*4 gmag (nr__) ! (mag) g-band magnitude, galfit (g_gf)
real*4 gmagcor (nr__) ! (mag) Extinction corrected g-bang magnitude
* (g_cor)
real*4 mug (nr__) ! (mag/arcsec2) g-band mean surface brightness,
* galfit (g_mu)
real*4 rhlg (nr__) ! (arcsec) Half-light radius, g-band (r_g1/2)
real*4 n (nr__) ! Sersic index (n)
real*4 q (nr__) ! Axis ratio (q)
real*4 log_Sigma_ (nr__) ! ([Msun/kpc2]) ?=- Stellar mass surface density
* in log scale (log10(Sigma_star))
real*4 rchi2g (nr__) ! Reduced chi-square of the g-band galfit
* (g_rchi2)
real*4 imag (nr__) ! (mag) ?=- i-band magnitude, galfit (i_gf)
real*4 imagcor (nr__) ! (mag) ?=- Extinction corrected i-bang magnitude
* (i_cor)
real*4 mui (nr__) ! (mag/arcsec2) i-band mean surface brightness from
* galfit (i_mu)
real*4 rhli (nr__) ! (arcsec) Half-light radius, i-band (r_i1/2)
real*8 rchi2i (nr__) ! Reduced chi-square of the i-band galfit
* (i_rchi2)
C=============================================================================
C Loading file 'catalog.dat' ! Extended low-surface-brightness galaxy catalog
C Format for file interpretation
1 format(
+ I9,1X,F10.6,1X,F10.6,1X,F5.2,1X,F5.2,1X,F5.2,1X,F5.2,1X,F4.2,
+ 1X,F4.2,1X,F4.2,1X,F4.2,1X,F5.2,1X,F5.2,1X,F5.2,1X,F5.2,1X,
+ F9.2)
C Effective file loading
open(unit=1,status='old',file=
+'catalog.dat')
write(6,*) '....Loading file: catalog.dat'
do i__=1,4083
read(1,'(A109)')ar__
read(ar__,1)
+ CoadID(i__),RAdeg(i__),DEdeg(i__),gmag(i__),gmagcor(i__),
+ mug(i__),rhlg(i__),n(i__),q(i__),log_Sigma_(i__),rchi2g(i__),
+ imag(i__),imagcor(i__),mui(i__),rhli(i__),rchi2i(i__)
if (idig(ar__(67:70)).EQ.0) log_Sigma_(i__) = rNULL__
if (idig(ar__(77:81)).EQ.0) imag(i__) = rNULL__
if (idig(ar__(83:87)).EQ.0) imagcor(i__) = rNULL__
c ..............Just test output...........
write(6,1)
+ CoadID(i__),RAdeg(i__),DEdeg(i__),gmag(i__),gmagcor(i__),
+ mug(i__),rhlg(i__),n(i__),q(i__),log_Sigma_(i__),rchi2g(i__),
+ imag(i__),imagcor(i__),mui(i__),rhli(i__),rchi2i(i__)
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