-
-
Notifications
You must be signed in to change notification settings - Fork 6
Convert NWP grib files to Zarr intermediate #357
Conversation
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
…otebook so will definitely break auto checks
for more information, see https://pre-commit.ci
…sk does not help.
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
…ad of the writing process. May fail becuase it may unblock reader processes in the wrong order.
…is that it takes about 6 seconds. Too slow
) | ||
|
||
|
||
@click.command() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice use of click
4) Use multiple worker processes. Each worker process is given a list of | ||
grib files associated with a single NWP init datetime. The worker process loads these grib | ||
files and does some simple post-processing, and then the worker process appends to the | ||
destination zarr. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great notes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For me it looks all very good. I like the docs and comments you have done. That makes it a lot easier.
There's probably a few things like
- tests,
- move functions to their own file
- hard coded values, move to their own file
- add a bit more logging
but I think these can all wait until Move our data download & conversion scripts into separate repos (preparing for production) #359
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! I like all the comments. Made it really easy to follow
Pull Request
Description
Write a script to convert NWP native files (in
grib
format) to a Zarr.Fixes #344
This script ended up being more complex than I was imagining!
Later, as part of #359, this script will be moved into its own repository, and the functions will be put into a nice little Python package (with unittests!)
How Has This Been Tested?
The script runs successfully and has converted all our NWP data to Zarr.
Checklist: