Conversion of standardized ReadMe file for
file /./ftp/cats/J/A_A/338/581 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-18 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/338/581 Field 3 Palomar-Groningen survey. II. (Schultheis+ 1998) *================================================================================ *Field #3 of the Palomar-Groningen survey. *II. Near-infrared photometry of semiregular variables. * Schultheis M., Ng Y.K., Hron J., Kerschbaum F. * <Astron. Astrophys. 338, 581 (1998)> * =1998A&A...338..581S (SIMBAD/NED BibCode) C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table2.dat' ! Near-infrared photometry for the stars in field #3 of the Palomar-Groningen Variable Star Survey (Plaut, 1971A&AS....4...75P). integer*4 nr__ parameter (nr__=103) ! Number of records character*47 ar__ ! Full-size record character*5 Name ! Stellar identifier, from Wesselink (1987) character*4 VarType ! Variable type from Plaut (1971A&AS....4...75P) real*4 Jmag ! (mag) J magnitude (1) real*4 Hmag ! (mag) H magnitude (1) real*4 Kmag ! (mag) K magnitude (1) real*4 L_mag ! (mag) ? L' magnitude (1) real*4 Mmag ! (mag) ? M magnitude (1) integer*4 Run ! Observing run identifier (2) real*4 Per ! (d) ? Period determined by Wesselink (1987) * if available integer*4 q_Per ! [0/3]? Quality flag related with the period * and the identification of the star (3) *Note (1): Typical errors are ~0.02mag in JHK, ~0.1mag in L' and >0.2mag in M. *Note (2): 1: 28 Jul - 2 Aug 1990, Observer: Ng * 2: 21 May - 3 Jun 1991, Observer: Brown * 3: 20 - 29 Aug 1991 Observer: Ng * 4: 16 - 21 Jun 1992, Observers: Ng & Schultheis * 5: 29 Jun - 3 Jul 1993, Observers: Ng & Schultheis *Note (3): 0: no doubt about the determined period and classification * 1: classification is correct but alternative period is possible * 2: period determination is correct but the classification is doubtful * 3: both period determination and classification are unreliable C============================================================================= C Loading file 'table2.dat' ! Near-infrared photometry for the stars in field #3 * of the Palomar-Groningen Variable Star Survey * (Plaut, 1971A&AS....4...75P). C Format for file interpretation 1 format( + A5,1X,A4,1X,F5.2,1X,F5.2,1X,F5.2,1X,F3.1,1X,F3.1,1X,I1,1X, + F6.2,1X,I1) C Effective file loading open(unit=1,status='old',file= +'table2.dat') write(6,*) '....Loading file: table2.dat' do i__=1,103 read(1,'(A47)')ar__ read(ar__,1) + Name,VarType,Jmag,Hmag,Kmag,L_mag,Mmag,Run,Per,q_Per if(ar__(30:32) .EQ. '') L_mag = rNULL__ if(ar__(34:36) .EQ. '') Mmag = rNULL__ if(ar__(40:45) .EQ. '') Per = rNULL__ if(ar__(47:47) .EQ. '') q_Per = iNULL__ c ..............Just test output........... write(6,1) + Name,VarType,Jmag,Hmag,Kmag,L_mag,Mmag,Run,Per,q_Per c .......End.of.Just test output........... end do close(1) C============================================================================= stop end