Conversion of standardized ReadMe file for
file /./ftp/cats/J/ApJ/660/1093 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/ApJ/660/1093 Weak MgII absorbers at 0.4<z<2.4 (Narayanan+, 2007) *================================================================================ *A survey of weak Mg II absorbers at 0.4 < z < 2.4. * Narayanan A., Misawa T., Charlton J.C., Kim T.-S. * <Astrophys. J., 660, 1093-1105 (2007)> * =2007ApJ...660.1093N C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table1.dat' ! UVES/VLT archive QSO data set integer*4 nr__ parameter (nr__=143) ! Number of records character*83 ar__ ! Full-size record character*10 QSO ! Target name real*4 z ! Quasar redshift real*4 Vmag ! (mag) ? Quasar V magnitude character*1 n_Vmag ! [g] g when SDSS-g magnitude integer*4 lam1 ! (0.1nm) ? First value of wavelength coverage interval integer*4 lam2 ! (0.1nm) ? Second value of wavelength coverage interval integer*4 Set1 ! ? Cross-disperser setting integer*4 Set2 ! ? Cross-disperser setting integer*4 Texp ! (s) Exposure time character*12 Prog ! Program ID character*18 PI ! PI name of the program c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table2.dat' ! Weak MgII systems detected integer*4 nr__1 parameter (nr__1=116) ! Number of records character*60 ar__1 ! Full-size record character*10 QSO_1 ! Quasar name real*8 zabs ! Redshift of the absorber real*4 Wr_2796 ! (0.1nm) Measured rest-frame equivalent width of * MgII {lambda}2796{AA} real*4 e_Wr_2796 ! (0.1nm) rms uncertainty on Wr(2796) real*4 Wr_2803 ! (0.1nm) Measured rest-frame equivalent width of * MgII {lambda}2803{AA} real*4 e_Wr_2803 ! (0.1nm) rms uncertainty on Wr(2803) real*4 DR ! Doublet ratio given by Wr(2796)/Wr(2803) real*4 e_DR ! rms uncertainty on DR real*4 Z_Wr_DR ! ? Cumulative redshift path length (1) *Note (1): The first four listed systems have z<0.4, and are therefore not * part of our survey. C============================================================================= C Loading file 'table1.dat' ! UVES/VLT archive QSO data set C Format for file interpretation 1 format( + A10,1X,F6.4,1X,F5.2,A1,2X,I4,1X,I5,1X,I3,1X,I3,1X,I5,1X,A12, + 2X,A18) C Effective file loading open(unit=1,status='old',file= +'table1.dat') write(6,*) '....Loading file: table1.dat' do i__=1,143 read(1,'(A83)')ar__ read(ar__,1) + QSO,z,Vmag,n_Vmag,lam1,lam2,Set1,Set2,Texp,Prog,PI if(ar__(19:23) .EQ. '') Vmag = rNULL__ if(ar__(27:30) .EQ. '') lam1 = iNULL__ if(ar__(32:36) .EQ. '') lam2 = iNULL__ if(ar__(38:40) .EQ. '') Set1 = iNULL__ if(ar__(42:44) .EQ. '') Set2 = iNULL__ c ..............Just test output........... write(6,1) + QSO,z,Vmag,n_Vmag,lam1,lam2,Set1,Set2,Texp,Prog,PI c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'table2.dat' ! Weak MgII systems detected C Format for file interpretation 2 format( + A10,2X,F8.6,1X,F5.3,1X,F5.3,1X,F5.3,1X,F5.3,1X,F4.2,1X,F4.2, + 1X,F5.2) C Effective file loading open(unit=1,status='old',file= +'table2.dat') write(6,*) '....Loading file: table2.dat' do i__=1,116 read(1,'(A60)')ar__1 read(ar__1,2) + QSO_1,zabs,Wr_2796,e_Wr_2796,Wr_2803,e_Wr_2803,DR,e_DR,Z_Wr_DR if(ar__1(56:60) .EQ. '') Z_Wr_DR = rNULL__ c ..............Just test output........... write(6,2) + QSO_1,zabs,Wr_2796,e_Wr_2796,Wr_2803,e_Wr_2803,DR,e_DR,Z_Wr_DR c .......End.of.Just test output........... end do close(1) C============================================================================= stop end