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

Create command-line utility to mimic the Batch Processing notebook #93

Open
poynting opened this issue Nov 9, 2019 · 9 comments
Open

Comments

@poynting
Copy link
Contributor

poynting commented Nov 9, 2019

Notebooks are nice, but a command-line tool for stacking would be handy

Should, at minimum, take
-folder of input images to stack
-folder to store the results
-explicit path of image to use for alignment
-explicit path of image containing a panel
-whether or not to generate preview images (e.g. RGB, CIR, etc)
-(options) which bands to use for the previews (e.g. 3,2,1 for RedEdge RGB)

Potential additions/improvements:

  • Substitute alignment image with a file specifying the warp matrices
  • Substitute panel image with a file containing a time series of irradiance information
  • Option to stack in parallel using n cores
  • Include reading of a vector polygon file to define area of images to process
  • HTML output report containing map of images like the current notebook
@jonnyforestGIS
Copy link

jonnyforestGIS commented Feb 19, 2020

@poynting I dig in the subject and find this tutorial that can help.
https://towardsdatascience.com/how-to-write-python-command-line-interfaces-like-a-pro-f782450caf0d

@mdanilevicz
Copy link

Hi, I did a rough version of this to process a batch of Altum images. Would be happy to share the code if you think it would be help, although my coding skills are not spectacular.
:)

@JPI93
Copy link

JPI93 commented May 24, 2020

Hi, I did a rough version of this to process a batch of Altum images. Would be happy to share the code if you think it would be help, although my coding skills are not spectacular.
:)

I'm working on writing something similar at the moment. It'd be amazingly helpful if you could share your code - if you don't mind :)

@fischer5
Copy link

I would also be interested in this, if possible! I am working with Altum imagery too and it would be very helpful as I'm not a coding professional either. Cheers :)

@poynting
Copy link
Contributor Author

I'm happy to check out a PR or gist if anyone has code they would like to share.

@mdanilevicz
Copy link

Sure, no problems.
I will take a look at it to check if it is still running and share :)

@mdanilevicz
Copy link

mdanilevicz commented May 27, 2020

The script is uploaded here https://github.com/moDanilevicz/multispectral_img

To run a test you have to use a few flags:
radio_calib_draft.py -i -p -o -t <thumbnails? True/False> --dls <use it?True/False>

The code itself can be improved (and organized) a lot, but hope this can help :)

Edit: Suggestions to improve are more than welcome.

@JPI93
Copy link

JPI93 commented May 27, 2020

@moDanilevicz thanks for linking your code :)

@poynting
Copy link
Contributor Author

Thanks for working on this all. I have merged @JPI93's code from #114 into a branch (reconcile-cli-113) and we'll plan to work from there.

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

5 participants