Conversion of standardized ReadMe file for
file /./ftp/cats/J/A_A/529/A135 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/A+A/529/A135 AGN Opt/IR properties in Lockman Hole (Rovilos+, 2011) *================================================================================ *Optical and infrared properties of active galactic nuclei in the Lockman Hole. * Rovilos E., Fotopoulou S., Salvato M., Burwitz V., Egami E., Hasinger G., * Szokoly G. * <Astron. Astrophys., 529, A135 (2011)> * =2011A&A...529A.135R C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table2.dat' ! Basic X-ray, optical, and infrared properties of the Lockman Hole X-ray sources integer*4 nr__ parameter (nr__=409) ! Number of records character*151 ar__ ! Full-size record C J2000 position composed of: RAdeg DEdeg integer*4 XID (nr__) ! X-ray name, <[MBC2005] NNNN> in Simbad real*8 FX (nr__) ! (aW/m2) Flux in (0.5-10)keV band (10^-15^erg/cm2/s) real*4 HR (nr__) ! Hardness ratio real*4 logLX (nr__) ! ([10-7W]) ?=- X-ray luminosity in (0.5-10)keV band real*8 RAdeg (nr__) ! (deg) ?=- Optical right ascension (J2000) real*8 DEdeg (nr__) ! (deg) ?=- Optical declination (J2000) integer*4 s (nr__) ! [1/2]? Source of position (1) character*1 l_log_X_Rc (nr__) ! Limit flag on log(FX/FRc) real*4 log_X_Rc (nr__) ! ?=- Log of X-ray to Rc optical flux ratio character*1 l_log_X_K (nr__) ! Limit flag on log(FX/FK) real*4 log_X_K (nr__) ! ?=- Log of X-ray to K optical flux ratio character*1 l_Rc_K (nr__) ! Limit flag on Rc-K real*4 Rc_K (nr__) ! (mag) ?=- Johnson-Cousins R-K colour index (2) character*1 l__3_6_4_5_(nr__) ! Limit flag on [3.6]-[4.5] real*4 v_3_6_4_5_ (nr__) ! (mag) ?=- IRAC [3.6]-[4.5] colour index (2) character*1 l__5_8_8_0_(nr__) ! Limit flag on [5.8]-[8.0] real*4 v_5_8_8_0_ (nr__) ! (mag) ?=- IRAC [5.8]-[8.0] colour index (2) character*1 l_log_24_Rc(nr__) ! Limit flag on log(F24/FRc) real*4 log_24_Rc (nr__) ! ?=- Log of 24um to Rc optical flux ratio real*4 z (nr__) ! ? Redshift character*3 r_z (nr__) ! [3456,a ] origin of z (3) character*51 Note (nr__) ! Notes *Note (1): Note on Position as follows: * 1 = UKIDSS K-band position * 2 = IRAC 3.6um position *Note (2): in Vega system. *Note (3): Note on Redshfit as follows: * a = Low-quality redshift * 3 = Redshift from Schmidt et al. (1998A&A...329..495S) * 4 = Redshift from Lehmann et al. (2001A&A...371..833L) * 5 = Redshift from Mateos et al. (2005, Cat. J/A+A/444/79) * 6 = Redshift from Keck/DEIMOS C============================================================================= C Loading file 'table2.dat' ! Basic X-ray, optical, and infrared properties of * the Lockman Hole X-ray sources C Format for file interpretation 1 format( + I4,1X,F7.2,1X,F5.2,1X,F5.2,1X,F10.6,1X,F9.6,1X,I1,1X,A1,F5.2, + 1X,A1,F5.2,1X,A1,F5.2,1X,A1,F5.2,1X,A1,F5.2,1X,A1,F5.2,1X, + F5.3,1X,A3,1X,A51) C Effective file loading open(unit=1,status='old',file= +'table2.dat') write(6,*) '....Loading file: table2.dat' do i__=1,409 read(1,'(A151)')ar__ read(ar__,1) + XID(i__),FX(i__),HR(i__),logLX(i__),RAdeg(i__),DEdeg(i__), + s(i__),l_log_X_Rc(i__),log_X_Rc(i__),l_log_X_K(i__), + log_X_K(i__),l_Rc_K(i__),Rc_K(i__),l__3_6_4_5_(i__), + v_3_6_4_5_(i__),l__5_8_8_0_(i__),v_5_8_8_0_(i__), + l_log_24_Rc(i__),log_24_Rc(i__),z(i__),r_z(i__),Note(i__) if (idig(ar__(20:24)).EQ.0) logLX(i__) = rNULL__ if (idig(ar__(26:35)).EQ.0) RAdeg(i__) = rNULL__ if (idig(ar__(37:45)).EQ.0) DEdeg(i__) = rNULL__ if(ar__(47:47) .EQ. '') s(i__) = iNULL__ if (idig(ar__(50:54)).EQ.0) log_X_Rc(i__) = rNULL__ if (idig(ar__(57:61)).EQ.0) log_X_K(i__) = rNULL__ if (idig(ar__(64:68)).EQ.0) Rc_K(i__) = rNULL__ if (idig(ar__(71:75)).EQ.0) v_3_6_4_5_(i__) = rNULL__ if (idig(ar__(78:82)).EQ.0) v_5_8_8_0_(i__) = rNULL__ if (idig(ar__(85:89)).EQ.0) log_24_Rc(i__) = rNULL__ if(ar__(91:95) .EQ. '') z(i__) = rNULL__ c ..............Just test output........... write(6,1) + XID(i__),FX(i__),HR(i__),logLX(i__),RAdeg(i__),DEdeg(i__), + s(i__),l_log_X_Rc(i__),log_X_Rc(i__),l_log_X_K(i__), + log_X_K(i__),l_Rc_K(i__),Rc_K(i__),l__3_6_4_5_(i__), + v_3_6_4_5_(i__),l__5_8_8_0_(i__),v_5_8_8_0_(i__), + l_log_24_Rc(i__),log_24_Rc(i__),z(i__),r_z(i__),Note(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