Conversion of standardized ReadMe file for
file /./ftp/cats/J/A_A/283/759 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 2024-Apr-20 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/283/759 CIV QSO absorption systems (Petitjean+ 1994) *================================================================================ *CIV QSO absorption systems and properties of galactic haloes at high redshift * Petitjean P., Bergeron J. * <Astron. Astrophys. 283, 759 (1994)> * =1994A&A...283..759P C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'qso.dat' ! Positions of the QSOs (from SIMBAD) integer*4 nr__ parameter (nr__=10) ! Number of records character*33 ar__ ! 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) integer*4 RAh ! (h) Right Ascension J2000 (hours) integer*4 RAm ! (min) Right Ascension J2000 (minutes) real*4 RAs ! (s) Right Ascension J2000 (seconds) character*1 DE_ ! Declination J2000 (sign) integer*4 DEd ! (deg) Declination J2000 (degrees) integer*4 DEm ! (arcmin) Declination J2000 (minutes) integer*4 DEs ! (arcsec) Declination J2000 (seconds) character*9 QSO ! Name of the QSO in tables 2 and 3 c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table2.dat' ! Absorption lines integer*4 nr__1 parameter (nr__1=166) ! Number of records character*101 ar__1 ! Full-size record character*8 QSO_1 ! QSO name real*8 lambda ! (0.1nm) ? Heliocentric wavelength of absorption lines real*4 REW ! (0.1nm) ? Rest equivalent width of absorption lines real*4 e_REW ! (0.1nm) ? rms uncertainty on REW character*17 Ion ! Identification of element real*8 zabs ! ? Mean redshift integer*4 n ! ? Component number real*4 logN ! ([cm-2]) ? Logarithm of the column density real*4 e_logN ! ([cm-2]) ? rms uncertainty on logN real*4 b ! (km/s) ? Doppler parameter real*4 e_b ! (km/s) ? rms uncertainty on b real*8 zc ! ? Redshift of the component c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table3.dat' ! Characteristic of the subcomponents integer*4 nr__2 parameter (nr__2=99) ! Number of records character*48 ar__2 ! Full-size record character*9 QSO_2 ! QSO name character*1 r_QSO ! References (1) integer*4 n_1 ! Subcomponent number real*8 z ! Redshift real*4 DeltaV ! (km/s) Relative velocity real*4 logN_1 ! ([cm-2]) Logarithm of CIV column density real*4 b_1 ! (km/s) Doppler parameter for CIV *Note (1): References: * a: Savaglio et al. 1994A&A...281..331S * b: Pettini et al. 1983ApJ...273..436P * c: Carswell et al. 1984ApJ...278..486C * d: Wampler et al. 1993A&A...273...15W C============================================================================= C Loading file 'qso.dat' ! Positions of the QSOs (from SIMBAD) C Format for file interpretation 1 format(I2,1X,I2,1X,F4.1,1X,A1,I2,1X,I2,1X,I2,3X,A9) C Effective file loading open(unit=1,status='old',file= +'qso.dat') write(6,*) '....Loading file: qso.dat' do i__=1,10 read(1,'(A33)')ar__ read(ar__,1)RAh,RAm,RAs,DE_,DEd,DEm,DEs,QSO 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,1)RAh,RAm,RAs,DE_,DEd,DEm,DEs,QSO write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'table2.dat' ! Absorption lines C Format for file interpretation 2 format( + A8,2X,F7.2,11X,F4.2,5X,F4.2,1X,A17,1X,F7.5,2X,I1,3X,F4.1,1X, + F4.2,1X,F5.1,2X,F3.0,1X,F7.5) C Effective file loading open(unit=1,status='old',file= +'table2.dat') write(6,*) '....Loading file: table2.dat' do i__=1,166 read(1,'(A101)')ar__1 read(ar__1,2) + QSO_1,lambda,REW,e_REW,Ion,zabs,n,logN,e_logN,b,e_b,zc if(ar__1(11:17) .EQ. '') lambda = rNULL__ if(ar__1(29:32) .EQ. '') REW = rNULL__ if(ar__1(38:41) .EQ. '') e_REW = rNULL__ if(ar__1(61:67) .EQ. '') zabs = rNULL__ if(ar__1(70:70) .EQ. '') n = iNULL__ if(ar__1(74:77) .EQ. '') logN = rNULL__ if(ar__1(79:82) .EQ. '') e_logN = rNULL__ if(ar__1(84:88) .EQ. '') b = rNULL__ if(ar__1(91:93) .EQ. '') e_b = rNULL__ if(ar__1(95:101) .EQ. '') zc = rNULL__ c ..............Just test output........... write(6,2) + QSO_1,lambda,REW,e_REW,Ion,zabs,n,logN,e_logN,b,e_b,zc c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'table3.dat' ! Characteristic of the subcomponents C Format for file interpretation 3 format(A9,1X,A1,1X,I1,1X,F7.5,1X,F4.0,5X,F5.2,8X,F4.1) C Effective file loading open(unit=1,status='old',file= +'table3.dat') write(6,*) '....Loading file: table3.dat' do i__=1,99 read(1,'(A48)')ar__2 read(ar__2,3)QSO_2,r_QSO,n_1,z,DeltaV,logN_1,b_1 c ..............Just test output........... write(6,3)QSO_2,r_QSO,n_1,z,DeltaV,logN_1,b_1 c .......End.of.Just test output........... end do close(1) C============================================================================= stop end