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.
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.
yeah that's why I did them separately, especially because the BGC variables are non-overlapping
There was a problem hiding this comment.
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.
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.
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?
|
@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.
@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.
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: