Conversion of standardized ReadMe file for
file /./ftp/cats/J/PASP/116/622 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 2024-Apr-19 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/PASP/116/622 SDSS damped Ly{alpha} survey: DR1 (Prochaska+, 2004) *================================================================================ *The Sloan Digital Sky Survey damped Ly{alpha} survey: Data Release 1. * Prochaska J.X., Herbert-Fort S. * <Publ. Astron. Soc. Pac., 116, 622-633 (2004)> * =2004PASP..116..622P C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table1.dat' ! SDSS Quasar Sample integer*4 nr__ parameter (nr__=1039) ! Number of records character*69 ar__ ! Full-size record character*19 SDSS (nr__) ! SDSS designation real*4 zem (nr__) ! Emission redshift real*4 zstart (nr__) ! ?=- Start redshift real*4 zend (nr__) ! ?=- End redshift character*1 BAL (nr__) ! [0-2] Flag for BAL activity (1) character*29 zcand (nr__) ! Redshift of DLA candidates, including the * false-positive detections, separated by comma *Note (1): Flag for BAL activity as follows: * 0 = No BAL activity * 1 = modest BAL activity, included in analysis * 2 = strong BAL activity, excluded. C============================================================================= C Loading file 'table1.dat' ! SDSS Quasar Sample C Format for file interpretation 1 format(A19,1X,F5.3,1X,F5.3,1X,F5.3,1X,A1,1X,A29) C Effective file loading open(unit=1,status='old',file= +'table1.dat') write(6,*) '....Loading file: table1.dat' do i__=1,1039 read(1,'(A69)')ar__ read(ar__,1) + SDSS(i__),zem(i__),zstart(i__),zend(i__),BAL(i__),zcand(i__) if (idig(ar__(27:31)).EQ.0) zstart(i__) = rNULL__ if (idig(ar__(33:37)).EQ.0) zend(i__) = rNULL__ c ..............Just test output........... write(6,1) + SDSS(i__),zem(i__),zstart(i__),zend(i__),BAL(i__),zcand(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