GithubHelp home page GithubHelp logo

esmvalgroup / dummydata Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pygeo/dummydata

2.0 2.0 0.0 58 KB

A dummy data generator for the use in testing

License: Apache License 2.0

Python 100.00%

dummydata's People

Contributors

bjoernbroetz avatar bouweandela avatar bulli92 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dummydata's Issues

Generated data too simple to create meaningful esmvaltool tests/plots

Currently there are only two options for generating data:

  1. random numbers from a uniform distribution between 0 and 1
  2. constant

Option 1) is almost useless, because physical quantities are typically defined at some other scale than between 0 and 1.
Option 2) does not allow creating e.g. contour plots and it is probably also very insensitive to changes in the output, .e.g you couldn't detect a change in regridding using this.

It would probably be good to add more interesting ways of generating data.

Also, the current implementation is very inflexible. The only way to get other data in, is to either override the private method _get_variable_data or to first generate the file with some useless data, and then open it again to change the values. A more flexible approach could be to make the Model2 or Model3 object available as a context manager (just like the netCDF4.Dataset object that it inherits from).

remove hardcoded cf-convention

As mentioned by @bouweandela in #3 it would be better to get the information in the Metadata class from an external source, e.g. autogenerate from the cf-convention xml document, or import from another Python package, instead of hardcoding.

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.