Conversion of standardized ReadMe file for
file /./ftp/cats/J/A_A/508/1313 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/A+A/508/1313 Orion pre-main sequence RIJH light curves (Frasca+, 2009) *================================================================================ *REM near-IR and optical photometric monitoring of pre-main sequence stars in *Orion. Rotation periods and starspot parameters. * Frasca A., Covino E., Spezzi L., Alcala J.M., Marilli E., Furesz G., * Gandolfi D. * <Astron. Astrophys. 508, 1313 (2009)> * =2009A&A...508.1313F C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table6.dat' ! Standard VRIJHK' magnitudes integer*4 nr__ parameter (nr__=97) ! Number of records character*114 ar__ ! Full-size record integer*4 Seq (nr__) ! Identifier of the source character*16 v2MASS (nr__) ! 2MASS Identifier real*4 Vmag (nr__) ! (mag) ?=- V magnitude real*4 e_Vmag (nr__) ! (mag) ?=- V magnitude error real*4 Rmag (nr__) ! (mag) ?=- R magnitude real*4 e_Rmag (nr__) ! (mag) ?=- R magnitude error real*4 Imag (nr__) ! (mag) ?=- I magnitude real*4 e_Imag (nr__) ! (mag) ?=- I magnitude error real*4 Jmag (nr__) ! (mag) J magnitude real*4 e_Jmag (nr__) ! (mag) J magnitude error real*4 Hmag (nr__) ! (mag) H magnitude real*4 e_Hmag (nr__) ! (mag) H magnitude error real*4 Kmag (nr__) ! (mag) K magnitude real*4 e_Kmag (nr__) ! (mag) K magnitude error real*4 v_3_6_ (nr__) ! (mag) ?=- IRAC 3.6-micron magnitude (1) real*4 v_4_5_ (nr__) ! (mag) ?=- IRAC 4.5-micron magnitude (1) real*4 v_5_8_ (nr__) ! (mag) ?=- IRAC 5.8-micron magnitude (1) real*4 v_8_0_ (nr__) ! (mag) ?=- IRAC 8.0-micron magnitude (1) character*4 LC (nr__) ! Bands(s) with available light curves in * subdirectory lc (2) *Note (1): From Rebull et al. (2006, Cat. J/ApJ/646/297) *Note (2): File identified as Ori_starNN.B, where NN is the star number and * B the band. c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table7.dat' ! Reference stars with Elodie spectra used for the spectral classification integer*4 nr__1 parameter (nr__1=101) ! Number of records character*40 ar__1 ! Full-size record character*12 Name (nr__1) ! Star Name character*8 SpType (nr__1) ! Spectral Type integer*4 Teff (nr__1) ! (K) Effective temperature real*4 logg (nr__1) ! ([cm/s2]) ?=- Surface gravity real*4 v_Fe_H_ (nr__1) ! ?=- Metallicity c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'lc/*' ! Individual light curves integer*4 nr__2 parameter (nr__2=110) ! Number of records character*39 ar__2 ! Full-size record real*8 HJD (nr__2) ! (d) Heliocentric Julian Day real*8 mag (nr__2) ! (mag) R, I, J or H magnitude real*4 e_mag (nr__2) ! (mag) Magnitude error C============================================================================= C Loading file 'table6.dat' ! Standard VRIJHK' magnitudes C Format for file interpretation 1 format( + I2,1X,A16,1X,F5.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,F5.2,1X,F4.2,1X, + F5.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,F5.2,1X,F5.2, + 1X,F5.2,1X,F5.2,1X,A4) C Effective file loading open(unit=1,status='old',file= +'table6.dat') write(6,*) '....Loading file: table6.dat' do i__=1,97 read(1,'(A114)')ar__ read(ar__,1) + Seq(i__),v2MASS(i__),Vmag(i__),e_Vmag(i__),Rmag(i__), + e_Rmag(i__),Imag(i__),e_Imag(i__),Jmag(i__),e_Jmag(i__), + Hmag(i__),e_Hmag(i__),Kmag(i__),e_Kmag(i__),v_3_6_(i__), + v_4_5_(i__),v_5_8_(i__),v_8_0_(i__),LC(i__) if (idig(ar__(21:25)).EQ.0) Vmag(i__) = rNULL__ if (idig(ar__(27:30)).EQ.0) e_Vmag(i__) = rNULL__ if (idig(ar__(32:36)).EQ.0) Rmag(i__) = rNULL__ if (idig(ar__(38:41)).EQ.0) e_Rmag(i__) = rNULL__ if (idig(ar__(43:47)).EQ.0) Imag(i__) = rNULL__ if (idig(ar__(49:52)).EQ.0) e_Imag(i__) = rNULL__ if (idig(ar__(87:91)).EQ.0) v_3_6_(i__) = rNULL__ if (idig(ar__(93:97)).EQ.0) v_4_5_(i__) = rNULL__ if (idig(ar__(99:103)).EQ.0) v_5_8_(i__) = rNULL__ if (idig(ar__(105:109)).EQ.0) v_8_0_(i__) = rNULL__ c ..............Just test output........... write(6,1) + Seq(i__),v2MASS(i__),Vmag(i__),e_Vmag(i__),Rmag(i__), + e_Rmag(i__),Imag(i__),e_Imag(i__),Jmag(i__),e_Jmag(i__), + Hmag(i__),e_Hmag(i__),Kmag(i__),e_Kmag(i__),v_3_6_(i__), + v_4_5_(i__),v_5_8_(i__),v_8_0_(i__),LC(i__) c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'table7.dat' ! Reference stars with Elodie spectra used for the * spectral classification C Format for file interpretation 2 format(A12,2X,A8,2X,I4,1X,F5.2,1X,F5.2) C Effective file loading open(unit=1,status='old',file= +'table7.dat') write(6,*) '....Loading file: table7.dat' do i__=1,101 read(1,'(A40)')ar__1 read(ar__1,2) + Name(i__),SpType(i__),Teff(i__),logg(i__),v_Fe_H_(i__) if (idig(ar__1(30:34)).EQ.0) logg(i__) = rNULL__ if (idig(ar__1(36:40)).EQ.0) v_Fe_H_(i__) = rNULL__ c ..............Just test output........... write(6,2) + Name(i__),SpType(i__),Teff(i__),logg(i__),v_Fe_H_(i__) c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'lc/*' ! Individual light curves C Format for file interpretation 3 format(5X,F13.5,4X,F7.4,4X,F6.4) C Effective file loading open(unit=1,status='old',file= +'lc/*') write(6,*) '....Loading file: lc/*' do i__=1,110 read(1,'(A39)')ar__2 read(ar__2,3)HJD(i__),mag(i__),e_mag(i__) c ..............Just test output........... write(6,3)HJD(i__),mag(i__),e_mag(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