Giter Club home page Giter Club logo

nc-validate's Introduction

Quick & Dirty NetCDF File Validation

A python module for comparing one or more NetCDF files against a known NetCDF template. Results are printed to STDOUT and errors (i.e.: missing dimensions, variables, global and variable attributes) are printed to STDERR.

The comparison is very simple. The template file is read and then compared to the structure of each of the files specified on the command line. The following items are checked:

  1. Inclusion of proper dimension variables
  2. Inclusion of global attributes
  3. Inclusion of proper variables
  4. Datatypes of included variables
  5. Attributes of included variables

Data integrity is NOT checked.

###Required Non-Core Python modules:###

The following modules are required and not typically installed with standard python distributions and can be installed using pip:

>> pip install netcdf4

The Anaconda and Enthought Python Distribution python distributions come with these modules installed.

###Usage###

> nc_validate -h

for usage.

The module may be executed from the command line. If run this way, the specified files are compared to the template file contained in:

./templates/IOOS_Glider_NetCDF_v2.0.nc

If you would like to change the file against which the specified files are compared, you can do one of the following:

  • Use the -t or --template option and specify the location of the template file.

Run the script like this:

> nc_validate.py --template PATH_TO_TEMPLATE FILE1[, FILE2, ...]
  • Put the file somewhere and specify it's location in the default_nc_template variable (line #9).

Then run the script like this:

> nc_validate.py FILE1[, FILE2, ...]

nc-validate's People

Contributors

kerfoot avatar

Stargazers

 avatar Cheonghyun Lee avatar gkeller avatar

Watchers

James Cloos avatar Guilherme Castelão avatar

Forkers

toderesa97 ykern

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.