Conversion of standardized ReadMe file for
file /./ftp/cats/J/A_A/669/A32 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-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 ! ("date") Observation date
real*4 Freq ! (GHz) Frequency (4.8, 8.0 or 14.5)
real*4 UT ! U.T.
real*4 S ! (Jy) Flux density at Freq
real*4 e_S ! (Jy) Error on Flux density at Freq
integer*4 N ! [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 ! (d) [54473.03/58871.3] MJD observation date
real*8 Flux ! (Jy) [13.78/41.93] Flux at 15GHz
real*8 e_Flux ! (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 ! (yr) [1979.81/2021.75] Time (Decimal year)
character*19 Time ! Time
character*4 Source ! Source
integer*4 Freq_1 ! (GHz) [37] Frequency
character*8 Catalog ! Catalog (Kurp or KURP-GIX)
real*4 Flux_1 ! (Jy) [7.13/60.53] Flux at 37GHz
real*4 e_Flux_1 ! (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 ! (deg) Right Ascension J2000
real*8 DEdeg ! (deg) Declination J2000
C ---------------------------------- ! (position vector(s) in degrees)
character*11 Band ! Band (ALMA-Band 3, ALMA-Band 6 or ALMA-Band 7)
character*4 Cat ! Catalogue name
character*20 Obs_date_1 ! Observation date
integer*4 RAh ! (h) Right ascension (J2000)
integer*4 RAm ! (min) Right ascension (J2000)
real*8 RAs ! (s) Right ascension (J2000)
real*4 e_RAs ! (arcsec) [0.0/0.01] Right ascension uncertainty
character*1 DE_ ! Declination sign (J2000)
integer*4 DEd ! (deg) Declination (J2000)
integer*4 DEm ! (arcmin) Declination (J2000)
real*8 DEs ! (arcsec) Declination (J2000)
real*4 e_DEs ! (arcsec) [0.0/0.01] Declination uncertainty
real*4 Flux_2 ! (Jy) [3.8/26.1] Flux density at Band
real*8 e_Flux_2 ! (Jy) [0.09/2.43] Flux density at Band uncertainty
real*4 Freq_2 ! (Hz) [91460000000.0/349500000000.0] Frequency
real*8 MaxUV ! ?=- UV Max (in klambda unit)
character*50 Names ! 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 ! Band (1mm or 850)
character*11 Obs_date_2 ! ("date") UT observation date
character*5 Obs_time ! ("h:m") Time (hh:mm)
character*3 Inst ! [SMA] Instrument
real*4 Freq_3 ! (GHz) [205.99/362.48] Frequency
real*4 Flux_3 ! (Jy) [0.08/17.12] Flux at Freq
real*4 e_Flux_3 ! (Jy) [0.1/1.26] Error on Flux at Freq
character*8 PI ! 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 ! ("date") Date (UTC)
integer*4 JD ! (d) [2454687/2459559] Julian Date
integer*4 MET ! Mission elapsed time
real*8 TS ! (s) Total duration
character*1 l_PhFlux ! Limit flag on PhotonFlux
real*4 PhFlux ! (ph/cm2/s) Photon Flux in 0.1-100GeV band
real*4 e_PhFlux ! (ph/cm2/s) ?=- Error on PhFlux
real*4 phIndex ! ?=- Photon Index
real*4 FitTol ! [0.0/0.01]?=- Fit Tolerance
integer*4 MINUIT ! MINUIT Return Code
character*10 AnalysisLog ! 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,Freq,UT,S,e_S,N
c ..............Just test output...........
write(6,1)Obs_date,Freq,UT,S,e_S,N
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,Flux,e_Flux
c ..............Just test output...........
write(6,2)MJD,Flux,e_Flux
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,Time,Source,Freq_1,Catalog,Flux_1,e_Flux_1
c ..............Just test output...........
write(6,3)Date,Time,Source,Freq_1,Catalog,Flux_1,e_Flux_1
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,Cat,Obs_date_1,RAh,RAm,RAs,e_RAs,DE_,DEd,DEm,DEs,e_DEs,
+ Flux_2,e_Flux_2,Freq_2,MaxUV,Names
if (idig(ar__3(143:149)).EQ.0) MaxUV = 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,4)
+ Band,Cat,Obs_date_1,RAh,RAm,RAs,e_RAs,DE_,DEd,DEm,DEs,e_DEs,
+ Flux_2,e_Flux_2,Freq_2,MaxUV,Names
write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
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,Obs_date_2,Obs_time,Inst,Freq_3,Flux_3,e_Flux_3,PI
c ..............Just test output...........
write(6,5)
+ Band_1,Obs_date_2,Obs_time,Inst,Freq_3,Flux_3,e_Flux_3,PI
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,JD,MET,TS,l_PhFlux,PhFlux,e_PhFlux,phIndex,FitTol,
+ MINUIT,AnalysisLog
if (idig(ar__5(49:55)).EQ.0) e_PhFlux = rNULL__
if (idig(ar__5(57:61)).EQ.0) phIndex = rNULL__
if (idig(ar__5(63:66)).EQ.0) FitTol = rNULL__
c ..............Just test output...........
write(6,6)
+ Date_1,JD,MET,TS,l_PhFlux,PhFlux,e_PhFlux,phIndex,FitTol,
+ MINUIT,AnalysisLog
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