VANE presentation for developers

VANE presentation for developers

We've prepared the interactive VANE introduction presentation to give you an idea of what can be done on the top of VANE platform. Get live examples of weather and satellite web apps and sample API calls in #VANE language.


The source code of presentation is available on our Github pages.

#VANE_language  #workouts

New styles for weather maps API

New styles for weather maps API

We added new version of rendering styles for Weathermap API.

To get weather map layers in new predefined styles you need to add _new to the appropriate layer name like the following:

http://tile.openweathermap.org/map/{layer}_new/{z}/{x}/{y}.png?appid={api_key}
 
precipitation
 
precipitation_new
 
wind
 
wind_new

>> See more new styles

Would you like to have self-customized styles to your weather map - try our Map Editor tool for applying you own styles to weather layers and combining them with base maps.

How to use MODIS as a basemap for your weather maps application

How to use MODIS as a basemap for your weather maps application

To add MODIS Basemap layer and combine it with current weather layers, you need to specify the following endpoint URLs to both of the tileLayer as it for Leaflet-js.

http://{s}.sat.owm.io/sql/{z}/{x}/{y}?select=b1,b4,b3&from=modis&order=last&color=modis&APPID={APIKEY}

To add a layer with precipitation - specify the query according to weathermap API documentation.

http://{s}.tile.openweathermap.org/map/precipitation/{z}/{x}/{y}.png?APPID={APIKEY}

See the interactive example at the Basemap description page.

How to get most recent MODIS without gaps

How to get most recent MODIS without gaps

"MODIS" is a camera aboard Terra and Aqua satellites. The MODIS mosaic and the derivative products like "cloud mask" are widely used in various of applications from TV maps to desktop wallpapers.
How to use MODIS for some kind of this application, getting it from VANE platform?

VANE provides MODIS with less than one hour delay after satellite path. The one problem - you may wish to get the seamless mosaic of the entire world and the satellite paths look somehow like this:

There is no whole world captured for the current date and there are stripes where the satellite didn't scan.
The use of VANE language allows you to build the specific query to get the most recent MODIS imagery along with past day MODIS for the rest of the world. To get both of satellites and to combine for last two days you need to specify from=modis and order=last.

In order to get mosaic from only one of satellites, set up from=terra or from=aqua

You get it!

That's how we use MODIS for satellite basemap to show weather layers on the top of it - http://owm.io/weathermap

VANE color processing with gamma correction for MODIS imagery

VANE color processing with gamma correction for MODIS imagery

In VANE platform there are default color correction algorithms for particular satellite imagery sets. We are continuously working on improving these basic algorithms and now there is one more for MODIS daily imagery with atmospheric and gamma correction. Now the MODIS mosaic looks more smooth and seamless, especially at the edges of strips. 

So we are going to provide the best Base Map for weather overlays and, in addition, the closest to real time one.  The delay of imagery publication is going to be less than an hour after the satellite path through our efforts to reduce processing time costs.

While the new algorithm is going through the beta testing - you need to set up the additional parameter to use it:

color=modis

And the link to get the whole daily mosaic from the VANE platform will look like this

http://{s}.sat.owm.io/sql/{z}/{x}/{y}?appid={APIKEY}&select=b1,b4,b3&from=modis&order=last&color=modis

Viewer

If you'd like to preview MODIS and switch between single layers that constitute the mosaic  - go to http://owm.io/modis

How to connect VANE Base Map to your application

How to connect VANE Base Map to your application

The VANE Global Base Map is the easiest way to start working with satellite imagery. Developers can choose from the number of presets (like True color, Urban false color, etc.) and inbuilt operations (so-called indices).

To connect your web application to VANE Base Map you need to go through three steps - just that:

  1. Get your API key at http://home.owm.io/api_keys (if you already have the one from Openweathermap API - you can use it)
  2. Go to examples and choose your preferable one at the Base Map description page.
  3. Copy the URL template for appropriate Base Map example that then can be used as a tile layer in a various number of libraries and mapping applications.

The example URL for "True color" RGB:

http://{s}.sat.owm.io/sql/{z}/{x}/{y}?appid={APIKEY}&select=b4,b3,b2&from=all&order=best&color=log,gamma:1.2

How to know what particular imagery do you get from VANE Geospatial Platform

How to know what particular imagery do you get from VANE Geospatial Platform

One of the ideas of VANE platform - no need of search by scenes or footprints. 

It is based on a simple assumption: each location in the world has metadata - click on any location and get information about all pixels containing this location. Such projects as cloudless atlases and Google base satellite maps are created according to this basic principle, stitching best imagery pixels in one seamless mosaic. According to scenes metadata VANE can preliminary compile the best satellite cover - users need to set up a parameter order=best for this operation. Even more, VANE language allows you to set up further requirements for your mosaic, providing appropriate parameters in your query - meaning: no older than (day>{yyyy-mm-dd})… or put all last imagery on the top (order=last)... or within the specific time interval (between({yyyy-mm-dd}:{yyyy-mm-dd}))…
Then you can go further, applying your custom colors to the resulting mosaic, according to VANE language specification.

Just to demonstrate this principle in work we’ve launched a very basic application called Finder.

>> How it works

How to customize and build weather layers into your map application

How to customize and build weather layers into your map application

Hello, weather developers,

We’ve updated our application for demonstration of current weather map layers. Now you can switch between basemaps (map or daily satellite) and display weather overlays on the top of it.

Please provide us with your feedback and case studies on using weather maps and the VANE geospatial platform.

How to make online products on satellite images: Setup your color scheme of NDVI

How to make online products on satellite images: Setup your color scheme of NDVI

You can set up your color scheme by playing with a parameter color=0.03:fcfefcff; 

This parameter consists of pairs of numbers like 0.03:fcfefcff separated by semicolons where:

0.03 - NDVI value from 0 to 1

fcfefcff - HTML colors

Query template

http://sat.owm.io/sql?from=s2&select=b8,b4&where=day=2016-07-10&op=ndvi&polygon={"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[-102.73,34.43],[-102.73,34.49],[-102.57,34.49],[-102.57,34.43],[-102.73,34.43]]]}}&color=0:d93f2aff;0.05:df452cff;0.1:e66c2eff;0.15:e4622dff;0.2:f2b331ff; 0.25:f7d932ff;0.3:eff630ff;0.35:b0f321ff;0.4:80f116ff;0.45:76f013ff; 0.5:74ed17ff;0.55:6cde28ff;0.6:50ab56ff;0.65:317b83ff;0.7:0648b3ff; 0.75:1f46f0ff;0.8:2d45e9ff;0.85:533dcaff;0.9:783bb1ff;1:a342aeff;&appid=9de243494c0b295cca9337e1e96b00e2&APPID={APIKEY}


>> Learn more about our tools for Agriculture applications - http://owm.io/agri

How to make online products on satellite images: Compute NDVI for any date

How to make online products on satellite images: Compute NDVI for any date

We choose one day, October 1, 2016, as an example and calculate NDVI for our polygon.

Query template

http://sat.owm.io/sql?select=b5,b4&where=day=2016-10-01&op=ndvi&polygon={"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[-121.32,37.65],[-121.32,37.72],[-121.11,37.72],[-121.11,37.65],[-121.32,37.65]]]}}&APPID={APIKEY}