Comments (4)
First, I just want to say that this is an amazing tool. Glad to see how nicely this tool integrates with intake-esm. Thank you for putting it together! I am planning on testing it on Cheyenne in the coming days.
From a user perspective, I was wondering if it is worth moving the dim_name_dict
into a YAML or JSON config file (persisted outside the package (~/config/cmip6_preprocessing.yaml
) maybe? or some other location) that gets read by the package?
https://github.com/jbusecke/cmip6_preprocessing/blob/bcc9c108ecae72a8460f012b37756af691cd2985/cmip6_preprocessing/preprocessing.py#L196-L200
Having the content of the dictionary in a config file would probably make it easy for the user to extend the dictionary for their own use cases without needing to make changes in the code base itself. Thoughts?
from xmip.
Thanks for the kind words @andersy005. That is a great suggestion.
I agree that a yaml would be easier to handle, but my initial hope was that we could build a comprehensive database of all the 'quirks` in CMIP6 over time, so eventually the user does not have to configure this anymore (thus I would store it in the package.
What would be the use-case for a user-customized file in your opinion?
from xmip.
Just picking back up on this. How about we have a 'built in' database (cmip6), but then we could check for another file in the user directory and overwrite the existing one?
I am not that familiar with handling yaml files, but there must be an easy way to parse to a dict, right?
from xmip.
I have recently changed the way we use the internal renaming to a universal renaming dictionary. This is easier to manage, but perhaps it would still be good to be able to add additional dimension/coordinate names on the fly. I would like to move the further discussion about this to #52.
from xmip.
Related Issues (20)
- Refine options for handling of mismatches in metric dimensions
- Installation docs mention xgcm HOT 1
- The stripe emerged after masking the ERSSTv5 SST data HOT 12
- Using `interpolate_grid_label()` to regrid data HOT 4
- Trimming grid halo as part of the preprocessing HOT 1
- Drop Python 3.7
- Missing dependency for cf-xarray
- Docs build broken
- use datatree instead of dictionary of datasets HOT 2
- Pint issue for undecoded times HOT 4
- Change license badge
- manually changing dataframe for catalog HOT 3
- Change license type in feedstock
- CI failing due to ESMF import error HOT 1
- Construct 'member_id' as part of the preprocessing
- XMIP Initial Reprocessing Does Not Work as Expected
- `replace_x_y_nominal_lat_lon` does not work for > 360 `lon` coordinates HOT 2
- `longitude` and `latitude` dimensions lost in `rename_cmip6`
- CI is failing due to upstream error in xarrrayutils HOT 1
- Eliminate `xarrayutils` dependency
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xmip.