weac.utils.snowpilot_parser module¶
Deprecated import path for SnowPilotParser.
- class weac.utils.snowpilot_parser.SnowPilotParser(file_path)[source]¶
Bases:
objectParser for SnowPilot files using the snowpylot library.
- Parameters:
file_path (str)
- pit_slope_angle_deg()[source]¶
Slope angle from CAAML
validSlopeAngleif present, elseNone.- Return type:
float | None
- extract_layers(slope_angle_deg=0.0)[source]¶
Extract layers from snowpit.
Depths and thicknesses in CAAML are measured along the vertical. For WEAC, pass the same slope angle (degrees from horizontal) as
ScenarioConfig.phi; thicknesses and matching depths are scaled to slope-normal bycos(phi). The default0leaves depths unchanged (vertical equals slope-normal on flat terrain). To use the angle stored in the pit file, passslope_angle_deg=parser.pit_slope_angle_deg() or 0.0.- Parameters:
slope_angle_deg (float)
- Return type:
tuple[list[Layer], list[str]]