Coder Social home page Coder Social logo

correlate_2d's Introduction

correlate_2D

Correlate time series on regular meshes

Python and Dependencies

The code needs the python packages netcdf4 and progressbar

If you know what you are doing, just make sure the aforementioned dependencies are installed. Otherwise do yourself a favor and download the Anaconda (https://store.continuum.io/cshop/anaconda/) Python distribution. It is a free scientific Python distribution bundling almost all necessary modules with a convenient installer (does not require root access!). Once installed assert that pip and conda point to the Anaconda installation folder (you may need to open a new terminal after installing Anaconda).

$ conda install -c netcdf4 progressbar pip

Usage

$ python correlate_2d.py -h

usage: correlate_2d.py [-h] [-o OUTPUT_FILE_NAME] [-v VARIABLE]
                       [-m MAX_LENGTH] [-d DEPTH_LAYER] [-k]
                       input_file_name

Calculate spatial correlation length in a 2D time series

positional arguments:
  input_file_name       NetCDF input file name. Should follow BLABLA convention

optional arguments:
  -h, --help            show this help message and exit
  -o OUTPUT_FILE_NAME, --output_file_name OUTPUT_FILE_NAME
                        Output file name. Default is input_file_name_corr.nc
  -v VARIABLE, --variable VARIABLE
                        Variable to calculate correlation on
  -m MAX_LENGTH, --max_length MAX_LENGTH
                        Maximum correlation length. 
                        Only elements with a distance smaller max_length are 
                        correlated. Smaller max_length speed up the calculation
  -d DEPTH_LAYER, --depth_layer DEPTH_LAYER
                        Depth layer to correlate. 
  -k, --keep_original   Keep original variable in output file?
  

correlate_2d's People

Contributors

sstaehler avatar

Watchers

 avatar  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.