Conversion of standardized ReadMe file for
file /./ftp/cats/J/A_A/609/A106 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-20 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/609/A106 PTF11mnb Bgri light curves (Taddia+, 2018) *================================================================================ *PTF11mnb: the first analog of supernova 2005bf. *A long-rising, double-peaked supernova Ic from a massive progenitor. * Taddia F., Sollerman J., Fremling C., Karamehmetoglu E., Quimby R.M., * Gal-Yam A., Yaron O., Kasliwal M.M., Kulkarni S.R., Nugent P.E., Smadja G., * Tao C. * <Astron. Astrophys. 609, A106 (2018)> * =2018A&A...609A.106T (SIMBAD/NED BibCode) C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table1.dat' ! Optical photometry of PTF11mnb integer*4 nr__ parameter (nr__=40) ! Number of records character*83 ar__ ! Full-size record real*8 JDB ! (d) ? B band Julian date (JD-2455000) real*4 Bmag ! (mag) ? Johnson B magnitude real*4 e_Bmag ! (mag) ? rms uncertainty on Bmag real*8 JDg ! (d) g band Julian date (JD-2455000) real*4 gmag ! (mag) SDSS g magnitude real*4 e_gmag ! (mag) rms uncertainty on gmag real*8 JDr ! (d) ? r band Julian date (JD-2455000) real*4 rmag ! (mag) ? SDSS r magnitude real*4 e_rmag ! (mag) ? rms uncertainty on rmag real*8 JDi ! (d) ? i band Julian date (JD-2455000) real*4 imag ! (mag) ? SDSS i magnitude real*4 e_imag ! (mag) ? rms uncertainty on imag C============================================================================= C Loading file 'table1.dat' ! Optical photometry of PTF11mnb C Format for file interpretation 1 format( + F7.3,1X,F6.3,1X,F5.3,1X,F7.3,1X,F6.3,1X,F5.3,1X,F7.3,1X,F6.3, + 1X,F5.3,1X,F7.3,1X,F6.3,1X,F5.3) C Effective file loading open(unit=1,status='old',file= +'table1.dat') write(6,*) '....Loading file: table1.dat' do i__=1,40 read(1,'(A83)')ar__ read(ar__,1) + JDB,Bmag,e_Bmag,JDg,gmag,e_gmag,JDr,rmag,e_rmag,JDi,imag, + e_imag if(ar__(1:7) .EQ. '') JDB = rNULL__ if(ar__(9:14) .EQ. '') Bmag = rNULL__ if(ar__(16:20) .EQ. '') e_Bmag = rNULL__ if(ar__(43:49) .EQ. '') JDr = rNULL__ if(ar__(51:56) .EQ. '') rmag = rNULL__ if(ar__(58:62) .EQ. '') e_rmag = rNULL__ if(ar__(64:70) .EQ. '') JDi = rNULL__ if(ar__(72:77) .EQ. '') imag = rNULL__ if(ar__(79:83) .EQ. '') e_imag = rNULL__ c ..............Just test output........... write(6,1) + JDB,Bmag,e_Bmag,JDg,gmag,e_gmag,JDr,rmag,e_rmag,JDi,imag, + e_imag c .......End.of.Just test output........... end do close(1) C============================================================================= stop end