-
Couldn't load subscription status.
- Fork 22
Add Copernicus BGC DataWrangling #607
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
base: main
Are you sure you want to change the base?
Conversation
|
Oh I see download_dataset is addressed in #522 |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #607 +/- ##
==========================================
- Coverage 23.06% 18.69% -4.38%
==========================================
Files 47 47
Lines 2844 2857 +13
==========================================
- Hits 656 534 -122
- Misses 2188 2323 +135 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| available_variables(::GLORYSStatic) = copernicus_physics_dataset_variable_names | ||
| available_variables(::GLORYSDaily) = copernicus_physics_dataset_variable_names | ||
| available_variables(::GLORYSMonthly) = copernicus_physics_dataset_variable_names | ||
| available_variables(::GLORYSBGCDaily) = copernicus_bgc_daily_dataset_variable_names | ||
| available_variables(::GLORYSBGCMonthly) = copernicus_bgc_monthly_dataset_variable_names |
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.
how could we have available_variables give out different list of variables based on the dataset type if all variables are in one dictionary?
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.
yeah that's why I did them separately, especially because the BGC variables are non-overlapping
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.
I suggest using a single "master" copernicus_bgc_monthly_dataset_variable_names, and then writing out the available variable names explicitly in these functions. That way we have a single readable reference for all of the variables that can be downloaded from copernicus. It might become important as the number of variables grows.
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.
Ok I reverted to a 'master' dict copernicus_dataset_variable_names and wrote out the variables explicitly in the avaiable_variables function. Is that what you were thinking?
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.
@glwagner does this look ok now?
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.
yes, thank you! I can eliminate the repeated code by creating a more organized type hierarchy. do you mind if I commit to your branch?
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.
Go for it!
|
@vtamsitt I made these changes:
If you approve I think this is ready to merge. There are some downloading errors but they seem to be unrelated (the copernicus tests pass). |
| :ph, | ||
| :surface_co2, | ||
| :total_phytoplankton, | ||
| ) |
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.
@vtamsitt this expresses how the monthly variables are a superset of the daily variables
|
|
||
| # Datasets | ||
| abstract type CopernicusDataset end | ||
| abstract type GLORYSDataset <: CopernicusDataset end |
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.
This abstract type allows us to implement one available_variables for the two physics datasets GLORYSMonthly, GLORYSDaily
This all looks good to me and fine to merge @glwagner! Thanks for documenting the changes. |
|
@navidcy do you know anything about these failures? |
|
looks like the ecco username or ecco password is not recognized |
Added GLORYS 1/4 degree BGC dataset metadata to Copernicus.jl
A couple of things: