Conversion of standardized ReadMe file for
file /./ftp/cats/J/A_A/669/A32 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/669/A32 3C 84 multi-band study (Paraschos+, 2023)
*================================================================================
*A multi-band study and exploration of the radio wave-gamma-ray connection
*in 3C 84.
* Paraschos G.F., Mpisketzis V., Kim J.-Y., Witzel G., Krichbaum T.P.,
* Zensus J.A., Gurwell M.A., Laehteenmaeki A., Tornikoski M., Kiehlmann S.,
* Readhead A.C.S.
* <Astron. Astrophys. 669, A32 (2023)>
* =2023A&A...669A..32P (SIMBAD/NED BibCode)
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'umrao.dat' ! UMRAO 4.8, 8.0 & 14.8 GHz
integer*4 nr__
parameter (nr__=4505) ! Number of records
character*35 ar__ ! Full-size record
character*10 Obs_date (nr__) ! ("date") Observation date
real*4 Freq (nr__) ! (GHz) Frequency (4.8, 8.0 or 14.5)
real*4 UT (nr__) ! U.T.
real*4 S (nr__) ! (Jy) Flux density at Freq
real*4 e_S (nr__) ! (Jy) Error on Flux density at Freq
integer*4 N (nr__) ! [1/8] N
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'ovro.dat' ! OVRO 15 GHz
integer*4 nr__1
parameter (nr__1=784) ! Number of records
character*57 ar__1 ! Full-size record
real*8 MJD (nr__1) ! (d) [54473.03/58871.3] MJD observation date
real*8 Flux (nr__1) ! (Jy) [13.78/41.93] Flux at 15GHz
real*8 e_Flux (nr__1) ! (Jy) [0.11/1.68] Flux at 15GHz error
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'mro.dat' ! MRO 37 GHz
integer*4 nr__2
parameter (nr__2=8907) ! Number of records
character*59 ar__2 ! Full-size record
real*8 Date (nr__2) ! (yr) [1979.81/2021.75] Time (Decimal year)
character*19 Time (nr__2) ! Time
character*4 Source (nr__2) ! Source
integer*4 Freq_1 (nr__2) ! (GHz) [37] Frequency
character*8 Catalog (nr__2) ! Catalog (Kurp or KURP-GIX)
real*4 Flux_1 (nr__2) ! (Jy) [7.13/60.53] Flux at 37GHz
real*4 e_Flux_1 (nr__2) ! (Jy) [0.1/2.03] Error on Flux at 37GHz
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'alma.dat' ! ALMA 91.5 GHz
integer*4 nr__3
parameter (nr__3=492) ! Number of records
character*200 ar__3 ! Full-size record
C J2000 position composed of: RAh RAm RAs DE- DEd DEm DEs
real*8 RAdeg (nr__3) ! (deg) Right Ascension J2000
real*8 DEdeg (nr__3) ! (deg) Declination J2000
C ---------------------------------- ! (position vector(s) in degrees)
character*11 Band (nr__3) ! Band (ALMA-Band 3, ALMA-Band 6 or ALMA-Band 7)
character*4 Cat (nr__3) ! Catalogue name
character*20 Obs_date_1 (nr__3) ! Observation date
integer*4 RAh (nr__3) ! (h) Right ascension (J2000)
integer*4 RAm (nr__3) ! (min) Right ascension (J2000)
real*8 RAs (nr__3) ! (s) Right ascension (J2000)
real*4 e_RAs (nr__3) ! (arcsec) [0.0/0.01] Right ascension uncertainty
character*1 DE_ (nr__3) ! Declination sign (J2000)
integer*4 DEd (nr__3) ! (deg) Declination (J2000)
integer*4 DEm (nr__3) ! (arcmin) Declination (J2000)
real*8 DEs (nr__3) ! (arcsec) Declination (J2000)
real*4 e_DEs (nr__3) ! (arcsec) [0.0/0.01] Declination uncertainty
real*4 Flux_2 (nr__3) ! (Jy) [3.8/26.1] Flux density at Band
real*8 e_Flux_2 (nr__3) ! (Jy) [0.09/2.43] Flux density at Band uncertainty
real*4 Freq_2 (nr__3) ! (Hz) [91460000000.0/349500000000.0] Frequency
real*8 MaxUV (nr__3) ! ?=- UV Max (in klambda unit)
character*50 Names (nr__3) ! Names (separated by |)
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'sma.dat' ! SMA 230 & 345 GHz
integer*4 nr__4
parameter (nr__4=866) ! Number of records
character*54 ar__4 ! Full-size record
character*3 Band_1 (nr__4) ! Band (1mm or 850)
character*11 Obs_date_2 (nr__4) ! ("date") UT observation date
character*5 Obs_time (nr__4) ! ("h:m") Time (hh:mm)
character*3 Inst (nr__4) ! [SMA] Instrument
real*4 Freq_3 (nr__4) ! (GHz) [205.99/362.48] Frequency
real*4 Flux_3 (nr__4) ! (Jy) [0.08/17.12] Flux at Freq
real*4 e_Flux_3 (nr__4) ! (Jy) [0.1/1.26] Error on Flux at Freq
character*8 PI (nr__4) ! P.I. for flux
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'gamma.dat' ! FERMI-LAT gamma-rays
integer*4 nr__5
parameter (nr__5=689) ! Number of records
character*81 ar__5 ! Full-size record
character*11 Date_1 (nr__5) ! ("date") Date (UTC)
integer*4 JD (nr__5) ! (d) [2454687/2459559] Julian Date
integer*4 MET (nr__5) ! Mission elapsed time
real*8 TS (nr__5) ! (s) Total duration
character*1 l_PhFlux (nr__5) ! Limit flag on PhotonFlux
real*4 PhFlux (nr__5) ! (ph/cm2/s) Photon Flux in 0.1-100GeV band
real*4 e_PhFlux (nr__5) ! (ph/cm2/s) ?=- Error on PhFlux
real*4 phIndex (nr__5) ! ?=- Photon Index
real*4 FitTol (nr__5) ! [0.0/0.01]?=- Fit Tolerance
integer*4 MINUIT (nr__5) ! MINUIT Return Code
character*10 AnalysisLog(nr__5) ! Analysis Log
C=============================================================================
C Loading file 'umrao.dat' ! UMRAO 4.8, 8.0 & 14.8 GHz
C Format for file interpretation
1 format(A10,1X,F4.1,1X,F6.3,1X,F5.2,1X,F4.2,1X,I1)
C Effective file loading
open(unit=1,status='old',file=
+'umrao.dat')
write(6,*) '....Loading file: umrao.dat'
do i__=1,4505
read(1,'(A35)')ar__
read(ar__,1)
+ Obs_date(i__),Freq(i__),UT(i__),S(i__),e_S(i__),N(i__)
c ..............Just test output...........
write(6,1)
+ Obs_date(i__),Freq(i__),UT(i__),S(i__),e_S(i__),N(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'ovro.dat' ! OVRO 15 GHz
C Format for file interpretation
2 format(F18.12,1X,F18.15,1X,F19.17)
C Effective file loading
open(unit=1,status='old',file=
+'ovro.dat')
write(6,*) '....Loading file: ovro.dat'
do i__=1,784
read(1,'(A57)')ar__1
read(ar__1,2)MJD(i__),Flux(i__),e_Flux(i__)
c ..............Just test output...........
write(6,2)MJD(i__),Flux(i__),e_Flux(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'mro.dat' ! MRO 37 GHz
C Format for file interpretation
3 format(F11.6,1X,A19,1X,A4,1X,I2,1X,A8,1X,F5.2,1X,F4.2)
C Effective file loading
open(unit=1,status='old',file=
+'mro.dat')
write(6,*) '....Loading file: mro.dat'
do i__=1,8907
read(1,'(A59)')ar__2
read(ar__2,3)
+ Date(i__),Time(i__),Source(i__),Freq_1(i__),Catalog(i__),
+ Flux_1(i__),e_Flux_1(i__)
c ..............Just test output...........
write(6,3)
+ Date(i__),Time(i__),Source(i__),Freq_1(i__),Catalog(i__),
+ Flux_1(i__),e_Flux_1(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'alma.dat' ! ALMA 91.5 GHz
C Format for file interpretation
4 format(
+ A11,1X,A4,1X,A20,1X,I2,1X,I2,1X,F8.5,1X,E20.16,1X,A1,I2,1X,I2,
+ 1X,F7.4,1X,E21.16,1X,F6.3,1X,F8.6,1X,E9.5,6X,F7.1,1X,A50)
C Effective file loading
open(unit=1,status='old',file=
+'alma.dat')
write(6,*) '....Loading file: alma.dat'
do i__=1,492
read(1,'(A200)')ar__3
read(ar__3,4)
+ Band(i__),Cat(i__),Obs_date_1(i__),RAh(i__),RAm(i__),RAs(i__),
+ e_RAs(i__),DE_(i__),DEd(i__),DEm(i__),DEs(i__),e_DEs(i__),
+ Flux_2(i__),e_Flux_2(i__),Freq_2(i__),MaxUV(i__),Names(i__)
if (idig(ar__3(143:149)).EQ.0) MaxUV(i__) = rNULL__
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,4)
+ Band(i__),Cat(i__),Obs_date_1(i__),RAh(i__),RAm(i__),RAs(i__),
+ e_RAs(i__),DE_(i__),DEd(i__),DEm(i__),DEs(i__),e_DEs(i__),
+ Flux_2(i__),e_Flux_2(i__),Freq_2(i__),MaxUV(i__),Names(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 'sma.dat' ! SMA 230 & 345 GHz
C Format for file interpretation
5 format(A3,1X,A11,1X,A5,1X,A3,1X,F6.2,1X,F6.3,1X,F5.3,1X,A8)
C Effective file loading
open(unit=1,status='old',file=
+'sma.dat')
write(6,*) '....Loading file: sma.dat'
do i__=1,866
read(1,'(A54)')ar__4
read(ar__4,5)
+ Band_1(i__),Obs_date_2(i__),Obs_time(i__),Inst(i__),
+ Freq_3(i__),Flux_3(i__),e_Flux_3(i__),PI(i__)
c ..............Just test output...........
write(6,5)
+ Band_1(i__),Obs_date_2(i__),Obs_time(i__),Inst(i__),
+ Freq_3(i__),Flux_3(i__),e_Flux_3(i__),PI(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'gamma.dat' ! FERMI-LAT gamma-rays
C Format for file interpretation
6 format(
+ A11,1X,I7,1X,I9,1X,F7.2,1X,A1,E8.4,1X,E7.3,1X,F5.2,1X,E4.1,1X,
+ I3,1X,A10)
C Effective file loading
open(unit=1,status='old',file=
+'gamma.dat')
write(6,*) '....Loading file: gamma.dat'
do i__=1,689
read(1,'(A81)')ar__5
read(ar__5,6)
+ Date_1(i__),JD(i__),MET(i__),TS(i__),l_PhFlux(i__),
+ PhFlux(i__),e_PhFlux(i__),phIndex(i__),FitTol(i__),
+ MINUIT(i__),AnalysisLog(i__)
if (idig(ar__5(49:55)).EQ.0) e_PhFlux(i__) = rNULL__
if (idig(ar__5(57:61)).EQ.0) phIndex(i__) = rNULL__
if (idig(ar__5(63:66)).EQ.0) FitTol(i__) = rNULL__
c ..............Just test output...........
write(6,6)
+ Date_1(i__),JD(i__),MET(i__),TS(i__),l_PhFlux(i__),
+ PhFlux(i__),e_PhFlux(i__),phIndex(i__),FitTol(i__),
+ MINUIT(i__),AnalysisLog(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