ImageSubsetArray

class jwst.background.background_sub.ImageSubsetArray(model)[source]

Bases: object

Keep track of where different images relate to each other.

This includes using, e.g., subarray observations.

Parameters:
modelImageModel

Input datamodel

Methods Summary

get_subset_array(other)

Pull out the overlapping SCI, ERR, and DQ data for two models.

overlaps(other)

Find whether this subset and another overlap.

Methods Documentation

get_subset_array(other)[source]

Pull out the overlapping SCI, ERR, and DQ data for two models.

Parameters:
otherImageModel

Input model

Returns:
data_overlapndarray

Data overlap of the science arrays

err_overlapndarray

Overlap of the error arrays

dq_overlapndarray

Overlap of the DQ arrays

overlaps(other)[source]

Find whether this subset and another overlap.

Parameters:
otherImageModel

Input model

Returns:
bool

Return the boolean opposite of the condition met