Asn_Lv2WFSSParallel

class jwst.associations.lib.rules_level2b.Asn_Lv2WFSSParallel(*args, **kwargs)[source]

Bases: AsnMixin_Lv2WFSS, AsnMixin_Lv2Spectral

Level 2b WFSS/GRISM associations for WFSS taken in pure-parallel mode.

Characteristics:
  • Association type: spec2

  • Pipeline: calwebb_spec2

  • Multi-object science exposures

  • Single Science exposure

  • Require a source catalog from processing of the corresponding direct imagery.

WFSS is executed differently when taken as part of a pure-parallel proposal than when WFSS is done as the primary. The differences are as follows. When primary, all components, the direct image and the two GRISM exposures, are executed within the same observation. When in parallel, each component is taken as a separate observation. These are always in associations of type DIRECT_IMAGE.

Another difference is that there is no targetid assigned to the parallel exposures. However, since WFSS parallels are very specific, there is no need to constrain on target. A default value is used for the Level 3 product naming.

Attributes Summary

asnreg_marked

asnreg_role

Methods Summary

find_closest_direct(_science, directs)

Find the direct image that is closest to the science.

validate_candidates(_member)

Stub to always return True.

Attributes Documentation

asnreg_marked = True
asnreg_role = 'rule'

Methods Documentation

static find_closest_direct(_science, directs)[source]

Find the direct image that is closest to the science.

For NIRCam pure parallel observations, there should only be one long-wavelength direct image in a given direct_image candidate. Find it by searching for ‘long’ filenames. All [a|b]long filenames should belong to the same level 3 product, which will be associated to the grism image.

For NIRISS, only one direct image optical path should be associated with a given grism image.

Parameters:
_sciencedict

The science member to compare against; unused.

directs[dict[,…]]

The available direct members.

Returns:
closestdict

The direct image that is the “closest”

validate_candidates(_member)[source]

Stub to always return True.

For this association, stub this to always return True

Parameters:
_membermember

Member being added; ignored.

Returns:
bool

True.