Conversion of standardized ReadMe file for
file /./ftp/cats/J/AJ/135/1624 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/AJ/135/1624 PEARS emission-line galaxies (Straughn+, 2008) *================================================================================ *Emission-line galaxies from the PEARS Hubble ultra deep field: *a 2D detection method and first results. * Straughn A.N., Meurer G.R., Pirzkal N., Cohen S.H., Malhotra S., Rhoads J., * Windhorst R.A., Gardner J.P., Hathi N.P., Xu C., Gronwall C., * Koekemoer A.M., Walsh J., Alighieri S.D.S. * <Astron. J., 135, 1624-1635 (2008)> * =2008AJ....135.1624S C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table1.dat' ! Global properties of emission-line galaxies integer*4 nr__ parameter (nr__=95) ! Number of records character*75 ar__ ! Full-size record C J2000 position composed of: RAdeg DEdeg integer*4 PEARS (nr__) ! PEARS identification number integer*4 Knot (nr__) ! Knot number real*8 RAdeg (nr__) ! (deg) Right ascension in decimal degrees (J2000) real*8 DEdeg (nr__) ! (deg) Declination in decimal degrees (J2000) real*4 i_mag (nr__) ! (mag) ?=- ACS i' magnitude in AB system * (HST/ACS F775W) (1) integer*4 lambda (nr__) ! (0.1nm) Wavelength ({AA}) real*4 Flux (nr__) ! (zW/m2) ?=- Flux at wavelength (in 10^-18^erg/cm^2^/s * = 10^-21^W/m^2^) (1) real*4 e_Flux (nr__) ! (zW/m2) ? rms uncertainty on Flux real*4 EW (nr__) ! (0.1nm) ?=- Equivalent width at wavelength (1) character*8 Line (nr__) ! Line ID (2) real*4 z (nr__) ! ?=- Re-calculated redshift based on the * line identification (1) *Note (1): No data indicates measurement was not possible. *Note (2): Blank indicates line could not be identified. C============================================================================= C Loading file 'table1.dat' ! Global properties of emission-line galaxies C Format for file interpretation 1 format( + I5,1X,I2,1X,F10.7,1X,F11.7,1X,F5.2,1X,I4,1X,F5.1,1X,F4.1,1X, + F6.1,2X,A8,F5.3) C Effective file loading open(unit=1,status='old',file= +'table1.dat') write(6,*) '....Loading file: table1.dat' do i__=1,95 read(1,'(A75)')ar__ read(ar__,1) + PEARS(i__),Knot(i__),RAdeg(i__),DEdeg(i__),i_mag(i__), + lambda(i__),Flux(i__),e_Flux(i__),EW(i__),Line(i__),z(i__) if (idig(ar__(33:37)).EQ.0) i_mag(i__) = rNULL__ if (idig(ar__(44:48)).EQ.0) Flux(i__) = rNULL__ if(ar__(50:53) .EQ. '') e_Flux(i__) = rNULL__ if (idig(ar__(55:60)).EQ.0) EW(i__) = rNULL__ if (idig(ar__(71:75)).EQ.0) z(i__) = rNULL__ c ..............Just test output........... write(6,1) + PEARS(i__),Knot(i__),RAdeg(i__),DEdeg(i__),i_mag(i__), + lambda(i__),Flux(i__),e_Flux(i__),EW(i__),Line(i__),z(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