Comments (5)
Thanks for using xMIP @AbbySh. Do you have a code snippet that I can use to produce this error? That will make it much easier to look into this.
from xmip.
from xmip.utils import google_cmip_col
from xmip.preprocessing import combined_preprocessing
from xmip.postprocessing import concat_experiments, merge_variables
cat = col.search(
variable_id=['tos', 'sos', 'chl', 'mlotst', 'spco2', 'dpco2'],
table_id='Omon', # monthly ocean output only
experiment_id=['historical','ssp245'],
require_all_on=['source_id', 'member_id', 'grid_label'] # this ensures that results will have all variables and experiments available
)
ddict = cat.to_dataset_dict(
preprocess=combined_preprocessing,
xarray_open_kwargs=dict(use_cftime=True),
aggregate=False
)
ds = merge_variables(ddict)
ds = concat_experiments(ds)
This should reproduce it, let me know!
from xmip.
Taking a look now.
from xmip.
I was just able to run this without error on the LEAP-Pange hub ('pangeo/pangeo-notebook:2023.08.29'
):
from xmip.utils import google_cmip_col
from xmip.preprocessing import combined_preprocessing
from xmip.postprocessing import concat_experiments, merge_variables
col = google_cmip_col()
cat = col.search(
variable_id=['tos', 'sos', 'chl', 'mlotst', 'spco2', 'dpco2'],
table_id='Omon', # monthly ocean output only
experiment_id=['historical','ssp245'],
require_all_on=['source_id', 'member_id', 'grid_label'] # this ensures that results will have all variables and experiments available
)
ddict = cat.to_dataset_dict(
preprocess=combined_preprocessing,
xarray_open_kwargs=dict(use_cftime=True),
aggregate=False
)
ds = merge_variables(ddict)
ds = concat_experiments(ds)
The only change is the
col = google_cmip_col()
line. Is it possible that you had some broken collection object still in memory?
from xmip.
The resulting datasets look like the time was concatenated properly:
from xmip.
Related Issues (20)
- 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
- Make `_drop_duplicate_grid_labels` public
- Renaming dimensions 'i'/'j' not working properly HOT 1
- Add convenience function to apply Hausfather et al. 2022 'screening' methodology
- correct_units fails on CMIP6 historical tos data HOT 17
- "TypeError: 'ABCMeta' object is not subscriptable " when importing xmip.preprocessing HOT 3
- Memory Error Trying to Produce Dataframe HOT 1
- Renaming dimensions in cmip6_rename results in the coordinate data being lost HOT 1
- Remove xarrayutils dependency
- Overlap/Integration with intake-esgf
- match_metrics for metrics that have different dimensions than the data
- Adding new contributors to CITATION.cff
- Update CI scaffolding HOT 1
- Eliminate dimension renaming warning.
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.