Conversion of standardized ReadMe file for
file /./ftp/cats/J/A_A/430/115 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-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/430/115 SFR of distant galaxies (Hammer+, 2005) *================================================================================ *Did most present-day spirals form during the last 8 Gyr? A formation history *with violent episodes revealed by panchromatic observations. * Hammer F., Flores H., Elbaz D., Zheng X.Z., Liang Y.C., Cesarsky C. * <Astron. Astrophys., 430, 115-128 (2005)> * =2005A&A...430..115H C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table1.dat' ! Sample of distant galaxies integer*4 nr__ parameter (nr__=185) ! Number of records character*91 ar__ ! Full-size record character*13 Name (nr__) ! Source name (1) real*4 z (nr__) ! Redshift real*4 BMAG (nr__) ! (mag) ?=- Absolute B magnitude character*1 n_BMAG (nr__) ! [*] * for estimated magnitude (2) real*4 KMAG (nr__) ! (mag) ?=- Absolute K magnitude real*4 logM (nr__) ! ([solMass]) ? Mass real*4 SFRIR (nr__) ! (solMass/yr) ?=- Infrared Star Formation Rate character*3 n_SFRIR (nr__) ! Not detected (N/D) or not available (---) real*8 SFRHa (nr__) ! (solMass/yr) ?=- H{alpha} Star Formation Rate real*4 SFR_OII_ (nr__) ! (solMass/yr) ?=- [OII] Star Formation Rate real*4 v12_log_O_H(nr__) ! ?=- Abundance real*4 U_B (nr__) ! ?=- Central color, U(347.5nm)-B(457nm), * from HST images real*4 Comp (nr__) ! ?=- Compactness, from HST images character*9 Morph (nr__) ! Morphology, from HST images *Note (1): UDSR04 and UDSF01 source are from Liang et al., Cat. <J/A+A/423/867>. * UDSR04 NNa identified as [LHF2004] UDSR NNa in Simbad * UDSF01 NNa identified as [LHF2004] UDSF NNa in Simbad *Note (2): *: BMAG estimated from observed R band and from the observed * spectroscopic slope. C============================================================================= C Loading file 'table1.dat' ! Sample of distant galaxies C Format for file interpretation 1 format( + A13,1X,F6.4,1X,F6.2,A1,1X,F6.2,1X,F5.2,1X,F6.2,A3,1X,F7.3, + F6.2,1X,F4.2,1X,F5.3,1X,F4.2,1X,A9) C Effective file loading open(unit=1,status='old',file= +'table1.dat') write(6,*) '....Loading file: table1.dat' do i__=1,185 read(1,'(A91)')ar__ read(ar__,1) + Name(i__),z(i__),BMAG(i__),n_BMAG(i__),KMAG(i__),logM(i__), + SFRIR(i__),n_SFRIR(i__),SFRHa(i__),SFR_OII_(i__), + v12_log_O_H(i__),U_B(i__),Comp(i__),Morph(i__) if (idig(ar__(22:27)).EQ.0) BMAG(i__) = rNULL__ if (idig(ar__(30:35)).EQ.0) KMAG(i__) = rNULL__ if(ar__(37:41) .EQ. '') logM(i__) = rNULL__ if (idig(ar__(43:48)).EQ.0) SFRIR(i__) = rNULL__ if (idig(ar__(53:59)).EQ.0) SFRHa(i__) = rNULL__ if (idig(ar__(60:65)).EQ.0) SFR_OII_(i__) = rNULL__ if (idig(ar__(67:70)).EQ.0) v12_log_O_H(i__) = rNULL__ if (idig(ar__(72:76)).EQ.0) U_B(i__) = rNULL__ if (idig(ar__(78:81)).EQ.0) Comp(i__) = rNULL__ c ..............Just test output........... write(6,1) + Name(i__),z(i__),BMAG(i__),n_BMAG(i__),KMAG(i__),logM(i__), + SFRIR(i__),n_SFRIR(i__),SFRHa(i__),SFR_OII_(i__), + v12_log_O_H(i__),U_B(i__),Comp(i__),Morph(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