Conversion of standardized ReadMe file for
file /./ftp/cats/J/A_A/506/491 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-Mar-29 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/506/491 Eclipsing binary candidates in Corot-IRa01 field (Carpano+, 2009) *================================================================================ *Planetary transit candidates in Corot-IRa01 field. * Carpano S., Cabrera J., Alonso R., Barge P., Aigrain S., Almenara J.-M., * Borde P., Bouchy F., Carone L., Deeg H.J., De La Reza R., Deleuil M., * Dvorak R., Erikson A., Fressin F., Fridlund M., Gondoin P., Guillot T., * Hatzes A., Jorda L., Lammer H., Leger A., Llebaria A., Magain P., * Moutou C., Ofir A., Ollivier M., Janot-Pacheco E., Paetzold M., Pont F., * Queloz D., Rauer H., Regulo C., Renner S., Rouan D., Samuel B., * Schneider J., Wuchterl G. * <Astron. Astrophys., 506, 491-500 (2009)> * =2009A&A...506..491C C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'tablea1.dat' ! Eclipsing binary candidates found in IRa01 integer*4 nr__ parameter (nr__=145) ! Number of records character*97 ar__ ! Full-size record C J2000 position composed of: RAdeg DEdeg integer*4 Seq ! [1/145] Sequential number character*1 n_Seq ! [*] * Note on sources 39 and 40 (1) integer*4 CoRoT ! CoRoT identification number (Cat. <B/corot>) character*7 WIN ! WIN designation (EN NNNN) real*8 RAdeg ! (deg) Right ascension (J2000) real*8 DEdeg ! (deg) Declination (J2000) real*4 Vmag ! (mag) V magnitude real*8 Per ! (d) ?=- Period (2) real*4 e_Per ! (d) ? rms uncertainty on Per real*8 Epoch ! (d) Epoch (JD-2454000) real*4 e_Epoch ! (d) rms uncertainty on Epoch real*4 Dur ! (h) Transit duration real*4 Depth ! (%) Transit depth *Note (1): Sources labeled 39 and 40 are two binaries in the same mask of * CoRoT, so there is a single CoRoT identifier for both. *Note (2): Sources 140 to 145 are eclipsing binaries where only one eclipse * has been found, so their period could not be determined (these are the * so-called mono-transit events). C============================================================================= C Loading file 'tablea1.dat' ! Eclipsing binary candidates found in IRa01 C Format for file interpretation 1 format( + I3,A1,1X,I9,1X,A7,1X,F7.3,1X,F9.6,1X,F5.2,1X,F8.5,1X,E8.3,1X, + F9.5,1X,E8.3,1X,F6.3,1X,F6.3) C Effective file loading open(unit=1,status='old',file= +'tablea1.dat') write(6,*) '....Loading file: tablea1.dat' do i__=1,145 read(1,'(A97)')ar__ read(ar__,1) + Seq,n_Seq,CoRoT,WIN,RAdeg,DEdeg,Vmag,Per,e_Per,Epoch,e_Epoch, + Dur,Depth if (idig(ar__(48:55)).EQ.0) Per = rNULL__ if(ar__(57:64) .EQ. '') e_Per = rNULL__ c ..............Just test output........... write(6,1) + Seq,n_Seq,CoRoT,WIN,RAdeg,DEdeg,Vmag,Per,e_Per,Epoch,e_Epoch, + Dur,Depth 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