Skip to content

particula.data.sources.arm_met

Compatibility imports for the ARM surface meteorology instrument adapter.

Functions

NameDescription
arm_environment_from_fieldsConstruct one box at an exact timezone-aware observation time.
read_arm_environmentRead one exact UTC time from an ARM MET classic NetCDF file.

arm_environment_from_fieldsfunction#

def arm_environment_from_fields(times_utc: ArrayLike, fields: Mapping[str, ArrayLike], units: Mapping[str, str], when: datetime, *, missing_values: Mapping[str, Sequence[float]] | None = None, other_saturation_ratios: Sequence[float] = (), water_index: int | None = None) -> EnvironmentData

Construct one box at an exact timezone-aware observation time.

times_utc is a 1-D datetime64 array interpreted as UTC. Supply temp_mean (degC), atmos_pressure (kPa), rh_mean (%) and their three qc_ fields on the same axis. Mask or declare raw missing values before conversion. Other species’ saturation ratios follow model order with water removed.

read_arm_environmentfunction#

def read_arm_environment(path: str | Path, when: datetime, *, other_saturation_ratios: Sequence[float] = (), water_index: int | None = None) -> EnvironmentData

Read one exact UTC time from an ARM MET classic NetCDF file.

Requires a time coordinate in seconds since a reference epoch. Use arm_environment_from_fields for arrays decoded by other file readers.