Conversion of standardized ReadMe file for
file /./ftp/cats/J/ApJ/660/704 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-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/ApJ/660/704 Optical and X-ray variability of ONC PMS (Stassun+, 2007) *================================================================================ *A simultaneous optical and X-ray variability study of the Orion nebula cluster. *II. A common origin in magnetic activity. * Stassun K.G., Van Den Berg M., Feigelson E. * <Astrophys. J., 660, 704-711 (2007)> * =2007ApJ...660..704S C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table1.dat' ! Optical and X-Ray Variability in Study Sample integer*4 nr__ parameter (nr__=814) ! Number of records character*37 ar__ ! Full-size record integer*4 COUP (nr__) ! The COUP identification number (J/ApJS/160/319) character*5 OptID (nr__) ! Optical identification from COUP (1) real*4 J (nr__) ! The J-statistic value (see section 2.1.2) character*2 l_logP (nr__) ! [<= ] Limit flag on logP real*4 logP (nr__) ! ([-]) K-S test probability of X-ray variability (2) real*4 BB (nr__) ! Ratio of max/min X-ray flux from BB analysis (3) real*4 Ca2 (nr__) ! (0.1nm) ? The CaII IR triplet equivalent width (4) *Note (1): 0-9999 from Hillenbrand (1997, Cat. J/AJ/113/1733, * [H97b] NNNNN in Simbad * 10000-11000 from Herbst et al. (2002, Cat. J/A+A/396/513) *Note (2): See section 2.1.1. Values below -4.00 have been truncated * (Getman et al., 2005, Cat. J/ApJS/160/319). *Note (3): See section 2.1.1. *Note (4): In angstroms. Negative values indicate emission. * See Hillenbrand et al. (1998, Cat. J/AJ/116/1816). C============================================================================= C Loading file 'table1.dat' ! Optical and X-Ray Variability in Study Sample C Format for file interpretation 1 format(I4,1X,A5,1X,F5.2,1X,A2,1X,F5.2,1X,F5.1,1X,F5.1) C Effective file loading open(unit=1,status='old',file= +'table1.dat') write(6,*) '....Loading file: table1.dat' do i__=1,814 read(1,'(A37)')ar__ read(ar__,1) + COUP(i__),OptID(i__),J(i__),l_logP(i__),logP(i__),BB(i__), + Ca2(i__) if(ar__(33:37) .EQ. '') Ca2(i__) = rNULL__ c ..............Just test output........... write(6,1) + COUP(i__),OptID(i__),J(i__),l_logP(i__),logP(i__),BB(i__), + Ca2(i__) c .......End.of.Just test output........... end do close(1) C============================================================================= stop end