particula.data.sources.arm_met
Compatibility imports for the ARM surface meteorology instrument adapter.
Functions
| Name | Description |
|---|---|
arm_environment_from_fields | Construct one box at an exact timezone-aware observation time. |
read_arm_environment | Read one exact UTC time from an ARM MET classic NetCDF file. |
arm_environment_from_fieldsfunction#
Re-exported from
particula.instruments.arm_metView sourcedef 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) -> EnvironmentDataConstruct 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#
Re-exported from
particula.instruments.arm_metView sourcedef read_arm_environment(path: str | Path, when: datetime, *, other_saturation_ratios: Sequence[float] = (), water_index: int | None = None) -> EnvironmentDataRead 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.