Conversion of standardized ReadMe file for
file /./ftp/cats/J/ApJ/849/161 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-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/ApJ/849/161 BVRI light curves of the BL Lac object Mrk 501 (Feng+, 2017) *================================================================================ *Search for intra-day optical variability in Mrk 501. * Feng H.-C., Liu H.T., Fan X.L., Zhao Y., Bai J.M., Wang F., Xiong D.R., * Li S.K. * <Astrophys. J., 849, 161 (2017)> * =2017ApJ...849..161F C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table2.dat' ! The observational data for Mrk 501 integer*4 nr__ parameter (nr__=689) ! Number of records character*95 ar__ ! Full-size record real*8 MJD_B (nr__) ! (d) [3465.8/6051]? B band Modified Julian Date * of observation; MJD-50000 real*4 Bmag (nr__) ! (mag) [13.8/14.9]? Apparent B band magnitude real*4 FWHM_B (nr__) ! (arcsec) [1.2/4.5]? Full-Width at Half Maximum of B band * aperture real*8 MJD_I (nr__) ! (d) [3465.8/6059]? I band Modified Julian Date of * observation; MJD-50000 real*4 Imag (nr__) ! (mag) [12/12.7]? Apparent I band magnitude real*4 FWHM_I (nr__) ! (arcsec) [1/5.2]? Full-Width at Half Maximum of I band * aperture real*8 MJD_R (nr__) ! (d) [3465.8/6065] R band Modified Julian Date of * observation; MJD-50000 real*4 Rmag (nr__) ! (mag) [12.7/18.9] Apparent R band magnitude real*4 FWHM_R (nr__) ! (arcsec) [1.1/5.4] Full-Width at Half Maximum of R band * aperture real*8 MJD_V (nr__) ! (d) [3465.8/6061]? V band Modified Julian Date of * observation; MJD-50000 real*4 Vmag (nr__) ! (mag) [13/14]? Apparent V band magnitude real*4 FWHM_V (nr__) ! (arcsec) [1.1/3.6]? Full-Width at Half Maximum of V band * aperture C============================================================================= C Loading file 'table2.dat' ! The observational data for Mrk 501 C Format for file interpretation 1 format( + F11.6,1X,F6.3,1X,F4.2,1X,F11.6,1X,F6.3,1X,F4.2,1X,F11.6,1X, + F6.3,1X,F4.2,1X,F11.6,1X,F6.3,1X,F4.2) C Effective file loading open(unit=1,status='old',file= +'table2.dat') write(6,*) '....Loading file: table2.dat' do i__=1,689 read(1,'(A95)')ar__ read(ar__,1) + MJD_B(i__),Bmag(i__),FWHM_B(i__),MJD_I(i__),Imag(i__), + FWHM_I(i__),MJD_R(i__),Rmag(i__),FWHM_R(i__),MJD_V(i__), + Vmag(i__),FWHM_V(i__) if(ar__(1:11) .EQ. '') MJD_B(i__) = rNULL__ if(ar__(13:18) .EQ. '') Bmag(i__) = rNULL__ if(ar__(20:23) .EQ. '') FWHM_B(i__) = rNULL__ if(ar__(25:35) .EQ. '') MJD_I(i__) = rNULL__ if(ar__(37:42) .EQ. '') Imag(i__) = rNULL__ if(ar__(44:47) .EQ. '') FWHM_I(i__) = rNULL__ if(ar__(73:83) .EQ. '') MJD_V(i__) = rNULL__ if(ar__(85:90) .EQ. '') Vmag(i__) = rNULL__ if(ar__(92:95) .EQ. '') FWHM_V(i__) = rNULL__ c ..............Just test output........... write(6,1) + MJD_B(i__),Bmag(i__),FWHM_B(i__),MJD_I(i__),Imag(i__), + FWHM_I(i__),MJD_R(i__),Rmag(i__),FWHM_R(i__),MJD_V(i__), + Vmag(i__),FWHM_V(i__) c .......End.of.Just test output........... end do close(1) C============================================================================= stop end