orca.metadata.stageiii

Stage III slow transient pipeline path management.

Provides the StageIIIPathsManager class for managing file paths in the Stage III pipeline, which processes slow (10-second integration) visibility data for transient and slow cadence science.

Classes

StageIIIPathsManager

Dataclass-based path manager for Stage III data products.

Attributes

spws

Classes

StageIIIPathsManager

Path manager for Stage III slow transient pipeline.

Module Contents

orca.metadata.stageiii.spws = ['13MHz', '18MHz', '23MHz', '27MHz', '32MHz', '36MHz', '41MHz', '46MHz', '50MHz', '55MHz',...[source]
class orca.metadata.stageiii.StageIIIPathsManager[source]

Bases: orca.metadata.pathsmanagers.PathsManager

Path manager for Stage III slow transient pipeline.

A dataclass-based path manager that handles measurement set discovery and data product path generation for the Stage III pipeline.

root_dir[source]

Root directory containing raw measurement sets.

Type:

str

work_dir[source]

Working directory for derived data products.

Type:

str

subband[source]

Frequency subband identifier (e.g., ‘73MHz’).

Type:

str

start[source]

Start time of the observation range.

Type:

datetime

end[source]

End time of the observation range.

Type:

datetime

partitioned_by_hour[source]

Whether data is organized in hourly subdirectories.

Type:

bool

root_dir: str[source]
work_dir: str[source]
subband: str[source]
start: datetime.datetime[source]
end: datetime.datetime[source]
partitioned_by_hour: bool = True[source]
property ms_list: List[Tuple[datetime.datetime, pathlib.Path]][source]

List of (timestamp, path) tuples for measurement sets in the time range.

get_bcal_path(bandpass_date: datetime.date, spw: str | None = None) str[source]

Get the path to a bandpass calibration table.

Parameters:
  • bandpass_date – Date of the bandpass solution.

  • spw – Spectral window. Defaults to this manager’s subband.

Returns:

Absolute path to the bandpass calibration table.

get_gaintable_path(timestamp: datetime.date | datetime.datetime, spw: str, gaintype: str) str[source]

Get the path to a gain calibration table.

Parameters:
  • timestamp – Date or datetime of the calibration solution.

  • spw – Spectral window identifier.

  • gaintype – Type of gain table (e.g., ‘bcal’, ‘gcal’).

Returns:

Absolute path to the gain table.

time_filter(start_time: datetime.datetime, end_time: datetime.datetime) StageIIIPathsManager[source]

Create a new manager filtered to a specific time range.

Parameters:
  • start_time – New start time (inclusive).

  • end_time – New end time (exclusive).

Returns:

New StageIIIPathsManager instance with filtered time range.

data_product_path(timestamp: datetime.datetime, suffix: str) str[source]

Generate path for a data product file.

Parameters:
  • timestamp – Timestamp of the observation.

  • suffix – Product type suffix (e.g., ‘fits’, ‘npz’).

Returns:

Absolute path to the data product.