Conversion of standardized ReadMe file for
catalog 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/AJ/136/2306 SDSS-II Supernova survey, 2005 (Holtzman+, 2008) *================================================================================ *The Sloan Digital Sky Survey. II: *photometry and supernova Ia light curves from the 2005 data. * Holtzman J.A., Marriner J., Kessler R., Sako M., Dilday B., Frieman J.A., * Schneider D.P., Bassett B., Becker A., Cinabro D., DeJongh F., Depoy D.L., * Doi M., Garnavich P.M., Hogan C.J., Jha S., Konishi K., Lampeitl H., * Marshall J.L., McGinnis D., Miknaitis G., Nichol R.C., Prieto J.L., * Riess A.G., Richmond M.W., Romani R., Smith M., Takanashi N., Tokita K., * Van Der Heyden K., Yasuda N., Zheng C. * <Astron. J., 136, 2306-2320 (2008)> * =2008AJ....136.2306H C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'data/*' ! Individual photometry integer*4 nr__ parameter (nr__=146) ! Number of records character*116 ar__ ! Full-size record integer*4 Flag ! Gives values of the photometry flags for each * measurement (1) real*8 MJD ! (d) Modified Julian date of the measurement integer*4 Filt ! [0/4] Filter in which the measurement was * obtained: [01234] corresponds to [ugriz] real*4 mag ! (mag) asinh magnitude of the supernova for this epoch * and filter in the native SDSS photometric system real*4 e_mag ! (mag) Error on the magnitude real*8 e_sky ! (mag) Estimate of possible systematic error from * uncertainty in sky determination real*4 e_gal ! (mag) Estimate of possible systematic error from * uncertainty in galaxy background determination real*4 Flux ! (uJy) Derived flux, using the SDSS/AB correction * from the paper real*4 e_Flux ! (uJy) Error in the flux real*4 e_SkyF ! Estimate of possible systematic error from * uncertainty in sky determination in flux units real*4 e_galF ! Estimate of possible systematic error from * uncertainty in galaxy background determination * in flux units character*4 Tel ! [sdss] Telescope used for the measurement integer*4 Run ! SDSS run number in which the observation was * obtained integer*4 Strip ! [0/1] SDSS strip 82N (0) or 82S (1) integer*4 NFrame ! Number of available SDSS frames before 2005, * which constrain the total brightness of the * underlying galaxy *Note (1): Photometry flag: * * FLAG=0 means there are no liens on the measurement. * * FLAG>1024 means the measurement is likely bad. * * For 0<FLAG<1024, the measurement is likely OK, but there was some * lien on the frames so it was not used to constrain the galaxy * background. See paper for more details. C============================================================================= C Loading file 'data/*' ! Individual photometry C Format for file interpretation 1 format( + I4,1X,F12.6,2X,I1,2X,F6.3,2X,F6.3,1X,F7.3,3X,F5.3,1X,E10.4,2X, + E9.4,2X,E9.4,2X,E9.4,1X,A4,3X,I4,2X,I1,3X,I2) C Effective file loading open(unit=1,status='old',file= +'J/AJ/136/2306/data/*') write(6,*) '....Loading file: data/*' do i__=1,146 read(1,'(A116)')ar__ read(ar__,1) + Flag,MJD,Filt,mag,e_mag,e_sky,e_gal,Flux,e_Flux,e_SkyF,e_galF, + Tel,Run,Strip,NFrame c ..............Just test output........... write(6,1) + Flag,MJD,Filt,mag,e_mag,e_sky,e_gal,Flux,e_Flux,e_SkyF,e_galF, + Tel,Run,Strip,NFrame c .......End.of.Just test output........... end do close(1) C============================================================================= stop end