GithubHelp home page GithubHelp logo

torresr-cnrm / xoce Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 259 KB

Python tools for analysing and offline diagnosing ocean and climate datasets

License: MIT License

Python 100.00%
climate-science dataset ocean post-processing

xoce's Introduction

XOCE - Xarray based Ocean and Climate Experiments

XOCE is a suite of Python codes and tools for analysing and offline diagnosing global ocean datasets.


NOTE

The library is still in development and code is probably not free of bugs.


xoce's People

Contributors

torresr-cnrm avatar

Stargazers

 avatar

Watchers

 avatar

xoce's Issues

[API] improve the experiment class

Manage the processing outputs

  • processing could be define in the experiment class, for instance average/2D map/profiles/etc..
  • allows saving an experiment object in a JSON ou HDF file where a link to the processing file are stored (useful for loading directly the processing files whitout recomputed average each time)
  • allows loading an experiment only by its name

Note: this should be think about a NEMO run folder
run_name
output
var1.nc
var2.nc
post
average
maps
experiment1.ext
experiment2.ext

Boundaries management

Need to automatically compute some boundary cells (depth_bnds, lat_bnds, e3t, e1t, etc..). Also, when interpolation is need or if a coordinates is changed (to re interpolate on another grid) we need to change the bnds also.

Check if functionality exists with xarray ?
Check how Antares (cerfacs) manage this ?

Setup simple tests

Create tests for validating library. Some ideas :

  • API test
  • calculator test
  • io test
  • etc..

Attributes and units management

In some processings, data manipulation involve new variable units or attributes. For instance :

  • Integration is sometimes weighted by volume cell and should change variable units
  • In a general way, processing could automatically replace some classical attributes (min/max, date, etc.) and add some nemopy info (version, post-processing date, etc.)

processing dataset results attributes

Nice improvement : each processing should define a function for writting attributes in the resulting datasets.

Informations to have :

  • xoce version
  • processing parameters
  • description of the processing

Improve Reader/Writer interface

  • First, manage dataset and arrays coordinates
  • Then, another improvement should be to create a real API with class Experiment in order to store post-processing datasets in a class which allows easily (re-)processing and plotting (instead of a list of xarray datasets)
  • Add metadata in writers : at least XOCE version and post-processing date ; maybe link to the post-processing file ?

Figure and plotting API

Create classes for plotting graphes + some functions

  • carto

    • colorbar access (range, colormap, normalization, etc.)
    • projection (cartopy)
    • x, y axes
    • size, title, etc.
  • 2D graphes (zonal and meridional average)

  • 1D or profiles or 0D time evolution (volume average)

  • statistics (get plot from Adele internship)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.