VANE language use cases

VANE language use cases

Here is a sample query to get last Sentinel-2 image for some location, adjusting gamma and contrast to have rendering of Red, Green and Blue satellite imagery spectral bands to the RGB composite image that seems in natural colors - so called “True Color”.

http://owm.io/sql-viewer?select=b4,b3,b2&from=s2&where=&op=&order=last&color=log(1.5),brightness(2200:60000)&lat=51.01&lon=2.29&zoom=12


Next we can switch it to the “False Color” with few other params - adding infrared band and increasing the contrast to distinguish urban areas and farm fields:

http://owm.io/sql-viewer?select=b8,b3,b2&from=s2&where=&op=&order=last&color=log(1.5),brightness(4000:20000)&lat=51.01&lon=2.29&zoom=12

Note that you can get instant visual result with the help of VANE SQL-viewer - this is a very basic and useful tool to build and try your queries.
See Vane Language documentation for more information and examples.

Cities on the map

Cities on the map

Create more weather maps with our basic example apps.

How to display icons of the current weather in cities using #Leaflet library - you can click them to check weather forecast including local time shift and combine them with weathermap layers and MODIS imagery, provided by #VANE platform.

Open this map standalone - https://owm-inc.github.io/VANE-intro/apps/leaflet-owm.html
The source code is available on our Github page - https://github.com/owm-inc/VANE-intro/tree/master/apps

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.