Giter VIP home page Giter VIP logo

wx-models-to-geotiff's Introduction

wx-models-to-geotiff

More information: https://medium.com/swlh/automated-weather-model-processing-with-foss4g-lessons-learned-8aaaeda1e3bc

Prerequisites

  • Linux (due to using SIGALRMs to kill faulty connections to NCEP -- otherwise this could be used on Windows. Good opportunity for a refactor.)
  • Python 3
  • GDAL/OGR with python bindings
  • PostgreSQL + psycopg2
  • Docker (if you want to use the NBM model and don't want to build GDAL/OGR from source)

What's Here

./db has the Postgres table schemas that the script uses to keep track of things.

./scripts contains python code and JSON configuration for grabbing weather model data off the internet (via NCEP NOMADS), processing it, and organizing it on the file system. This script is designed to be run on a regular basis from, for example, a cron job. See the readme in this folder for more information about the script.

./map contains the MapServer mapfile and some auxiliary data. The use of a mapfile has been deprecated but it is still usable with a bit of tweaking.

The primary config (all the weather models and desired vars/levels) is found at ./scripts/config.json. Only a small number of the many dozen available models have been included to help get you started, but there is a very reasonable spread across a few popular models.

The entry point of the script is ./scripts/wxdata.py.

What's Not Here

The actual API to make this data accessible from a server. Using the run_status and models postgres table, and whatever organization system suits your fancy (PostGIS, flatfile, COG, etc.), you can distribute this data in its raster form or make it queryable. The primary author of this code is using a NodeJS API that queries the data using Geotiff.js.

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.