Conversion of standardized ReadMe file for
file /./ftp/cats/J/A_A/653/A167 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-Aug-12
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/653/A167 Fornax3D PNe Catalogue (Spriggs+, 2021)
*================================================================================
*The Fornax3D project: Planetary nebulae catalogue and independent distance
*measurements to Fornax cluster galaxies.
* Spriggs T.W., Sarzi M., Galan-de Anta P.M., Napiwotzki R., Viaene S.,
* Nedelchev B., Coccato L., Corsini E.M., Fahrion K., Falcon-Barroso J.,
* Gadotti D.A., Iodice E., Lyubenova M., Martin-Navarro I., McDermid R.M.,
* Morelli L., Pinna F., van de Ven G., de Zeeuw P.T., Zhu L.
* <Astron. Astrophys. 653, A167 (2021)>
* =2021A&A...653A.167S (SIMBAD/NED BibCode)
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table1.dat' ! PNe numbers and distances to each ETG
integer*4 nr__
parameter (nr__=36) ! Number of records
character*94 ar__ ! Full-size record
character*6 Galaxy (nr__) ! Galaxy name
character*6 Loc (nr__) ! Location (center, middle or halo)
integer*4 NPNe (nr__) ! Number of detected PNe
integer*4 N2_5 (nr__) ! Expected number of PNe (from PNLF) within
* 2.5mag of the bright-end cut-off
integer*4 E_N2_5 (nr__) ! Error on N2.5 (upper value)
integer*4 e_N2_5_1 (nr__) ! Error on N2.5 (lower value)
real*4 rhoPNLF (nr__) ! (mag) ?=- PNLF derived distance modulus
real*4 E_rhoPNLF (nr__) ! (mag) ? Error on rhoPNLF (upper value)
real*4 e_rhoPNLF_1(nr__) ! (mag) ? Error on rhoPNLF (lower value)
real*4 DPNLF (nr__) ! (Mpc) ?=- PNLF derived distance modulus
* corresponding distance in Mpc
real*4 E_DPNLF (nr__) ! (Mpc) ? Error on rhoPNLF (upper value)
real*4 e_DPNLF_1 (nr__) ! (Mpc) ? Error on rhoPNLF (lower value)
real*4 rhoSBF (nr__) ! (mag) ?=- Latest distance modulus values of
* Blakeslee et al. (2009ApJ...694..556B,
* 2010ApJ...724..657B)
real*4 e_rhoSBF (nr__) ! (mag) ? rms uncertainty on rhoSBF
real*4 rhoCF2 (nr__) ! (mag) ?=- Latest distance modulus values from the
* CosmicFlows-3 catalogue (Tully et al.,
* 2016AJ....152...50T, Cat. J/AJ/152/50)
real*4 e_rhoCF2 (nr__) ! (mag) ? rms uncertainty on rhoCF2
character*12 AName (nr__) ! Alternative name for simpler identification
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'catalog.dat' ! Fornax3D PNe catalogue (tables A1-A36)
integer*4 nr__1
parameter (nr__1=1484) ! Number of records
character*112 ar__1 ! Full-size record
C J2000 position composed of: RAh RAm RAs DE- DEd DEm DEs
real*8 RAdeg (nr__1) ! (deg) Right Ascension J2000
real*8 DEdeg (nr__1) ! (deg) Declination J2000
C ---------------------------------- ! (position vector(s) in degrees)
character*6 Galaxy_1 (nr__1) ! Galaxy name
character*6 Loc_1 (nr__1) ! Location (center, middle or halo)
character*24 PN (nr__1) ! Unique Planetary Nebulae ID, using IAU
* standards (F3D JHHMMSS.ss+DDMMSS.ss)
integer*4 RAh (nr__1) ! (h) Right Ascension (J2000)
integer*4 RAm (nr__1) ! (min) Right Ascension (J2000)
real*4 RAs (nr__1) ! (s) Right Ascension (J2000)
character*1 DE_ (nr__1) ! Declination sign (J2000)
integer*4 DEd (nr__1) ! (deg) Declination (J2000)
integer*4 DEm (nr__1) ! (arcmin) Declination (J2000)
real*4 DEs (nr__1) ! (arcsec) Declination (J2000)
real*4 m5007 (nr__1) ! (mag) Apparent magnitude in 5007{AA}
real*4 e_m5007 (nr__1) ! (mag) Error in apparent magnitude in 5007{AA}
real*4 A_rN (nr__1) ! Amplitude over residual noise ratio
real*4 LOSV (nr__1) ! (km/s) Observed line of sight velocity
real*4 e_LOSV (nr__1) ! (km/s) Error in observed line of sight velocity
character*6 label (nr__1) ! Identifier (1)
character*11 index (nr__1) ! Planetary Nebulae indexing system (2)
*Note (1): Identifier as follows:
* PN = Planetary Nebula
* SNR = SuperNova Remnant
* HII = compact HII region
* interl = interloper
* OvLu = Over-luminous source
*Note (2): Planetary Nebulae indexing system:
* C-00 is center, M-00 is middle and H-00 is halo.
C=============================================================================
C Loading file 'table1.dat' ! PNe numbers and distances to each ETG
C Format for file interpretation
1 format(
+ A6,1X,A6,1X,I3,1X,I3,1X,I2,1X,I2,1X,F5.2,1X,F4.2,1X,F4.2,1X,
+ F5.2,1X,F4.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,A12)
C Effective file loading
open(unit=1,status='old',file=
+'table1.dat')
write(6,*) '....Loading file: table1.dat'
do i__=1,36
read(1,'(A94)')ar__
read(ar__,1)
+ Galaxy(i__),Loc(i__),NPNe(i__),N2_5(i__),E_N2_5(i__),
+ e_N2_5_1(i__),rhoPNLF(i__),E_rhoPNLF(i__),e_rhoPNLF_1(i__),
+ DPNLF(i__),E_DPNLF(i__),e_DPNLF_1(i__),rhoSBF(i__),
+ e_rhoSBF(i__),rhoCF2(i__),e_rhoCF2(i__),AName(i__)
if (idig(ar__(29:33)).EQ.0) rhoPNLF(i__) = rNULL__
if(ar__(35:38) .EQ. '') E_rhoPNLF(i__) = rNULL__
if(ar__(40:43) .EQ. '') e_rhoPNLF_1(i__) = rNULL__
if (idig(ar__(45:49)).EQ.0) DPNLF(i__) = rNULL__
if(ar__(51:54) .EQ. '') E_DPNLF(i__) = rNULL__
if(ar__(56:59) .EQ. '') e_DPNLF_1(i__) = rNULL__
if (idig(ar__(61:65)).EQ.0) rhoSBF(i__) = rNULL__
if(ar__(67:70) .EQ. '') e_rhoSBF(i__) = rNULL__
if (idig(ar__(72:76)).EQ.0) rhoCF2(i__) = rNULL__
if(ar__(78:81) .EQ. '') e_rhoCF2(i__) = rNULL__
c ..............Just test output...........
write(6,1)
+ Galaxy(i__),Loc(i__),NPNe(i__),N2_5(i__),E_N2_5(i__),
+ e_N2_5_1(i__),rhoPNLF(i__),E_rhoPNLF(i__),e_rhoPNLF_1(i__),
+ DPNLF(i__),E_DPNLF(i__),e_DPNLF_1(i__),rhoSBF(i__),
+ e_rhoSBF(i__),rhoCF2(i__),e_rhoCF2(i__),AName(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'catalog.dat' ! Fornax3D PNe catalogue (tables A1-A36)
C Format for file interpretation
2 format(
+ A6,1X,A6,2X,A24,1X,I2,1X,I2,1X,F5.2,2X,A1,I2,1X,I2,1X,F5.2,2X,
+ F5.2,1X,F4.2,1X,F4.1,1X,F6.1,1X,F3.1,1X,A6,1X,A11)
C Effective file loading
open(unit=1,status='old',file=
+'catalog.dat')
write(6,*) '....Loading file: catalog.dat'
do i__=1,1484
read(1,'(A112)')ar__1
read(ar__1,2)
+ Galaxy_1(i__),Loc_1(i__),PN(i__),RAh(i__),RAm(i__),RAs(i__),
+ DE_(i__),DEd(i__),DEm(i__),DEs(i__),m5007(i__),e_m5007(i__),
+ A_rN(i__),LOSV(i__),e_LOSV(i__),label(i__),index(i__)
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,2)
+ Galaxy_1(i__),Loc_1(i__),PN(i__),RAh(i__),RAm(i__),RAs(i__),
+ DE_(i__),DEd(i__),DEm(i__),DEs(i__),m5007(i__),e_m5007(i__),
+ A_rN(i__),LOSV(i__),e_LOSV(i__),label(i__),index(i__)
write(6,'(6H Pos: 2F8.4)') RAdeg(i__),DEdeg(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