Conversion of standardized ReadMe file for
file /./ftp/cats/J/MNRAS/414/2528 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.5, on 2013-May-22
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__=-1.e37) ! NULL real number
parameter (iNULL__=-2147483647) ! NULL int number
C=============================================================================
Cat. J/MNRAS/414/2528 LBA Calibrator Survey (LCS1) (Petrov+, 2011)
*================================================================================
*The LBA Calibrator Survey of southern compact extragalactic radio sources. LCS1.
* Petrov L., Phillips C., Bertarini A., Murphy T., Sadler E.M.
* <Mon. Not. R. Astron. Soc. 414, 2528 (2011)>
* =2011MNRAS.414.2528P
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table3.dat' ! The list of target sources that were not
detected in LCS1 VLBI observations
integer*4 nr__
parameter (nr__=11) ! Number of records
character*57 ar__ ! Full-size record
real*8 RA_ ! (deg) Right Ascension J2000.0
real*8 Dec ! (deg) Declination J2000.0
character*10 Jname ! IAU J2000 source name
character*8 Bname ! IVS B1950 source name
integer*4 RAh ! (h) Right ascension (J2000.0)
integer*4 RAm ! (min) Right ascension (J2000.0)
real*4 RAs ! (s) Right ascension (J2000.0)
character*1 DE_ ! Declination sign (J2000.0)
integer*4 DEd ! (deg) Declination (J2000.0)
integer*4 DEm ! (arcmin) Declination (J2000.0)
real*4 DEs ! (arcsec) Declination (J2000.0)
real*4 S8_3 ! (mJy) Flux density in mJy extrapolated to 8.3GHz
real*4 alpha ! ?=-9.99 Spectral index {alpha}
* (in sense S({nu}){prop.to}{nu}^{alpha}^)
integer*4 Comm ! Comment flag (1)
*Note (1): Flag as follows:
* 1 = not in the AT20G catalogue
* 2 = flagged as an LMC source in the AT20G catalogue
* 3 = Galactic planetary nebula
* 4 = flagged as an extended source in the AT20G catalogue
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table5.dat' ! *Catalogue of source-correlated flux-density
estimates for both 410 target sources and 111
calibrator sources in each experiment
integer*4 nr__1
parameter (nr__1=633) ! Number of records
character*83 ar__1 ! Full-size record
character*10 Jname_1 ! IAU J2000 source name
character*8 Bname_1 ! IVS B1950 source name
character*10 Date ! ("YYYY/MM/DD") Observation date
character*3 St_ ! [Cal ] "Cal" if it was used as an amplitude
* calibrator
integer*4 Nobs ! Number of used observations
real*4 Flux1 ! (Jy) Median correlated 8.3GHz flux density at
* baseline project length range 0-6M{lambda}
real*4 Flux2 ! (Jy) ?=-1. Median correlated 8.3GHz flux density at
* baseline project length range 0-19M{lambda}
real*4 Flux3 ! (Jy) Median correlated 8.3GHz flux density at
* baseline project length range 19-44M{lambda}
real*4 e_Flux1 ! (Jy) rms uncertainty on Flux1
real*4 e_Flux2 ! (Jy) ?=-1. rms uncertainty on Flux2
real*4 e_Flux3 ! (Jy) ?=-1. rms uncertainty on Flux3
character*5 Exp ! Experiment name
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table6.dat' ! LCS1 catalogue
integer*4 nr__2
parameter (nr__2=410) ! Number of records
character*117 ar__2 ! Full-size record
real*8 RA__1 ! (deg) Right Ascension J2000.0
real*8 Dec_1 ! (deg) Declination J2000.0
character*10 Jname_2 ! IAU J2000 source name
character*8 Bname_2 ! IVS B1950 source name
integer*4 RAh_1 ! (h) Right ascension (J2000.0)
integer*4 RAm_1 ! (min) Right ascension (J2000.0)
real*8 RAs_1 ! (s) Right ascension (J2000.0)
character*1 DE__1 ! Declination sign (J2000.0)
integer*4 DEd_1 ! (deg) Declination (J2000.0)
integer*4 DEm_1 ! (arcmin) Declination (J2000.0)
real*8 DEs_1 ! (arcsec) Declination (J2000.0)
real*4 e_RAs ! (mas) Inflated right ascension position uncertainty
* (without cos(delta) factor)
real*4 e_DEs ! (mas) Inflated declination position uncertainty
real*4 Corr ! [-1,1] Correlation between estimates of right
* ascension and declination
integer*4 Nobs_1 ! Number of used observations
real*4 Flux1_1 ! (Jy) Median correlated 8.3GHz flux density at
* baseline project length range 0-6M{lambda}
real*4 Flux2_1 ! (Jy) Median correlated 8.3GHz flux density at
* baseline project length range 0-19M{lambda}
real*4 Flux3_1 ! (Jy) Median correlated 8.3GHz flux density at
* baseline project length range 19-44M{lambda}
real*4 e_Flux1_1 ! (Jy) rms uncertainty on Flux1
real*4 e_Flux2_1 ! (Jy) ?=-1. rms uncertainty on Flux2
real*4 e_Flux3_1 ! (Jy) ?=-1. rms uncertainty on Flux3
C=============================================================================
C Loading file 'table3.dat' ! The list of target sources that were not
* detected in LCS1 VLBI observations
C Format for file interpretation
1 format(
+ A10,1X,A8,1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F4.1,1X,F5.1,
+ 1X,F5.2,1X,I1)
C Effective file loading
open(unit=1,file='table3.dat', status='old')
write(6,*) '....Loading file: table3.dat'
do i__=1,11
read(1,'(A57)')ar__
read(ar__,1)
+ Jname,Bname,RAh,RAm,RAs,DE_,DEd,DEm,DEs,S8_3,alpha,Comm
c Derive coordinates RA_ and Dec from input data
c (RA_ and Dec are set to rNULL_ when unknown)
RA_ = RAh
if(RAh .GE. 0) RA_=RAh*15.
if(RAm .GE. 0) RA_=RA_+RAm/4.
if(RAs .GE. 0) RA_=RA_+RAs/240.
Dec = DEd
if(DEm .GE. 0) Dec=Dec+DEm/60.
if(DEs .GE. 0) Dec=Dec+DEs/3600.
if(DE_.EQ.'-'.AND.Dec.GE.0) Dec=-Dec
c ..............Just test output...........
write(6,1)
+ Jname,Bname,RAh,RAm,RAs,DE_,DEd,DEm,DEs,S8_3,alpha,Comm
write(6,'(6H Pos: 2F8.4)') RA_,Dec
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table5.dat' ! *Catalogue of source-correlated flux-density
* estimates for both 410 target sources and 111
* calibrator sources in each experiment
C Format for file interpretation
2 format(
+ A10,1X,A8,1X,A10,1X,A3,1X,I2,1X,F5.3,1X,F6.3,1X,F6.3,1X,F5.3,
+ 1X,F6.3,1X,F6.3,1X,A5)
C Effective file loading
open(unit=1,file='table5.dat', status='old')
write(6,*) '....Loading file: table5.dat'
do i__=1,633
read(1,'(A83)')ar__1
read(ar__1,2)
+ Jname_1,Bname_1,Date,St_,Nobs,Flux1,Flux2,Flux3,e_Flux1,
+ e_Flux2,e_Flux3,Exp
c ..............Just test output...........
write(6,2)
+ Jname_1,Bname_1,Date,St_,Nobs,Flux1,Flux2,Flux3,e_Flux1,
+ e_Flux2,e_Flux3,Exp
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table6.dat' ! LCS1 catalogue
C Format for file interpretation
3 format(
+ A10,1X,A8,1X,I2,1X,I2,1X,F8.5,1X,A1,I2,1X,I2,1X,F7.4,1X,F6.2,
+ 1X,F6.2,1X,F6.3,1X,I4,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,
+ 1X,F6.3)
C Effective file loading
open(unit=1,file='table6.dat', status='old')
write(6,*) '....Loading file: table6.dat'
do i__=1,410
read(1,'(A117)')ar__2
read(ar__2,3)
+ Jname_2,Bname_2,RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,DEs_1,
+ e_RAs,e_DEs,Corr,Nobs_1,Flux1_1,Flux2_1,Flux3_1,e_Flux1_1,
+ e_Flux2_1,e_Flux3_1
c Derive coordinates RA__1 and Dec_1 from input data
c (RA__1 and Dec_1 are set to rNULL_ when unknown)
RA__1 = RAh_1
if(RAh_1 .GE. 0) RA__1=RAh_1*15.
if(RAm_1 .GE. 0) RA__1=RA__1+RAm_1/4.
if(RAs_1 .GE. 0) RA__1=RA__1+RAs_1/240.
Dec_1 = DEd_1
if(DEm_1 .GE. 0) Dec_1=Dec_1+DEm_1/60.
if(DEs_1 .GE. 0) Dec_1=Dec_1+DEs_1/3600.
if(DE__1.EQ.'-'.AND.Dec_1.GE.0) Dec_1=-Dec_1
c ..............Just test output...........
write(6,3)
+ Jname_2,Bname_2,RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,DEs_1,
+ e_RAs,e_DEs,Corr,Nobs_1,Flux1_1,Flux2_1,Flux3_1,e_Flux1_1,
+ e_Flux2_1,e_Flux3_1
write(6,'(6H Pos: 2F8.4)') RA__1,Dec_1
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end