diff --git a/src/aws/osml/image_processing/__init__.py b/src/aws/osml/image_processing/__init__.py index fbf7042..c7c4a90 100644 --- a/src/aws/osml/image_processing/__init__.py +++ b/src/aws/osml/image_processing/__init__.py @@ -105,14 +105,14 @@ :width: 400 :alt: Histogram Stretch Applied to Sample SICD Image - Example of applying histogram_stretch to a sample SICD image. + Example of applying histogram_stretch to a sample SICD image. .. figure:: ../images/SAR-QuarterPowerImage.png :width: 400 :alt: Quarter Power Image Applied to Sample SICD Image - Example of applying quarter_power_image to a sample SICD image. + Example of applying quarter_power_image to a sample SICD image. ------------------------- diff --git a/src/aws/osml/photogrammetry/__init__.py b/src/aws/osml/photogrammetry/__init__.py index c443c24..481a03d 100644 --- a/src/aws/osml/photogrammetry/__init__.py +++ b/src/aws/osml/photogrammetry/__init__.py @@ -20,7 +20,7 @@ :width: 400 :alt: Photogrammetry Class Diagram - Class diagram of the aws.osml.photogrammetry package showing public and private classes. + Class diagram of the aws.osml.photogrammetry package showing public and private classes. Geolocating Image Pixels: Basic Examples **************************************** @@ -77,9 +77,12 @@ :caption: Example showing use of an external SRTM DEM to provide elevation data for image center ds, sensor_model = load_gdal_dataset("./imagery/sample.nitf") + + # This sets up an external elevation model assuming terrain data is named something like: + # ./SRTM/dted/w044/s23.dt2. elevation_model = DigitalElevationModel( - SRTMTileSet(version="1arc_v3"), - GDALDigitalElevationModelTileFactory("./local-SRTM-tiles")) + GenericDEMTileSet(format_spec="format_spec="dted/%oh%od/%lh%ld.dt2"), + GDALDigitalElevationModelTileFactory("./SRTM")) # Note the order of ImageCoordinate is (x, y) and the resulting geodetic coordinate is # (longitude, latitude, elevation) with longitude and latitude in **radians** and elevation in meters. diff --git a/tox.ini b/tox.ini index a2d49de..da2e17a 100644 --- a/tox.ini +++ b/tox.ini @@ -40,7 +40,7 @@ commands = skip_install = true conda_env = deps = pre-commit -commands = pre-commit run --all-files --show-diff-on-failure +commands = pre-commit run --all-files [testenv:twine] conda_env = @@ -51,7 +51,7 @@ commands = twine check dist/*.tar.gz [testenv:docs] -conda_env = +conda_env = {toxinidir}/environment.yml changedir = doc deps = sphinx>=6.2.1