Conversion of standardized ReadMe file for
file /./ftp/cats/J/MNRAS/427/1666 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-Jul-13
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/427/1666 Massive galaxies in CANDELS-UDS field (Bruce+, 2012)
*================================================================================
*The morphologies of massive galaxies at 1 < z < 3 in the CANDELS-UDS field:
*compact bulges, and the rise and fall of massive discs.
* Bruce V.A., Dunlop J.S., Cirasuolo M., McLure R.J., Targett T.A.,
* Bell E.F., Croton D.J., Dekel A., Faber S.M., Ferguson H.C., Grogin N.A.,
* Kocevski D.D., Koekemoer A.M., Koo D.C., Lai K., Lotz J.M., McGrath E.J.,
* Newman J.A., van der Wel A.
* <Mon. Not. R. Astron. Soc., 427, 1666-1701 (2012)>
* =2012MNRAS.427.1666B
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'tables1.dat' ! Physical properties and best-fitting parameters
integer*4 nr__
parameter (nr__=215) ! Number of records
character*113 ar__ ! Full-size record
C J2000 position composed of: RAh RAm RAs DE- DEd DEm DEs
real*8 RAdeg ! (deg) Right Ascension J2000
real*8 DEdeg ! (deg) Declination J2000
C ---------------------------------- ! (position vector(s) in degrees)
integer*4 ID ! [100222/123457] Galaxy identification number
integer*4 RAh ! (h) Right ascension (J2000)
integer*4 RAm ! (min) Right ascension (J2000)
real*4 RAs ! (s) Right ascension (J2000)
character*1 DE_ ! Declination sign (J2000)
integer*4 DEd ! (deg) Declination (J2000)
integer*4 DEm ! (arcmin) Declination (J2000)
real*4 DEs ! (arcsec) Declination (J2000)
real*4 M_ ! (10+11Msun) Stellar mass (1)
real*4 zph ! [1/3] Photometric redshift (2)
real*4 Hmag ! (mag) HST/WFC3 IR H160 total magnitude (3)
real*4 n ! [0/20] Single Sersic index (4)
real*4 re ! (kpc) Single Sersic effective radius (4)
real*4 b_a ! [0/1] Single Sersic axial ratio (4)
real*4 PSFn ! [0/1] Single Sersic PSF fraction (4)
integer*4 F ! [0/1] unacceptable single component model (4)
real*4 Mod ! [0/4] Model type (0.0, 1.0 or 4.0;
* not explained in the paper)
real*4 reB ! (kpc) ?=- Bulge effective radius
real*4 b_aB ! ?=- Bulge axial ratio
real*4 reD ! (kpc) ?=- Disc effective radius
real*4 b_aD ! [0/1]? Disc axial ratio
real*4 Bulge ! [0/1] Bulge fraction
real*4 Disc ! [0/1] Disc fraction
real*4 PSF ! [0/1] PSF fraction
integer*4 F0 ! [0/1] Flag original
integer*4 F1 ! [0/1] Flag first refinement
integer*4 F2 ! [0/1] Flag final refinement
*Note (1): Errors on photometric redshifts are of the order of
* {delta}z/(1+z_sp_)=0.05, from Cirasuolo et al. (in preparation).
*Note (2): We quote errors on our stellar mass estimates of a factor of 2
* (Michalowski et al., 2012A&A...541A..85M), where these are driven by
* uncertainties in the photometry from the IRAC bands and from photometric
* redshifts.
*Note (3): We estimate errors on our total magnitudes of order +/-0.05mag, as
* our sample of galaxies are at the extreme bright end (>10{sigma}) so their
* errors are limited to uncertainties in photometric zero-points.
*Note (4): Obtaining individual uncertainties for all the parameters of
* multiple-component fits listed here is impractical as the degree of
* systematic and correlated errors varies on an object-by-object basis.
* However, from the detailed parameter space search conducted for our
* single-Sersic models, we determined errors of the order of 10% for
* effective radii and 5% for Sersic indices, with errors being somewhat
* smaller for better constrained parameters such as axial ratios.
* Therefore, we estimate that the multiple-component errors will be a
* factor of sqrt(2) larger, giving errors on fitted parameters up to
* 15%. However, we note that in the case of weak secondary components
* the errors can potentially be much larger, but as our science plots
* use only parameters from significant components the errors should be
* similar to those of the single component models.
C=============================================================================
C Loading file 'tables1.dat' ! Physical properties and best-fitting parameters
C Format for file interpretation
1 format(
+ I6,1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F4.1,1X,F4.2,1X,F4.2,
+ 1X,F5.2,1X,F4.1,1X,F4.1,1X,F4.2,1X,F4.2,1X,I1,1X,F3.1,1X,F4.1,
+ 1X,F4.2,1X,F4.1,1X,F4.2,1X,F4.2,1X,F4.2,1X,F4.2,1X,I1,1X,I1,
+ 1X,I1)
C Effective file loading
open(unit=1,status='old',file=
+'tables1.dat')
write(6,*) '....Loading file: tables1.dat'
do i__=1,215
read(1,'(A113)')ar__
read(ar__,1)
+ ID,RAh,RAm,RAs,DE_,DEd,DEm,DEs,M_,zph,Hmag,n,re,b_a,PSFn,F,
+ Mod,reB,b_aB,reD,b_aD,Bulge,Disc,PSF,F0,F1,F2
if (idig(ar__(74:77)).EQ.0) reB = rNULL__
if (idig(ar__(79:82)).EQ.0) b_aB = rNULL__
if (idig(ar__(84:87)).EQ.0) reD = rNULL__
if(ar__(89:92) .EQ. '') b_aD = rNULL__
RAdeg = rNULL__
DEdeg = rNULL__
c Derive coordinates RAdeg and DEdeg from input data
c (RAdeg and DEdeg are set to rNULL__ when unknown)
if(RAh .GT. -180) RAdeg=RAh*15.
if(RAm .GT. -180) RAdeg=RAdeg+RAm/4.
if(RAs .GT. -180) RAdeg=RAdeg+RAs/240.
if(DEd .GE. 0) DEdeg=DEd
if(DEm .GE. 0) DEdeg=DEdeg+DEm/60.
if(DEs .GE. 0) DEdeg=DEdeg+DEs/3600.
if(DE_.EQ.'-'.AND.DEdeg.GE.0) DEdeg=-DEdeg
c ..............Just test output...........
write(6,1)
+ ID,RAh,RAm,RAs,DE_,DEd,DEm,DEs,M_,zph,Hmag,n,re,b_a,PSFn,F,
+ Mod,reB,b_aB,reD,b_aD,Bulge,Disc,PSF,F0,F1,F2
write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
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