Coder Social home page Coder Social logo

andrew-dunn / sample_data_generator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from climate-analyser-team/sample_data_generator

0.0 2.0 0.0 206 KB

Generates sample data in the netCDF format for use with the climate analyser.

License: GNU General Public License v3.0

Python 100.00%

sample_data_generator's Introduction

sample_data_generator

Generates sample randomised data which can later be used for correctness checking.

Pre-requisites

HDF5 Library

Library which handles management of extremely large and complex data collections.

Installation instructions

  1. Download + Extract HDF5 Library Source

    curl http://www.hdfgroup.org/ftp/HDF5/current/src/hdf5-1.8.12.tar.gz -o hdf5-1.8.12.tar.gz
    tar -xzf hdf5-1.8.12.tar.gz
    rm hdf5-1.8.12.tar.gz
  2. Create a build directory

    mkdir build-hdf5 && cd build-hdf5
  3. Build and install the library. Select an installation location using --prefix=LOCATION.

    ../hdf5-1.8.12/configure --prefix=/usr/local
    make all
    sudo make install
  4. Cleanup

    cd ..
    rm -rf build-hdf5
    rm -rf hdf5-1.8.12 # Optional

netCDF C Library

The netCDF library defines a machine-independent format for representing scientific data.

Installation instructions

  1. Download + Extract netCDF C Library source

    curl https://codeload.github.com/Unidata/netcdf-c/tar.gz/v4.3.1.1 -o netcdf-c-4.3.1.1.tar.gz
    tar -xzf netcdf-c-4.3.1.1.tar.gz
    rm netcdf-c-4.3.1.1.tar.gz
  2. Create a build directory

    mkdir build-netcdf && cd build-netcdf
  3. Build and install the library. /usr/local should be replaced with the installation location of the HDF5 library.

    CPPFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib ../netcdf-c-4.3.1.1/configure --prefix=/usr/local
    make all
    sudo make install
  4. Cleanup

    cd ..
    rm -rf build-netcdf
    rm -rf netcdf-c-4.3.1.1

pip package installer

The PyPA recommended tool for installing Python packages.

Installation instructions

  1. Download pip

    curl https://raw.github.com/pypa/pip/master/contrib/get-pip.py -o get-pip.py
  2. Install pip

    sudo python get-pip.py

NumPy Library

NumPy is the fundamental package for scientific computing with Python.

Installation instructions

  1. Install NumPy using pip

    sudo pip install numpy

netCDF4 Python Interface

Python/numpy interface to the netCDF version 4 library.

Installation instructions

  1. Install the library using pip

    sudo pip install netcdf4

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.