asp_plot.scenes#
Attributes#
Classes#
Discover the left/right sub-sampled scene files for a stereo directory. |
|
Plot raw or map-projected images from ASP stereo processing. |
Module Contents#
- class asp_plot.scenes.SceneFiles(directory, stereo_directory)#
Discover the left/right sub-sampled scene files for a stereo directory.
Isolates file discovery from the plotting in
ScenePlotter, mirroring theStereoFiles/StereoPlottersplit. Resolved paths and flags are exposed as plain attributes forScenePlotterto consume.- is_vantor#
Whether the source imagery is from a Vantor-owned satellite (WorldView family, GeoEye, QuickBird, etc.); gates the “© Vantor” copyright overlay.
- Type:
- left_scene_sub_fn, right_scene_sub_fn
Paths to the left/right sub-sampled scene files.
- Type:
str or None
- directory#
- full_stereo_directory#
- is_vantor = False#
- left_scene_sub_fn#
- right_scene_sub_fn#
- stereo_directory#
- class asp_plot.scenes.ScenePlotter(directory, stereo_directory, **kwargs)#
Bases:
asp_plot.utils.PlotterPlot raw or map-projected images from ASP stereo processing.
This class extends the base Plotter class to provide visualization of raw or map-projected images created during ASP stereo processing. It locates and plots the left and right scenes from a stereo pair.
Examples
>>> scene_plotter = ScenePlotter('/path/to/asp', 'stereo', title="Stereo Images") >>> scene_plotter.plot_scenes(save_dir='/path/to/output', fig_fn='stereo_images.png')
- plot_scenes(save_dir=None, fig_fn=None)#
Plot the left and right images side by side.
Creates a figure with two subplots showing the left and right images from the stereo pair. Map-projection is not assumed. Each image is displayed with its filename above it.
- Parameters:
- Returns:
Displays the plot and optionally saves it
- Return type:
None
Notes
If either image file is missing, the corresponding subplot will display a message indicating that required files are missing.
- property directory#
- files#
- property full_stereo_directory#
- property left_scene_sub_fn#
- property right_scene_sub_fn#
- property stereo_directory#
- asp_plot.scenes.logger#