Conversion of standardized ReadMe file for
file /./ftp/cats/J/PASJ/59/S529 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/PASJ/59/S529 NEP deep survey at 11um (Lee+, 2007) *================================================================================ *Nature of infrared sources in 11 {mu}m selected sample from early data of *the AKARI North Ecliptic Pole deep survey. * Lee H.M., Im M., Wada T., Shim H., Kim S.J., Lee M.G., Hwang N., * Matsuhara H., Nakagawa T., Oyabu S., Pearson C.P., Takagi T., Onaka T., * Fujishiro N., Hanami H., Ishihara D., Ita Y., Kataza H., Kim W., * Matusmoto T., Murakami H., Ohyama Y., Sakon I., Tanabe T., Uemizu K., * Ueno M., Usui F., Watarai H. * <Publ. Astron. Soc. Jap., 59, S529-S542 (2007)> * =2007PASJ...59S.529L C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table2.dat' ! List of sources brighter than S11=18.5mag integer*4 nr__ parameter (nr__=72) ! Number of records character*82 ar__ ! Full-size record C J2000 position composed of: RAdeg DEdeg character*19 v_LIW2007_ (nr__) ! Object designation (JHHMMSS.ss+DDMMSS.s) real*8 RAdeg (nr__) ! (deg) Right ascension in decimal degrees (J2000) real*8 DEdeg (nr__) ! (deg) Declination in decimal degrees (J2000) real*4 N2 (nr__) ! (mag) N2 (2.43um) magnitude in AB system real*4 N3 (nr__) ! (mag) ?=- N3 (3.16um) magnitude in AB system real*4 N4 (nr__) ! (mag) ?=- N4 (4.14um) magnitude in AB system real*4 S7 (nr__) ! (mag) ?=- S7 (7.19um) magnitude in AB system real*4 S9W (nr__) ! (mag) ?=- S9W (8.74um) magnitude in AB system real*4 S11 (nr__) ! (mag) S11 (10.4um) magnitude in AB system character*10 Type (nr__) ! Type of object (1) *Note (1): Type as follows: * AGN = for power-law sources which are likely to be AGNs (Sect. 4.3.2) * Star = for point source with stellar spectra (Sect. 4.3.3) * Early-type = for a galaxy with E/S0-like spectra (Sect. 5) * SF galaxy = Star-forming galaxy (Sect. 4.3.1) C============================================================================= C Loading file 'table2.dat' ! List of sources brighter than S11=18.5mag C Format for file interpretation 1 format( + A19,1X,F10.6,F8.4,1X,F5.2,1X,F5.2,1X,F5.2,1X,F4.1,1X,F4.1,1X, + F4.1,1X,A10) C Effective file loading open(unit=1,status='old',file= +'table2.dat') write(6,*) '....Loading file: table2.dat' do i__=1,72 read(1,'(A82)')ar__ read(ar__,1) + v_LIW2007_(i__),RAdeg(i__),DEdeg(i__),N2(i__),N3(i__),N4(i__), + S7(i__),S9W(i__),S11(i__),Type(i__) if (idig(ar__(46:50)).EQ.0) N3(i__) = rNULL__ if (idig(ar__(52:56)).EQ.0) N4(i__) = rNULL__ if (idig(ar__(58:61)).EQ.0) S7(i__) = rNULL__ if (idig(ar__(63:66)).EQ.0) S9W(i__) = rNULL__ c ..............Just test output........... write(6,1) + v_LIW2007_(i__),RAdeg(i__),DEdeg(i__),N2(i__),N3(i__),N4(i__), + S7(i__),S9W(i__),S11(i__),Type(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