Parallel download of GOES images#7
Open
ninarobbins wants to merge 19 commits intoGeet-George:mainfrom
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is a pull request to add the scripts used to download GOES images taking advantage of parallelization. The way it is structured is in 3 python scripts and 3 shell scripts which run each of these python scripts individually.
run_mapper_goes16.shis run assbatch run_mapper_goes16.sh /path/to/dates_file.txt. This will generate the ".json" mapper files for all dates and store them in the path specified inmapper_goes16.py. These contain the mapper to the entire GOES data for that date.sbatch run_save_nc_goes16.sh /path/to/dates_file.txt. This runs the filesave_nc_goes16.py, which acesses the data through the mappers we saved, selects a subset in space, and saves that subset to a netCDF file for each day into the folder specified in the python file.sbatch run_plot_goes16.sh /path/to/dates_file.txt, which runs the fileplot_goes16.py, and saves each image in the folder defined in the python file.This all works fine, but it might not be the most optimized or concise way to do this. Generating the mappers is the most time consuming task by far, which is why here it is separated into a different process (you don't have to generate them every time you want a different subset/plot, you only need to run it once for a day and then you can use it to access all the data). Here the paths are hard coded into the scripts, which probably should be changed.