Conversion of standardized ReadMe file for
file /./ftp/cats/J/A_A/580/A113 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-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 ! Sequential number
character*11 HES ! HES name (HENNNN-NNN)
character*1 n_HES ! [123] Note on HES (1)
character*1 f_Seq ! [+] + marks galaxies for which we do not have
* HES optical spectra
character*15 v6dFGS ! 6dFGS name (gHHMMSSs+DDMMSS)
real*8 RAdeg ! (deg) Right ascension (J2000)
real*8 DEdeg ! (deg) Declination (J2000)
real*4 z ! 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 ! Comments (G1)
character*3 Flag ! [d+ ] Flag (G2)
integer*4 Seq_1 ! Sequential number
real*4 v_NII__Ha ! ?=- [NII]/H{alpha} luminosity ratio
real*4 v_OIII__Hb ! ?=- [OIII]/H{beta} luminosity ratio
real*4 v_SII__Ha ! ?=- [SII]/H{alpha} luminosity ratio
real*4 v_OI__Ha ! ?=- [OI]/H{alpha} luminosity ratio
real*4 FWHMHan ! (km/s) ?=- Narrow component H{alpha} FWHM
real*8 FWHMHab ! (km/s) ?=- Broad component H{alpha} FWHM
character*1 u_FWHMHab ! [?] Uncertainty flag on FWHMHab
real*4 FWHMHbn ! ?=- Narrow component H{beta} FWHM
real*8 FWHMHbB ! ?=- 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 ! Comments (G1)
character*2 Flag_1 ! [d+ ] Flag (G2)
integer*4 Seq_2 ! sequential number
real*4 v_NII__Ha_1 ! ?=- [NII]/H{alpha} luminosity ratio
real*4 v_OIII__Hb_1 ! ?=- [OIII]/H{beta} luminosity ratio
integer*4 FWHMHan_1 ! (km/s) ?=- Narrow component H{alpha} FWHM
integer*4 FWHMHab_1 ! (km/s) ?=- Broad component H{alpha} FWHM
integer*4 FWHMHbn_1 ! (km/s) ?=- Narrow component H{beta} FWHM
integer*4 FWHMHbb_1 ! (km/s) ?=- Broad component H{beta} FWHM
character*20 Note ! 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,HES,n_HES,f_Seq,v6dFGS,RAdeg,DEdeg,z
c ..............Just test output...........
write(6,1)Seq,HES,n_HES,f_Seq,v6dFGS,RAdeg,DEdeg,z
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,Flag,Seq_1,v_NII__Ha,v_OIII__Hb,v_SII__Ha,v_OI__Ha,
+ FWHMHan,FWHMHab,u_FWHMHab,FWHMHbn,FWHMHbB
if (idig(ar__1(33:36)).EQ.0) v_NII__Ha = rNULL__
if (idig(ar__1(38:42)).EQ.0) v_OIII__Hb = rNULL__
if (idig(ar__1(44:47)).EQ.0) v_SII__Ha = rNULL__
if (idig(ar__1(49:52)).EQ.0) v_OI__Ha = rNULL__
if (idig(ar__1(54:58)).EQ.0) FWHMHan = rNULL__
if (idig(ar__1(60:66)).EQ.0) FWHMHab = rNULL__
if (idig(ar__1(68:73)).EQ.0) FWHMHbn = rNULL__
if (idig(ar__1(76:82)).EQ.0) FWHMHbB = rNULL__
c ..............Just test output...........
write(6,2)
+ Com,Flag,Seq_1,v_NII__Ha,v_OIII__Hb,v_SII__Ha,v_OI__Ha,
+ FWHMHan,FWHMHab,u_FWHMHab,FWHMHbn,FWHMHbB
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,Flag_1,Seq_2,v_NII__Ha_1,v_OIII__Hb_1,FWHMHan_1,
+ FWHMHab_1,FWHMHbn_1,FWHMHbb_1,Note
if (idig(ar__2(25:28)).EQ.0) v_NII__Ha_1 = rNULL__
if (idig(ar__2(30:34)).EQ.0) v_OIII__Hb_1 = rNULL__
if (FWHMHan_1 .EQ. 45) FWHMHan_1 = iNULL__
if (FWHMHab_1 .EQ. 45) FWHMHab_1 = iNULL__
if (FWHMHbn_1 .EQ. 45) FWHMHbn_1 = iNULL__
if (FWHMHbb_1 .EQ. 45) FWHMHbb_1 = iNULL__
c ..............Just test output...........
write(6,3)
+ Com_1,Flag_1,Seq_2,v_NII__Ha_1,v_OIII__Hb_1,FWHMHan_1,
+ FWHMHab_1,FWHMHbn_1,FWHMHbb_1,Note
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