icecube.clsim.tablemaker.splinefitstable module

icecube.clsim.tablemaker.splinefitstable.read(path, memmap=False)

Read a SplineTable from a FITS file on disk

Parameters:
  • path – the filesystem path to read from

  • memmap – memmap the underlying fits file this causes the underlying file handle to remain open indefinitely

Returns:

SplineTable - the spline surface stored in the given file

icecube.clsim.tablemaker.splinefitstable.write(table, path)

Write a SplineTable to disk as a FITS file.

Parameters:
  • table – the SplineTable to be written

  • path – where to save the FITS file.

Warning

pyfits will fail to write the file if it already exists.