Changeset 13530


Ignore:
Timestamp:
05/03/12 06:01:23 (13 years ago)
Author:
neise
Message:
changed default filename and added check if file exists
File:
1 edited

Legend:

Unmodified
Added
Removed
  • fact/tools/pyscripts/sandbox/dneise/rdietlic/ftcal.py

    r13368 r13530  
    1616t_s = time()
    1717
     18import os.path
     19import sys
    1820#dfname = '/data03/fact-construction/raw/2011/11/24/20111124_121.fits'
    1921#calfname = '/data03/fact-construction/raw/2011/11/24/20111124_111.drs.fits'
    2022
    21 dfname = '/data00/fact-construction/raw/2011/11/24/20111124_113.fits.gz'
    22 calfname = '/data00/fact-construction/raw/2011/11/24/20111124_111.drs.fits.gz'
     23
     24#dfname = '/data00/fact-construction/raw/2011/11/24/20111124_113.fits.gz'
     25#calfname = '/data00/fact-construction/raw/2011/11/24/20111124_111.drs.fits.gz'
     26
     27dfname = '/data00/fact-construction/raw/2012/02/23/20120223_205.fits.gz'
     28calfname = '/data00/fact-construction/raw/2012/02/23/20120223_202.drs.fits.gz'
     29
     30if not os.path.isfile(dfname):
     31    print dfname, 'is not a  file!!!!'
     32    sys.exit(1)
     33if not os.path.isfile(calfname):
     34    print calfname, 'is not a file'
     35    sys.exit(2)
    2336
    2437rd = pyfact.rawdata( dfname, calfname )
Note: See TracChangeset for help on using the changeset viewer.