Conversion of standardized ReadMe file for
file /./ftp/cats/J/MNRAS/450/3137 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-Mar-28 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/MNRAS/450/3137 Optical/NIR light curves of SN 2009ib (Takats+, 2015) *================================================================================ *SN 2009ib: a Type II-P supernova with an unusually long plateau. * Takats K., Pignata G., Pumo M.L., Paillas E., Zampieri L., Elias-Rosa N., * Benetti S., Bufano F., Cappellaro E., Ergon M., Fraser M., Hamuy M., * Inserra C., Kankare E., Smartt S.J., Stritzinger M.D., Van Dyk S.D., * Haislip J.B., LaCluyze A.P., Moore J.P., Reichart D. * <Mon. Not. R. Astron. Soc., 450, 3137-3154 (2015)> * =2015MNRAS.450.3137T (SIMBAD/NED BibCode) C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'tablea4.dat' ! UBVRI magnitudes of SN 2009ib integer*4 nr__ parameter (nr__=71) ! Number of records character*90 ar__ ! Full-size record character*10 Date (nr__) ! ("date") Date of observation real*8 MJD (nr__) ! (d) Modified Julian Date real*4 Umag (nr__) ! (mag) ?=- U-band magnitude (1) real*4 e_Umag (nr__) ! (mag) ?=- Uncertainty in Umag (1) real*4 Bmag (nr__) ! (mag) ?=- B-band magnitude (1) real*4 e_Bmag (nr__) ! (mag) ?=- Uncertainty in Bmag (1) real*4 Vmag (nr__) ! (mag) ?=- V-band magnitude (1) real*4 e_Vmag (nr__) ! (mag) ?=- Uncertainty in Vmag (1) real*4 Rmag (nr__) ! (mag) ?=- R-band magnitude (1) real*4 e_Rmag (nr__) ! (mag) ?=- Uncertainty in Rmag (1) real*4 Imag (nr__) ! (mag) ?=- I-band magnitude (1) real*4 e_Imag (nr__) ! (mag) ?=- Uncertainty in Imag (1) character*6 Tel (nr__) ! Telescope (2) *Note (1): NA = Not analysed. *Note (2): Telescope as follows: * PROMPT = Panchromatic Robotic Optical Monitoring and Polarimetry Telescopes; * NTT = 3.6-m New Technology Telescope + EFOSC2; * CTIO = CTIO 1.3 m SMARTS telescope + ANDICAM. c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'tablea5.dat' ! u'g'r'i'z' magnitudes of SN 2009ib obtained with the PROMPT telescopes integer*4 nr__1 parameter (nr__1=62) ! Number of records character*83 ar__1 ! Full-size record character*10 Date_1 (nr__1) ! ("date") Date of observation real*8 MJD_1 (nr__1) ! (d) Modified Julian Date real*4 u_mag (nr__1) ! (mag) ?=- PROMPT u'-band magnitude real*4 e_u_mag (nr__1) ! (mag) ?=- Uncertainty in u'mag real*4 g_mag (nr__1) ! (mag) ?=- PROMPT g'-band magnitude real*4 e_g_mag (nr__1) ! (mag) ?=- Uncertainty in g'mag real*4 r_mag (nr__1) ! (mag) ?=- PROMPT r'-band magnitude real*4 e_r_mag (nr__1) ! (mag) ?=- Uncertainty in r'mag real*4 i_mag (nr__1) ! (mag) ?=- PROMPT i'-band magnitude real*4 e_i_mag (nr__1) ! (mag) ?=- Uncertainty in i'mag real*4 z_mag (nr__1) ! (mag) ?=- PROMPT z'-band magnitude real*4 e_z_mag (nr__1) ! (mag) ?=- Uncertainty in z'mag c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'tablea6.dat' ! JH magnitudes of SN 2009ib integer*4 nr__2 parameter (nr__2=13) ! Number of records character*40 ar__2 ! Full-size record character*10 Date_2 (nr__2) ! ("date") Date of observation real*8 MJD_2 (nr__2) ! (d) Modified Julian Date real*4 Jmag (nr__2) ! (mag) REM J-band magnitude real*4 e_Jmag (nr__2) ! (mag) Uncertainty in Jmag real*4 Hmag (nr__2) ! (mag) REM H-band magnitude real*4 e_Hmag (nr__2) ! (mag) Uncertainty in Hmag C============================================================================= C Loading file 'tablea4.dat' ! UBVRI magnitudes of SN 2009ib C Format for file interpretation 1 format( + A10,1X,F7.1,1X,F6.3,1X,F5.3,1X,F6.3,1X,F5.3,1X,F6.3,1X,F5.3, + 1X,F6.3,1X,F5.3,1X,F6.3,1X,F5.3,1X,A6) C Effective file loading open(unit=1,status='old',file= +'tablea4.dat') write(6,*) '....Loading file: tablea4.dat' do i__=1,71 read(1,'(A90)')ar__ read(ar__,1) + Date(i__),MJD(i__),Umag(i__),e_Umag(i__),Bmag(i__), + e_Bmag(i__),Vmag(i__),e_Vmag(i__),Rmag(i__),e_Rmag(i__), + Imag(i__),e_Imag(i__),Tel(i__) if (idig(ar__(20:25)).EQ.0) Umag(i__) = rNULL__ if (idig(ar__(27:31)).EQ.0) e_Umag(i__) = rNULL__ if (idig(ar__(33:38)).EQ.0) Bmag(i__) = rNULL__ if (idig(ar__(40:44)).EQ.0) e_Bmag(i__) = rNULL__ if (idig(ar__(46:51)).EQ.0) Vmag(i__) = rNULL__ if (idig(ar__(53:57)).EQ.0) e_Vmag(i__) = rNULL__ if (idig(ar__(59:64)).EQ.0) Rmag(i__) = rNULL__ if (idig(ar__(66:70)).EQ.0) e_Rmag(i__) = rNULL__ if (idig(ar__(72:77)).EQ.0) Imag(i__) = rNULL__ if (idig(ar__(79:83)).EQ.0) e_Imag(i__) = rNULL__ c ..............Just test output........... write(6,1) + Date(i__),MJD(i__),Umag(i__),e_Umag(i__),Bmag(i__), + e_Bmag(i__),Vmag(i__),e_Vmag(i__),Rmag(i__),e_Rmag(i__), + Imag(i__),e_Imag(i__),Tel(i__) c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'tablea5.dat' ! u'g'r'i'z' magnitudes of SN 2009ib obtained * with the PROMPT telescopes C Format for file interpretation 2 format( + A10,1X,F7.1,1X,F6.3,1X,F5.3,1X,F6.3,1X,F5.3,1X,F6.3,1X,F5.3, + 1X,F6.3,1X,F5.3,1X,F6.3,1X,F5.3) C Effective file loading open(unit=1,status='old',file= +'tablea5.dat') write(6,*) '....Loading file: tablea5.dat' do i__=1,62 read(1,'(A83)')ar__1 read(ar__1,2) + Date_1(i__),MJD_1(i__),u_mag(i__),e_u_mag(i__),g_mag(i__), + e_g_mag(i__),r_mag(i__),e_r_mag(i__),i_mag(i__),e_i_mag(i__), + z_mag(i__),e_z_mag(i__) if (idig(ar__1(20:25)).EQ.0) u_mag(i__) = rNULL__ if (idig(ar__1(27:31)).EQ.0) e_u_mag(i__) = rNULL__ if (idig(ar__1(33:38)).EQ.0) g_mag(i__) = rNULL__ if (idig(ar__1(40:44)).EQ.0) e_g_mag(i__) = rNULL__ if (idig(ar__1(46:51)).EQ.0) r_mag(i__) = rNULL__ if (idig(ar__1(53:57)).EQ.0) e_r_mag(i__) = rNULL__ if (idig(ar__1(59:64)).EQ.0) i_mag(i__) = rNULL__ if (idig(ar__1(66:70)).EQ.0) e_i_mag(i__) = rNULL__ if (idig(ar__1(72:77)).EQ.0) z_mag(i__) = rNULL__ if (idig(ar__1(79:83)).EQ.0) e_z_mag(i__) = rNULL__ c ..............Just test output........... write(6,2) + Date_1(i__),MJD_1(i__),u_mag(i__),e_u_mag(i__),g_mag(i__), + e_g_mag(i__),r_mag(i__),e_r_mag(i__),i_mag(i__),e_i_mag(i__), + z_mag(i__),e_z_mag(i__) c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'tablea6.dat' ! JH magnitudes of SN 2009ib C Format for file interpretation 3 format(A10,1X,F7.1,1X,F5.2,1X,F4.2,1X,F5.2,1X,F4.2) C Effective file loading open(unit=1,status='old',file= +'tablea6.dat') write(6,*) '....Loading file: tablea6.dat' do i__=1,13 read(1,'(A40)')ar__2 read(ar__2,3) + Date_2(i__),MJD_2(i__),Jmag(i__),e_Jmag(i__),Hmag(i__), + e_Hmag(i__) c ..............Just test output........... write(6,3) + Date_2(i__),MJD_2(i__),Jmag(i__),e_Jmag(i__),Hmag(i__), + e_Hmag(i__) 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