Conversion of standardized ReadMe file for
file /./ftp/cats/J/A_A/580/A113 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-May-15
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/580/A113 A low-luminosity type-1 QSO sample. III. (Tremou+, 2015)
*================================================================================
*A low-luminosity type-1 QSO sample.
*III. Optical spectroscopic properties and activity classification.
* Tremou E., Garcia-Marin M., Zuther J., Eckart A., Valencia-Schneider M.,
* Vitale M., Shan C.
* <Astron. Astrophys., 580, A113-113 (2015)>
* =2015A&A...580A.113T (SIMBAD/NED BibCode)
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table1.dat' ! Main characteristics of the LLQSOs sample: HES
and 6dFGS names, J2000 coordinates and redshift
integer*4 nr__
parameter (nr__=99) ! Number of records
character*60 ar__ ! Full-size record
C J2000 position composed of: RAdeg DEdeg
integer*4 Seq (nr__) ! Sequential number
character*11 HES (nr__) ! HES name (HENNNN-NNN)
character*1 n_HES (nr__) ! [123] Note on HES (1)
character*1 f_Seq (nr__) ! [+] + marks galaxies for which we do not have
* HES optical spectra
character*15 v6dFGS (nr__) ! 6dFGS name (gHHMMSSs+DDMMSS)
real*8 RAdeg (nr__) ! (deg) Right ascension (J2000)
real*8 DEdeg (nr__) ! (deg) Declination (J2000)
real*4 z (nr__) ! Redshift
*Note (1): Notes as follows:
* 1 = Spectral resolution about 770km/s
* 2 = Spectral resolution about 880km/s
* 3 = Spectral resolution about 880km/s
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table4.dat' ! Fitting results of 6dFGS survey
integer*4 nr__1
parameter (nr__1=58) ! Number of records
character*82 ar__1 ! Full-size record
character*25 Com (nr__1) ! Comments (G1)
character*3 Flag (nr__1) ! [d+ ] Flag (G2)
integer*4 Seq_1 (nr__1) ! Sequential number
real*4 v_NII__Ha (nr__1) ! ?=- [NII]/H{alpha} luminosity ratio
real*4 v_OIII__Hb (nr__1) ! ?=- [OIII]/H{beta} luminosity ratio
real*4 v_SII__Ha (nr__1) ! ?=- [SII]/H{alpha} luminosity ratio
real*4 v_OI__Ha (nr__1) ! ?=- [OI]/H{alpha} luminosity ratio
real*4 FWHMHan (nr__1) ! (km/s) ?=- Narrow component H{alpha} FWHM
real*8 FWHMHab (nr__1) ! (km/s) ?=- Broad component H{alpha} FWHM
character*1 u_FWHMHab (nr__1) ! [?] Uncertainty flag on FWHMHab
real*4 FWHMHbn (nr__1) ! ?=- Narrow component H{beta} FWHM
real*8 FWHMHbB (nr__1) ! ?=- Broad component H{beta} FWHM
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table5.dat' ! Fitting results of HES survey
integer*4 nr__2
parameter (nr__2=72) ! Number of records
character*76 ar__2 ! Full-size record
character*18 Com_1 (nr__2) ! Comments (G1)
character*2 Flag_1 (nr__2) ! [d+ ] Flag (G2)
integer*4 Seq_2 (nr__2) ! sequential number
real*4 v_NII__Ha_1(nr__2) ! ?=- [NII]/H{alpha} luminosity ratio
real*4 v_OIII__Hb_1(nr__2) ! ?=- [OIII]/H{beta} luminosity ratio
integer*4 FWHMHan_1 (nr__2) ! (km/s) ?=- Narrow component H{alpha} FWHM
integer*4 FWHMHab_1 (nr__2) ! (km/s) ?=- Broad component H{alpha} FWHM
integer*4 FWHMHbn_1 (nr__2) ! (km/s) ?=- Narrow component H{beta} FWHM
integer*4 FWHMHbb_1 (nr__2) ! (km/s) ?=- Broad component H{beta} FWHM
character*20 Note (nr__2) ! Notes
C=============================================================================
C Loading file 'table1.dat' ! Main characteristics of the LLQSOs sample: HES
* and 6dFGS names, J2000 coordinates and redshift
C Format for file interpretation
1 format(I2,1X,A11,1X,A1,A1,1X,A15,1X,F9.5,1X,F9.5,1X,F6.4)
C Effective file loading
open(unit=1,status='old',file=
+'table1.dat')
write(6,*) '....Loading file: table1.dat'
do i__=1,99
read(1,'(A60)')ar__
read(ar__,1)
+ Seq(i__),HES(i__),n_HES(i__),f_Seq(i__),v6dFGS(i__),
+ RAdeg(i__),DEdeg(i__),z(i__)
c ..............Just test output...........
write(6,1)
+ Seq(i__),HES(i__),n_HES(i__),f_Seq(i__),v6dFGS(i__),
+ RAdeg(i__),DEdeg(i__),z(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table4.dat' ! Fitting results of 6dFGS survey
C Format for file interpretation
2 format(
+ A25,A3,1X,I2,1X,F4.2,1X,F5.2,1X,F4.2,1X,F4.2,1X,F5.1,1X,F7.1,
+ A1,F6.1,2X,F7.1)
C Effective file loading
open(unit=1,status='old',file=
+'table4.dat')
write(6,*) '....Loading file: table4.dat'
do i__=1,58
read(1,'(A82)')ar__1
read(ar__1,2)
+ Com(i__),Flag(i__),Seq_1(i__),v_NII__Ha(i__),v_OIII__Hb(i__),
+ v_SII__Ha(i__),v_OI__Ha(i__),FWHMHan(i__),FWHMHab(i__),
+ u_FWHMHab(i__),FWHMHbn(i__),FWHMHbB(i__)
if (idig(ar__1(33:36)).EQ.0) v_NII__Ha(i__) = rNULL__
if (idig(ar__1(38:42)).EQ.0) v_OIII__Hb(i__) = rNULL__
if (idig(ar__1(44:47)).EQ.0) v_SII__Ha(i__) = rNULL__
if (idig(ar__1(49:52)).EQ.0) v_OI__Ha(i__) = rNULL__
if (idig(ar__1(54:58)).EQ.0) FWHMHan(i__) = rNULL__
if (idig(ar__1(60:66)).EQ.0) FWHMHab(i__) = rNULL__
if (idig(ar__1(68:73)).EQ.0) FWHMHbn(i__) = rNULL__
if (idig(ar__1(76:82)).EQ.0) FWHMHbB(i__) = rNULL__
c ..............Just test output...........
write(6,2)
+ Com(i__),Flag(i__),Seq_1(i__),v_NII__Ha(i__),v_OIII__Hb(i__),
+ v_SII__Ha(i__),v_OI__Ha(i__),FWHMHan(i__),FWHMHab(i__),
+ u_FWHMHab(i__),FWHMHbn(i__),FWHMHbB(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table5.dat' ! Fitting results of HES survey
C Format for file interpretation
3 format(A18,A2,1X,I2,1X,F4.2,1X,F5.2,1X,I4,1X,I5,1X,I4,1X,I5,A20)
C Effective file loading
open(unit=1,status='old',file=
+'table5.dat')
write(6,*) '....Loading file: table5.dat'
do i__=1,72
read(1,'(A76)')ar__2
read(ar__2,3)
+ Com_1(i__),Flag_1(i__),Seq_2(i__),v_NII__Ha_1(i__),
+ v_OIII__Hb_1(i__),FWHMHan_1(i__),FWHMHab_1(i__),
+ FWHMHbn_1(i__),FWHMHbb_1(i__),Note(i__)
if (idig(ar__2(25:28)).EQ.0) v_NII__Ha_1(i__) = rNULL__
if (idig(ar__2(30:34)).EQ.0) v_OIII__Hb_1(i__) = rNULL__
if (FWHMHan_1(i__) .EQ. 45) FWHMHan_1(i__) = iNULL__
if (FWHMHab_1(i__) .EQ. 45) FWHMHab_1(i__) = iNULL__
if (FWHMHbn_1(i__) .EQ. 45) FWHMHbn_1(i__) = iNULL__
if (FWHMHbb_1(i__) .EQ. 45) FWHMHbb_1(i__) = iNULL__
c ..............Just test output...........
write(6,3)
+ Com_1(i__),Flag_1(i__),Seq_2(i__),v_NII__Ha_1(i__),
+ v_OIII__Hb_1(i__),FWHMHan_1(i__),FWHMHab_1(i__),
+ FWHMHbn_1(i__),FWHMHbb_1(i__),Note(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