-
Notifications
You must be signed in to change notification settings - Fork 0
Feat/gribjump #71
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
Merged
Merged
Feat/gribjump #71
Changes from 19 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
adf8c64
add optional dependency group with gribjump dependencies
andreas-grafberger 93c606a
chore: min ekh version
Oisin-M 8385bae
feat: add opt_1d_index to outputted station mapping df
Oisin-M 8943050
feat: first basic implementation using gribjump for timeseries extrac…
Oisin-M fc04787
fix: update returned xr metadata
Oisin-M 3b7f8d2
fix: add station as dimension
Oisin-M b481a3e
refactor: same handling of ekd config for extract_timeseries and comp…
Oisin-M f25c4aa
feat: update notebooks with new config parsing
Oisin-M c2b6081
refactor: share load_da between extract_timeseries and compute_hydros…
Oisin-M b1dbb9b
fix: remove duplicate ekd.from_source call in load_da
andreas-grafberger d5f561a
opt: pass ranges instead of indices to gribjump source
andreas-grafberger 0ccd02e
update earthkit-data minimum version to 0.18.0
andreas-grafberger 37fd63d
test(extract_timeseries): add basic unit tests for extractor (non-gri…
andreas-grafberger 8a6973c
refactor(extractor): simplify control flow and improve readability
andreas-grafberger f1c6953
feat(extractor): add type hints to some functions
andreas-grafberger 7db064f
chore: add disclaimer to gribjumplib in pyproject.toml
andreas-grafberger d5dda4d
chore: add installation instructions for experimental gribjump extras
andreas-grafberger 83c861b
chore: minor cosmetic changes like comments
andreas-grafberger 11470b4
chore: bump minimum earthkit-data version to 0.18.2
andreas-grafberger d413ccb
Change ProgessBar import from dask
andreas-grafberger 4d171bb
remove gribjumplib as a dependency
andreas-grafberger File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| import earthkit.data as ekd | ||
| from earthkit.hydro._readers import find_main_var | ||
|
|
||
|
|
||
| def load_da(ds_config, n_dims): | ||
| src_name = list(ds_config["source"].keys())[0] | ||
| source = ekd.from_source(src_name, **ds_config["source"][src_name]) | ||
| ds = source.to_xarray(**ds_config.get("to_xarray_options", {})) | ||
| var_name = find_main_var(ds, n_dims) | ||
| da = ds[var_name] | ||
| return da, var_name |
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
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.