Conversion of standardized ReadMe file for
file /./ftp/cats/J/A_A/439/1149 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-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/A+A/439/1149 XMM spectroscopy of TWA 5 (Argiroffi+, 2005) *================================================================================ *XMM-Newton spectroscopy of the metal depleted T Tauri star TWA 5. * Argiroffi C., Maggio A., Peres G., Stelzer B., Neuhaeuser R. * <Astron. Astrophys., 439, 1149-1158 (2005)> * =2005A&A...439.1149A C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'tablea1.dat' ! Strongest RGS lines of TWA 5 integer*4 nr__ parameter (nr__=53) ! Number of records character*106 ar__ ! Full-size record character*3 Label ! Label number real*4 LambdaO ! (0.1nm) ?=- Observed wavelength (1) real*8 LambdaP ! (0.1nm) Predicted wavelength (1) character*9 Ion ! Ion character*62 Trans ! Transition (upper --> lower) real*4 logTmax ! ([K]) Temperature of maximum emissivity real*4 Flux ! (10-6ph/s/cm2) ? Line flux (2) real*4 e_Flux ! (10-6ph/s/cm2) ? rms uncertainty on Flux (2) *Note (1): Observed and predicted (APED database) wavelengths. In the cases * of unresolved blends identified by the same label number, we list * the main components in order of increasing predicted wavelength. *Note (2): Line fluxes with uncertainties at the 68% confidence level * obtained by fitting RGS1 and RGS2 spectra simultaneously. In the * cases of unresolved blends identified by the same label number, * we report only the total flux of the blended lines C============================================================================= C Loading file 'tablea1.dat' ! Strongest RGS lines of TWA 5 C Format for file interpretation 1 format(A3,1X,F5.2,1X,F7.4,1X,A9,1X,A62,2X,F4.2,1X,F5.1,1X,F3.1) C Effective file loading open(unit=1,status='old',file= +'tablea1.dat') write(6,*) '....Loading file: tablea1.dat' do i__=1,53 read(1,'(A106)')ar__ read(ar__,1) + Label,LambdaO,LambdaP,Ion,Trans,logTmax,Flux,e_Flux if (idig(ar__(5:9)).EQ.0) LambdaO = rNULL__ if(ar__(98:102) .EQ. '') Flux = rNULL__ if(ar__(104:106) .EQ. '') e_Flux = rNULL__ c ..............Just test output........... write(6,1) + Label,LambdaO,LambdaP,Ion,Trans,logTmax,Flux,e_Flux 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