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

running s2p on image crops #163

Open
A-Jacobson opened this issue Jul 23, 2018 · 3 comments
Open

running s2p on image crops #163

A-Jacobson opened this issue Jul 23, 2018 · 3 comments

Comments

@A-Jacobson
Copy link

I'm trying to run s2p on worldview3 pairs without downloading the entire 40k by 40k full-images. I can do this with nasa ASP by placing my crops of interest in their appropriate locations within an empty numpy array the size of the full-image and supplying a --left-image-crop and a --right-image-crop at runtime. Is there a way to manually set a crop for each image to s2p? If not, what would be the best way to run s2p on image crops without ever downloading the full images?

@A-Jacobson A-Jacobson changed the title Multi ROI's in config running s2p on image crops Jul 23, 2018
@carlodef
Copy link
Contributor

You can run s2p without downloading the input images by prefixing the url of your input images with /vsicurl/. Support for GDAL vsicurl was introduced in pull request #145

@A-Jacobson
Copy link
Author

Hi Carlo, thanks for your reply. I've been learning a lot going through your library.

Unfortunately, I'm not aware of a way to get a url of the full image in a straightforward way. My understanding is that digital globe stores full images in dask arrays distributed across many machines and that compiling a full image's dask array to a geotiff takes a lot of bandwidth and time. Using digital globe's api I am able to access geotiffs for crops of the full image in a cheap/quick manner. My areas of interest are usually the size of a few houses or less than 500 by 500 pixels so I am hoping to find a way to run the pipeline using just those image crops.

The problem with the cropping approach has been that I do not know how to crop rpcs and haven't been able to find any literature on the topic. I saw your rpc_cropper tool but that tool takes a full image as input as well. Is there a way to get this to work with s2p? or perhaps a way for me to crop the rpcs on my own without using the full image as input?

@BryceCicada
Copy link

Hi,
This is exactly what I'd like to do. @A-Jacobson, did you get anything like this working?

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

3 participants