GithubHelp home page GithubHelp logo

colfi / cmip6-object-store Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cedadev/cmip6-object-store

0.0 0.0 0.0 27.46 MB

CMIP6 Object Store Library

License: BSD 3-Clause "New" or "Revised" License

Makefile 1.36% Python 50.25% Shell 0.77% Jupyter Notebook 47.62%

cmip6-object-store's Introduction

cmip6-object-store

Introduction

Pypi

Travis

Documentation

The CMIP6 Object Store Library holds a collection of different sub-packages for dealing with CMIP6 data in (the CEDA Caringo) Object Store:

  • cmip6_object_store.cmip6_zarr: a library for batch-converting archived CMIP6 netCDF files to Zarr in Caringo.
  • cmip6_object_store.cmip6_ncrg: a library for experimenting with the use of HTTP Range Gets to netCDF files in Caringo.
  • cmip6_object_store.cmip6_s3nc: a library for experimenting with writing S3-netCDF files to Caringo.

Package: cmip6_zarr

The cmip6_zarr package can be used as follows:

PRE-REQUISITE: Set up your caringo credentials as follows:

$ cat ~/.credentials/caringo-credentials.json
{
  "endpoint_url": "http://cmip6-zarr-o.s3.jc.rl.ac.uk/",
  "secret": "SECRET FROM CARINGO DASHBOARD",
  "token": "TOKEN FROM CARINGO DASHBOARD"
}

Generate batches of CMIP6 datasets to process

python cmip6_object_store/cmip6_zarr/cli.py create-batches

Run batch 1 on the local server

python cmip6_object_store/cmip6_zarr/cli.py run --project cmip6 --run-mode local --batches 1

Run batches 1-100 on LOTUS

python cmip6_object_store/cmip6_zarr/cli.py run --project cmip6 --run-mode lotus --batches 1-100

NOTE: It will not re-run batch 1 if you have already run it.

Run all batches on LOTUS

python cmip6_object_store/cmip6_zarr/cli.py run --project cmip6 --run-mode lotus

Show all errors detected when creating Zarr files

python cmip6_object_store/cmip6_zarr/cli.py show-errors -p cmip6

Show a count of all the datasets converted so far

python cmip6_object_store/cmip6_zarr/cli.py list -p cmip6 --count-only

Verify some of the Zarr files already processed

python cmip6_object_store/cmip6_zarr/cli.py verify -p cmip6

This will verify up to 5 datasets by comparing the NetCDF to the Zarr versions.

It will keep track of all those verified in the verify_catalogue as specified in the config file.

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

cmip6-object-store's People

Contributors

agstephens avatar alaniwi avatar mjones810 avatar ruthpetrie avatar

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.