joyprojects / wildfire

This is a repository for working with GOES satellite data to model Wildfires.
MIT License
1 stars 1 forks source link

Update mpi code and CLI structure #71

Closed camenpihor closed 4 years ago

camenpihor commented 4 years ago

My first stab at refactoring some of the MPI code and the CLI structure in anticipation for more complexity. I also updated the downloading code such that it only downloads files from s3 that are not already local. Lastly, I fix a typo/mislabeling rescale_to_500m should have been rescale_to_2km

after installing the package following the readme, checkout download --help and label --help.

to run wildfire downloading download goes-level-1 2019-01-01T01:00:00 2019-01-01T01:02:00 (see download goes-level-1 --help for more options)

to run wildfire labelling using threshold model download goes-threshold 2019-01-01T01:00:00 2019-01-01T01:02:00 --download (see label goes-threshold --help for more options)

to run wildfire labelling in parallel using mpi4py mpirun -n 4 label goes-threshold 2019-10-27T20:00:00 2019-10-27T20:01:00 --download

camenpihor commented 4 years ago

todo: write tests for cli

camenpihor commented 4 years ago

Github workflows being weird. Merging this now and will create separate branch attempting to figure out what's going on