Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

geoid issue-19 #20

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@ The ice-road-copter suite is designed to post-process point cloud data and enabl

## Setting things up! :hammer:
### Downloading ASP precompiled binaries
1. Download latest stable build (Linux or OSx): https://github.com/NeoGeographyToolkit/StereoPipeline/releases and unzip the folder into the ice-road-copters directory. There are different builds for each OS, but you may have to dig a little to find the OSx build, it gets updated less.
2. Rename this folder as `ASP` and remove the zipped file
- Download latest stable build (Linux or OSx): https://github.com/NeoGeographyToolkit/StereoPipeline/releases and unzip file onto your machine. There are different builds for each OS, but you may have to dig a little to find the OSx build, it gets updated less.


## Setting up Conda environment
### Setting up Conda environment

```
$ conda env create -f iceroad_env.yaml
Expand Down
3 changes: 3 additions & 0 deletions scripts/geoid_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,9 @@ def transform_raster(in_dir, epsg, asp_dir, transform_command, log ):
asp_dir = join(asp_dir, 'bin')
else:
asp_dir = abspath(join('ASP', 'bin'))
# check ASP install exists
if not exists(asp_dir):
raise Exception(f'The following is not the correct path to ASP: {asp_dir}')

# setup our directory structure
geoid_dir = join(dirname(in_dir), 'geoid')
Expand Down
5 changes: 4 additions & 1 deletion scripts/ice-road-pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
from cmath import exp
from docopt import docopt
from glob import glob
from os.path import abspath, join, basename, isdir
from os.path import abspath, join, basename, isdir, exists
from laz_align import laz_align
import rioxarray as rio
from rasterio.crs import CRS
Expand Down Expand Up @@ -60,6 +60,9 @@
asp_dir = join(asp_dir, 'bin')
else:
asp_dir = abspath(join('ASP', 'bin'))
# check ASP install exists
if not exists(asp_dir):
raise Exception(f'The following is not the correct path to ASP: {asp_dir}')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! ❤️

shp_fp = args.get('-s')
if shp_fp:
shp_fp = abspath(shp_fp)
Expand Down