Skip to main content

load_fits_run

Function load_fits_run 

Source
pub fn load_fits_run(
    dir: &Path,
    chunk: Option<&str>,
) -> Result<FitsRun, IoError>
Expand description

Load one chunk of a single-shutter raw frame-mode run folder.

A last frame whose bin ends at the shutter’s close is left out: in the VENUS runs of this kind it holds several times its neighbours’ counts.

§Arguments

  • dir — The run folder.
  • chunk — The chunk to load; None when the folder holds one chunk.

§Errors

IoError::NoMatchingFiles if no frames are found; IoError::InvalidParameter if chunk is None and the folder holds several chunks, the run has more than one shutter, the chunk’s frames have two prefixes or are not numbered 0 to n − 1, a sidecar is missing or disagrees with the frames, or a frame is unreadable; IoError::DimensionMismatch if frame sizes differ.