Code Monkey home page Code Monkey logo

netcdf2json's Introduction

netcdf2json

Convert netcdf4 ocean current data to json for Null School Earth project.

How to Use netcdf2json

python3 netcdf2json.py

and json files should be generated in the out folder.

  • copy catalog.json and .json files in the out folder to public\data\oscar folder of the Earth project.

Addtional Tools and Tutorials

Data Download Tools

  • download ocean current data of every day from 2021 to 2022.
 python3 oscar_download.py
 # if you need to use proxy, add your own proxy url ahead.
 # proxy=127.0.0.1:1081 python3 oscar_download.py

and save data in ocean_currents folder.

  • download wind data for the last 10 days:
python3 wind_download.py

and save data in wind folder.

Convert data Format

  • Convert wind data (grib format) to json
# The java grib2json tool neeeds to be installed first.
# Please refer to: https://github.com/cambecc/grib2json
python3 grib2json.py
  • Convert ocean crrent data (netcdf4 format) to json
python3 netcdf2json.py

netcdf2json's People

Contributors

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