asp-plot 0.2.1__tar.gz → 0.3.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {asp_plot-0.2.1 → asp_plot-0.3.0}/PKG-INFO +66 -37
- asp_plot-0.3.0/README.md +115 -0
- asp_plot-0.3.0/asp_plot/altimetry.py +627 -0
- {asp_plot-0.2.1 → asp_plot-0.3.0}/asp_plot/bundle_adjust.py +25 -33
- asp_plot-0.3.0/asp_plot/cli/__init__.py +0 -0
- {asp_plot-0.2.1 → asp_plot-0.3.0}/asp_plot/cli/asp_plot.py +39 -26
- {asp_plot-0.2.1 → asp_plot-0.3.0}/asp_plot/processing_parameters.py +17 -14
- {asp_plot-0.2.1 → asp_plot-0.3.0}/asp_plot/scenes.py +45 -26
- asp_plot-0.3.0/asp_plot/stereo.py +327 -0
- {asp_plot-0.2.1 → asp_plot-0.3.0}/asp_plot/stereopair_metadata_parser.py +19 -11
- {asp_plot-0.2.1 → asp_plot-0.3.0}/asp_plot/utils.py +127 -33
- {asp_plot-0.2.1 → asp_plot-0.3.0}/asp_plot.egg-info/PKG-INFO +66 -37
- {asp_plot-0.2.1 → asp_plot-0.3.0}/asp_plot.egg-info/SOURCES.txt +2 -0
- {asp_plot-0.2.1 → asp_plot-0.3.0}/pyproject.toml +1 -1
- {asp_plot-0.2.1 → asp_plot-0.3.0}/setup.py +2 -2
- asp_plot-0.3.0/tests/__init__.py +0 -0
- asp_plot-0.3.0/tests/test_altimetry.py +56 -0
- {asp_plot-0.2.1 → asp_plot-0.3.0}/tests/test_bundle_adjust.py +10 -5
- asp_plot-0.3.0/tests/test_imports.py +41 -0
- {asp_plot-0.2.1 → asp_plot-0.3.0}/tests/test_processing_parameters.py +2 -1
- {asp_plot-0.2.1 → asp_plot-0.3.0}/tests/test_scenes.py +3 -2
- {asp_plot-0.2.1 → asp_plot-0.3.0}/tests/test_stereo.py +2 -1
- asp_plot-0.2.1/README.md +0 -86
- asp_plot-0.2.1/asp_plot/__init__.py +0 -6
- asp_plot-0.2.1/asp_plot/stereo.py +0 -289
- asp_plot-0.2.1/tests/__init__.py +0 -6
- asp_plot-0.2.1/tests/test_imports.py +0 -22
- {asp_plot-0.2.1 → asp_plot-0.3.0}/LICENSE +0 -0
- {asp_plot-0.2.1/asp_plot/cli → asp_plot-0.3.0/asp_plot}/__init__.py +0 -0
- {asp_plot-0.2.1 → asp_plot-0.3.0}/asp_plot.egg-info/dependency_links.txt +0 -0
- {asp_plot-0.2.1 → asp_plot-0.3.0}/asp_plot.egg-info/entry_points.txt +0 -0
- {asp_plot-0.2.1 → asp_plot-0.3.0}/asp_plot.egg-info/top_level.txt +0 -0
- {asp_plot-0.2.1 → asp_plot-0.3.0}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: asp_plot
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.3.0
|
|
4
4
|
Summary: Package for plotting outputs Ames Stereo Pipeline processing
|
|
5
5
|
Author: Ben Purinton
|
|
6
6
|
Author-email: Ben Purinton <purinton@uw.edu>
|
|
@@ -26,14 +26,72 @@ Our objective is to release a modular Python package with a command-line interfa
|
|
|
26
26
|
|
|
27
27
|
This is a work in progress.
|
|
28
28
|
|
|
29
|
-
The directory `original_code/` contains initial notebooks compiled from recent projects using sample stereo images from the Maxar WorldView, Planet SkySat-C and BlackSky Global constellations.
|
|
29
|
+
The directory `original_code/` contains initial notebooks compiled from recent projects using sample stereo images from the Maxar WorldView, Planet SkySat-C and BlackSky Global constellations.
|
|
30
30
|
|
|
31
31
|
The functionality of these notebooks is being ported to the `asp_plot/` directory, which is the package `asp_plot`.
|
|
32
32
|
|
|
33
|
+
## Files you will need from ASP processing
|
|
33
34
|
|
|
34
|
-
|
|
35
|
+
During the `stereo` or `parallel_stereo` steps at the heart of the Ames Stereo Pipeline, you can add this to the command to ensure that the files needed for plotting are retained, and files that are not required are cleaned up:
|
|
35
36
|
|
|
36
|
-
|
|
37
|
+
```
|
|
38
|
+
--keep-only '.mask .txt .exr .match -L.tif -L_sub.tif -R_sub.tif -D_sub.tif -D.tif -RD.tif -F.tif -PC.tif'
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Not all of those files are used in the plotting, but all are useful for re-processing and detailed analyses.
|
|
42
|
+
|
|
43
|
+
## Install via pip
|
|
44
|
+
|
|
45
|
+
```
|
|
46
|
+
pip install asp-plot
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
## Notebook example usage
|
|
50
|
+
|
|
51
|
+
Examples of the modular usage of the package can be found in the `notebooks/` directory.
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
## CLI usage
|
|
55
|
+
|
|
56
|
+
A full report and individual plots can be output via the command-line:
|
|
57
|
+
|
|
58
|
+
```
|
|
59
|
+
$ asp_plot --directory ./ \
|
|
60
|
+
--bundle_adjust_directory ba \
|
|
61
|
+
--stereo_directory stereo \
|
|
62
|
+
--map_crs EPSG:32604 \
|
|
63
|
+
--reference_dem ref_dem.tif
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
Before that, we recommend running `asp_plot --help` for details (and defaults) of all of the command-line flags:
|
|
67
|
+
|
|
68
|
+
```
|
|
69
|
+
$ asp_plot --help
|
|
70
|
+
Usage: asp_plot [OPTIONS]
|
|
71
|
+
|
|
72
|
+
Options:
|
|
73
|
+
--directory TEXT Directory of ASP processing with scenes and
|
|
74
|
+
sub-directories for bundle adjustment and
|
|
75
|
+
stereo. Default: current directory
|
|
76
|
+
--bundle_adjust_directory TEXT Directory of bundle adjustment files.
|
|
77
|
+
Default: ba
|
|
78
|
+
--stereo_directory TEXT Directory of stereo files. Default: stereo
|
|
79
|
+
--map_crs TEXT Projection for bundle adjustment plots.
|
|
80
|
+
Default: EPSG:4326
|
|
81
|
+
--reference_dem TEXT Reference DEM used in ASP processing. No
|
|
82
|
+
default. Must be supplied.
|
|
83
|
+
--report_filename TEXT PDF file to write out for report into the
|
|
84
|
+
processing directory supplied by
|
|
85
|
+
--directory. Default: Directory name of ASP
|
|
86
|
+
processing
|
|
87
|
+
--report_title TEXT Title for the report. Default: Directory
|
|
88
|
+
name of ASP processing
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
## Development
|
|
93
|
+
|
|
94
|
+
### Install from source
|
|
37
95
|
|
|
38
96
|
If you instead want to install the source code for e.g. developing the project:
|
|
39
97
|
|
|
@@ -46,12 +104,16 @@ $ pip install -e .
|
|
|
46
104
|
$ python3 setup.py install
|
|
47
105
|
```
|
|
48
106
|
|
|
107
|
+
### Run tests
|
|
108
|
+
|
|
49
109
|
To ensure the install was successful, tests can be run with:
|
|
50
110
|
|
|
51
111
|
```
|
|
52
112
|
$ pytest
|
|
53
113
|
```
|
|
54
114
|
|
|
115
|
+
When you add a new feature, add some test coverage as well.
|
|
116
|
+
|
|
55
117
|
### Package and upload
|
|
56
118
|
|
|
57
119
|
```
|
|
@@ -66,36 +128,3 @@ $ python3 -m build
|
|
|
66
128
|
$ python3 -m pip install --upgrade twine
|
|
67
129
|
$ python3 -m twine upload dist/*
|
|
68
130
|
```
|
|
69
|
-
|
|
70
|
-
### Install via pip
|
|
71
|
-
|
|
72
|
-
```
|
|
73
|
-
pip install asp-plot
|
|
74
|
-
```
|
|
75
|
-
|
|
76
|
-
## Notebook example usage
|
|
77
|
-
|
|
78
|
-
Examples of the modular usage of the package can be found in the `notebooks/` directory.
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
## CLI usage
|
|
82
|
-
|
|
83
|
-
A full report and individual plots can be output via the command-line:
|
|
84
|
-
|
|
85
|
-
```
|
|
86
|
-
$ asp_plot --directory ./asp_processing \
|
|
87
|
-
--bundle_adjust_directory ba \
|
|
88
|
-
--stereo_directory stereo \
|
|
89
|
-
--map_crs EPSG:32604 \
|
|
90
|
-
--reference_dem ref_dem.tif \
|
|
91
|
-
--plots_directory asp_plots \
|
|
92
|
-
--report_filename asp_plot_report.pdf
|
|
93
|
-
```
|
|
94
|
-
|
|
95
|
-
Use:
|
|
96
|
-
|
|
97
|
-
```
|
|
98
|
-
$ asp_plot --help
|
|
99
|
-
```
|
|
100
|
-
|
|
101
|
-
for details (and defaults) of the command-line flags.
|
asp_plot-0.3.0/README.md
ADDED
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
# asp_plot
|
|
2
|
+
|
|
3
|
+
Scripts and notebooks to visualize output from the [NASA Ames Stereo Pipeline (ASP)](https://github.com/NeoGeographyToolkit/StereoPipeline).
|
|
4
|
+
|
|
5
|
+
## Motivation
|
|
6
|
+
|
|
7
|
+
Our objective is to release a modular Python package with a command-line interface (CLI) that can be run automatically on an ASP output directory to prepare a set of standard diagnostic plots, publication-quality output figures, and a pdf report with relevant information, similar to the reports prepared by many commercial SfM software packages (e.g., Agisoft Metashape, Pix4DMapper).
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
## Status
|
|
11
|
+
|
|
12
|
+
This is a work in progress.
|
|
13
|
+
|
|
14
|
+
The directory `original_code/` contains initial notebooks compiled from recent projects using sample stereo images from the Maxar WorldView, Planet SkySat-C and BlackSky Global constellations.
|
|
15
|
+
|
|
16
|
+
The functionality of these notebooks is being ported to the `asp_plot/` directory, which is the package `asp_plot`.
|
|
17
|
+
|
|
18
|
+
## Files you will need from ASP processing
|
|
19
|
+
|
|
20
|
+
During the `stereo` or `parallel_stereo` steps at the heart of the Ames Stereo Pipeline, you can add this to the command to ensure that the files needed for plotting are retained, and files that are not required are cleaned up:
|
|
21
|
+
|
|
22
|
+
```
|
|
23
|
+
--keep-only '.mask .txt .exr .match -L.tif -L_sub.tif -R_sub.tif -D_sub.tif -D.tif -RD.tif -F.tif -PC.tif'
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
Not all of those files are used in the plotting, but all are useful for re-processing and detailed analyses.
|
|
27
|
+
|
|
28
|
+
## Install via pip
|
|
29
|
+
|
|
30
|
+
```
|
|
31
|
+
pip install asp-plot
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## Notebook example usage
|
|
35
|
+
|
|
36
|
+
Examples of the modular usage of the package can be found in the `notebooks/` directory.
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
## CLI usage
|
|
40
|
+
|
|
41
|
+
A full report and individual plots can be output via the command-line:
|
|
42
|
+
|
|
43
|
+
```
|
|
44
|
+
$ asp_plot --directory ./ \
|
|
45
|
+
--bundle_adjust_directory ba \
|
|
46
|
+
--stereo_directory stereo \
|
|
47
|
+
--map_crs EPSG:32604 \
|
|
48
|
+
--reference_dem ref_dem.tif
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
Before that, we recommend running `asp_plot --help` for details (and defaults) of all of the command-line flags:
|
|
52
|
+
|
|
53
|
+
```
|
|
54
|
+
$ asp_plot --help
|
|
55
|
+
Usage: asp_plot [OPTIONS]
|
|
56
|
+
|
|
57
|
+
Options:
|
|
58
|
+
--directory TEXT Directory of ASP processing with scenes and
|
|
59
|
+
sub-directories for bundle adjustment and
|
|
60
|
+
stereo. Default: current directory
|
|
61
|
+
--bundle_adjust_directory TEXT Directory of bundle adjustment files.
|
|
62
|
+
Default: ba
|
|
63
|
+
--stereo_directory TEXT Directory of stereo files. Default: stereo
|
|
64
|
+
--map_crs TEXT Projection for bundle adjustment plots.
|
|
65
|
+
Default: EPSG:4326
|
|
66
|
+
--reference_dem TEXT Reference DEM used in ASP processing. No
|
|
67
|
+
default. Must be supplied.
|
|
68
|
+
--report_filename TEXT PDF file to write out for report into the
|
|
69
|
+
processing directory supplied by
|
|
70
|
+
--directory. Default: Directory name of ASP
|
|
71
|
+
processing
|
|
72
|
+
--report_title TEXT Title for the report. Default: Directory
|
|
73
|
+
name of ASP processing
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
## Development
|
|
78
|
+
|
|
79
|
+
### Install from source
|
|
80
|
+
|
|
81
|
+
If you instead want to install the source code for e.g. developing the project:
|
|
82
|
+
|
|
83
|
+
```
|
|
84
|
+
$ git clone git@github.com:uw-cryo/asp_plot.git
|
|
85
|
+
$ cd asp_plot
|
|
86
|
+
$ conda env create -f environment.yml
|
|
87
|
+
$ conda activate asp_plot
|
|
88
|
+
$ pip install -e .
|
|
89
|
+
$ python3 setup.py install
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
### Run tests
|
|
93
|
+
|
|
94
|
+
To ensure the install was successful, tests can be run with:
|
|
95
|
+
|
|
96
|
+
```
|
|
97
|
+
$ pytest
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
When you add a new feature, add some test coverage as well.
|
|
101
|
+
|
|
102
|
+
### Package and upload
|
|
103
|
+
|
|
104
|
+
```
|
|
105
|
+
$ rm -rf dist/
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
Then update version in `pyproject.toml` and `setup.py`, then:
|
|
109
|
+
|
|
110
|
+
```
|
|
111
|
+
$ python3 -m pip install --upgrade build
|
|
112
|
+
$ python3 -m build
|
|
113
|
+
$ python3 -m pip install --upgrade twine
|
|
114
|
+
$ python3 -m twine upload dist/*
|
|
115
|
+
```
|