pangeo-data / esgf2xarray Goto Github PK
View Code? Open in Web Editor NEWutilities for loading esgf archives as xarray datasets
License: Apache License 2.0
utilities for loading esgf archives as xarray datasets
License: Apache License 2.0
We need a
https://github.com/NCAR/intake-esm
https://intake-esm.readthedocs.io/en/latest/index.html
We want to make sure that the dataframes returned by both search modules are compatible with the aggregation functions. (Consistent column names, necessary fields, etc.)
The files
dataframe returned by esgf_search
is ideal for identifying issues which might arise during aggregation. For example, there can be both ri1p1f1 and ri1p1f2 type ensemble members which should probably not be combined. Or, if there are two versions (v20190101 and v20190202, so use the latest) of the same file or if one ensemble member covers only a subset of the time it would be good to flag these issues before aggregation.
I am keeping track of all the anomalies I see in the CMIP6 data and propose to write a new function to check files
, flagging potential issues so the they can be dealt with on a case by case basis rather than silently dealing with them in combine_files
.
This how we load individual files:
esgf2xarray/esgf2zarr/aggregate.py
Lines 58 to 63 in 9cfb9f0
The problem is that time_bnds
can't be auto chunked if it is a cftime type. Now we are avoiding that by not decoding time at all; however, this could possibly lead to errors if different files have incompatible reference times e.g. days since 1950-01-01
.
An alternative would be to eagerly load time_bnds
so dask doesn't complain about its object dtype.
Eventually most of the aggregation logic can hopefully be replaced by xarray.open_ncml.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.