cryoswath.test_plots package#
Submodules#
cryoswath.test_plots.maps module#
Smell-check results by plotting spatial aggregates
- cryoswath.test_plots.maps.coverage(l3_data_or_filepath, at_time=DatetimeIndex(['2010-10-01', '2011-10-01', '2012-10-01', '2013-10-01', '2014-10-01', '2015-10-01', '2016-10-01', '2017-10-01', '2018-10-01', '2019-10-01', '2020-10-01', '2021-10-01', '2022-10-01', '2023-10-01'], dtype='datetime64[ns]', freq='12MS'))[source]#
Plot L3 coverage diagnostics (IQR distribution and map).
- Parameters:
l3_data_or_filepath (Dataset | str)
at_time (Timestamp | DatetimeIndex)
- Return type:
Figure
- cryoswath.test_plots.maps.l2(swath, column='height', pocas=None, glaciers=None, ax=None, cmap=<matplotlib.colors.ListedColormap object>)[source]#
Plot L2 swath/POCA point elevations with optional glacier context.
- Parameters:
swath (GeoDataFrame)
column (str)
pocas (GeoDataFrame)
glaciers (GeoSeries | GeoDataFrame)
ax (Axes)
cmap (Colormap)
- Return type:
Axes
cryoswath.test_plots.timeseries module#
Smell-check results by plotting time series
- cryoswath.test_plots.timeseries.elevation_change(*data, type=('plain',), pivot_month=10, start_date=Timestamp('2010-10-01 00:00:00'), end_date=None, plot_specs=({},), ax=None, add_legend=True, despine={'trim': True})[source]#
Plot regional mean elevation-change series with optional transforms.
- Parameters:
data (DataArray)
type (Iterable[Literal['plain', 'start_at_0', 'cummulative', 'interleafed-cummulative']])
pivot_month (int)
start_date (Timestamp)
end_date (Timestamp)
plot_specs (Iterable[dict[str, Any]])
ax (Axes)
add_legend (bool)
despine (dict[str, Any])
- Return type:
Axes
cryoswath.test_plots.waveform module#
Quick-look waveform plots for coherence, power, and DEM transects.
- cryoswath.test_plots.waveform.dem_transect(waveform, *, ax=None, line_properties={'dem': {'color': 'black', 'facecolor': 'xkcd:ice', 'linestyle': 'solid', 'linewidth': 0.6}, 'excluded': {'color': 'tab:pink', 'linewidth': 1, 'marker': 'x', 'markersize': 5}, 'poca': {'color': 'tab:green', 'linewidth': 1, 'marker': 'o', 'markersize': 5}, 'swath': {'color': 'tab:blue', 'linewidth': 1, 'marker': '.', 'markersize': 5}}, selected_phase_only=True, dem_file_name_or_path=None)[source]#
Plot cross-track elevation candidates against sampled DEM profile.
- Parameters:
ax (Axes)
line_properties (dict[str, dict[str, any]])
selected_phase_only (bool)
dem_file_name_or_path (str)
Module contents#
Quick-look plotting helpers for validation and debugging.