Add radar precipitation datasets overview notebook#29
Draft
Add radar precipitation datasets overview notebook#29
Conversation
…asets into feat/radar-overview-notebook
Member
|
You may want to sample mutiple timestep at random and do an .any() over time to get the full coverage. Expecially fo the italian datacube many radars have been added/removed over time so to get the full domain it a good idea to merge multiple random timesteps over the years :) |
Member
|
In cell nr.7. Instead of: # Use first timestep to define the dataset spatial domain via non-NaN points.
da0 = ds[var_name].isel(time=0)
domain_mask = da0.notnull().astype(float).where(da0.notnull())You can do: # select 20 random timesteps and do the union of their valid data points to get a more complete domain mask
time_indices = np.random.choice(ds[var_name].shape[0], size=20, replace=False)
domain_mask = None
for t in time_indices:
da = ds[var_name].isel(time=t)
valid_mask = da.notnull()
if domain_mask is None:
domain_mask = valid_mask
else:
domain_mask = domain_mask | valid_mask |
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.
Describe your changes
Now that we have more than one dataset in the catalog I thought might be nice to introduce an overview notebook where we can render the spatial and temporal extent of the domains we've got.
The motivation for this is to give people a quick overview of the available data, and then from that overview be able to link them to the dataset to use.
NB: There is currently an issue with DMI dataset where NaNs are being used within the domain interior which we're working out on slack.
Here's the current domain overview:
No change of dependencies needed.
@franchg @arjj8
Issue Link
< Link to the relevant issue or task. > (e.g.
closes #00orsolves #00)Type of change
Checklist before requesting a review
pullwith--rebaseoption if possible).Checklist for reviewers
Each PR comes with its own improvements and flaws. The reviewer should check the following:
Author checklist after completed review
reflecting type of change (add section where missing):
Checklist for assignee