uw-cryo / asp_plot

Scripts and notebooks to visualize output from the NASA Ames Stereo Pipeline
BSD 3-Clause "New" or "Revised" License
4 stars 0 forks source link

Use docker to allow running in a codesapce #51

Open bpurinton opened 1 month ago

bpurinton commented 1 month ago

@ShashankBice on slack:

Hey Ben, using the asp_plot library, how would you feel about a docker image on dockerhub, so that users can run from github code space directly? I can do that next week. The reason I ask is because I can not plot the basemaps on rfe, and dealing with the throttle on pfe has become a pain with their new code to stop processing, so something like codespace would be useful for me to just plot results for the jitter where i need to just provide the camera files which are small.

This is a good idea, I can also more quickly implement an option on the CLI to skip basemaps.

bpurinton commented 1 month ago

On https://github.com/uw-cryo/asp_plot/commit/cc5c27325b2c7064dbec170de4006d1c50872e44 I added an --add_basemap and --plot_icesat boolean option to the asp_plot CLI.

But I still like the idea of docker image + running in a codespace

bpurinton commented 1 month ago

@ShashankBice, I just want to be sure I understand the requirements for this. Are you wanting a .devcontainer.json like this one in asp_tutorials? So, added to this repo would be a devcontainer, and a link to open the repo in a codespace, and in that codespace in the browser, asp_plot would be pre-installed with all of its dependencies. Then a user could just drag and drop or otherwise upload camera files to the codespace VSCode running in the browser and run the tools?

The problem I see is that asp_plot, aside from the camera_optimization tools, uses a lot of the very large ASP output files for plotting that are not so easy to upload into a codespace.

So is the intention of the codespace only to run before/after camera optimization plots? Or do you envision a place to run the full asp_plot suite of plots?