Conversion of standardized ReadMe file for
file /./ftp/cats/J/A_A/508/451 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-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/A+A/508/451 Light curves of 5 Trans-Neptunian Objects (Perna+, 2009) *================================================================================ *Rotations and densities of Trans-Neptunian Objects. * Perna D., Dotto E., Barucci, M.A., Rossi A., Fornasier S., de Bergh C. * <Astron. Astrophys. 508, 451 (2009)> * =2009A&A...508..451P C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'objects.dat' ! Objects integer*4 nr__ parameter (nr__=5) ! Number of records character*57 ar__ ! Full-size record integer*4 Seq ! ? Planet number character*10 Name ! Planet name character*12 LC1 ! Name of the file containing the light curve of * the observing night December 3-->4, 2007 character*12 LC2 ! Name of the file containing the light curve of * the observing night December 4-->5, 2007 character*12 LC3 ! Name of the file containing the light curve of * the observing night December 5-->6, 2007 c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'lc/*' ! Individual light curves integer*4 nr__1 parameter (nr__1=14) ! Number of records character*19 ar__1 ! Full-size record real*8 Date ! (d) Fractional day, in UT, of December 2007 real*4 dRmag ! (mag) Differential R magnitude (with field stars) real*4 e_dRmag ! (mag) Error on dRmag C============================================================================= C Loading file 'objects.dat' ! Objects C Format for file interpretation 1 format(I6,1X,A10,2X,A12,1X,A12,1X,A12) C Effective file loading open(unit=1,status='old',file= +'objects.dat') write(6,*) '....Loading file: objects.dat' do i__=1,5 read(1,'(A57)')ar__ read(ar__,1)Seq,Name,LC1,LC2,LC3 if(ar__(1:6) .EQ. '') Seq = iNULL__ c ..............Just test output........... write(6,1)Seq,Name,LC1,LC2,LC3 c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'lc/*' ! Individual light curves C Format for file interpretation 2 format(F7.5,1X,F5.3,1X,F5.3) C Effective file loading open(unit=1,status='old',file= +'lc/*') write(6,*) '....Loading file: lc/*' do i__=1,14 read(1,'(A19)')ar__1 read(ar__1,2)Date,dRmag,e_dRmag c ..............Just test output........... write(6,2)Date,dRmag,e_dRmag c .......End.of.Just test output........... end do close(1) C============================================================================= stop end