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

Help Needed for new datasets #1

Open
SR-Roweb opened this issue May 18, 2021 · 2 comments
Open

Help Needed for new datasets #1

SR-Roweb opened this issue May 18, 2021 · 2 comments

Comments

@SR-Roweb
Copy link

What is the best way to read a new/custom baseline and raster? I can use the pyosp.datasets.get_path for the datasets available, but struggle to read new datasets outside of the pyosp.dataset folder that will allow pyosp.Orig_curv to work

@yzh211
Copy link
Collaborator

yzh211 commented May 19, 2021

What is the best way to read a new/custom baseline and raster? I can use the pyosp.datasets.get_path for the datasets available, but struggle to read new datasets outside of the pyosp.dataset folder that will allow pyosp.Orig_curv to work

Please try:

import pyosp
line = "path to your line shapefile"
raster = "path to your raster file"
orig = pyosp.Orig_curv(line, raster, width=1, line_stepsize=None, cross_stepsize=None)

Make sure to change 'width', 'line_stepsize', and 'cross_stepsize' based on your needs.

See also: https://pyosp.readthedocs.io/en/latest/pyosp.curvsp.html#pyosp.curvsp.Orig_curv

@SR-Roweb
Copy link
Author

Thank you very much, forgot to read through the modules link, all working well

@yzh211 yzh211 pinned this issue Aug 28, 2023
@yzh211 yzh211 reopened this Aug 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants