Giter Club home page Giter Club logo

netcdf_to_geojson_vectors's Introduction

NetCDF to GeoJSON Vectors

Convert CF-compliant NetCDF files with vector attributes (u, v, magnitude, direction) to GeoJSON.

Usage

Install Python requirements:

pip install -r requirements.txt

Arguments

netcdf_to_geojson_vectors.py [-h] [-c CONFIG_FILE] [-d INPUT_DIR] [-i INPUT_FILE] [-m MAX_RECORDS] [-o OUTPUT_DIR]
  -h, --help            Show this help message and exit
  -c CONFIG_FILE, --config_file CONFIG_FILE
                        Configuration file
  -d INPUT_DIR, --input_dir INPUT_DIR
                        Directory containing input files
  -i INPUT_FILE, --input_file INPUT_FILE
                        Input file
  -m MAX_RECORDS, --max_records MAX_RECORDS
                        Maximum number of records to process
  -o OUTPUT_DIR, --output_dir OUTPUT_DIR
                        Output directory

Example

./netcdf_to_geojson_vectors.py -c sample_oscar.cfg -i ./data/oscar_currents_final_20200101.nc -o output/

Configuration Options

  • latVar: Name of the latitude variable in the source data file
  • lonVar: Name of the longitude variable in the source data file
  • magnitudeVar: Name of the magnitude variable in the source data file
  • directionVar: Name of the direction variable in the source data file
  • uVar: Name of the u variable in the source data file
  • vVar: Name of the v variable in the source data file
  • convertUV: Convert u and v components to magnitude and direction
  • convertMagDir: Convert magnitude and direction components to u and v
  • is360: Convert extents from 0 - 360 to -180 - 180
  • extraVars: An array of extra variables to include with the GeoJSON output

netcdf_to_geojson_vectors's People

Contributors

jtroberts avatar

Stargazers

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