You are on page 1of 14

Displaying wind data | kCube

1 de 14

http://www.kcubeconsulting.com/blog/displaying-wind-data

DevelopmentConsultingTrainingPortfolioAboutContact Us

Displaying wind data


In this post we discuss the following topics:
1. Displaying

vectors using its X/Y components


2. Computing magnitude and direction using GRASS
3. Using advanced symbology in QGIS

Introduction:
Meteorological conditions of any location at a given time are a function of many variables
such as atmospheric temperature, relative humidity, pressure and mainly the wind
parameter.
This wind parameter and its pattern determine most of the significant weather
phenomena that occur around the world everyday from small wind gusts to the setting of
monsoon. Wind satisfies the conditions of vector quantity as it has both magnitude and
direction, which varies according to the location, season and also the altitude.
Wind being one of the main components of weather is difficult to acquire for a
particular region let alone the whole world. Wind data is mostly available in a gridded
format with values of X, Y accompanied by wind vector data. These data are generally
very difficult to process without the help of some software, which is generally the case for
most meteorological departments all over the world. Meteorological departments
generally prefer softwares for time series analysis (to compare historical data) such as
GrADS. Hence GIS softwares are not widely used or preferred by Met departments for
processing the wind data.
GIS toos provide a lot more features and tools to process and analyse wind data.
These datasets are useful in site suitability studies, fire management and many other
fields where the prevaling weather is an important factor in modeling.

Wind Direction and Magnitude


For most of the meteorological purposes, wind data is measured in terms of its
orthogonal components i.e U (East-West) and V (North-South) components of the Wind.
These can be used to calculate the wind direction and magnitude by using simple

28-06-2016 12:01

Displaying wind data | kCube

2 de 14

http://www.kcubeconsulting.com/blog/displaying-wind-data

trigonometric functions.

Data Needed:

The following data are needed to accomplish the task.


Source: ftp://ftp.cdc.noaa.gov/Datasets/ncep.reanalysis/surface/

U component of the wind (Netcdf format)


Wind Data U component from http://www.esrl.noaa.gov/psd

V component of the wind (Netcdf format)


Wind Data V component from http://www.esrl.noaa.gov/psd

Wind Direction and Magnitude Calculation using QGIS and GRASS GIS:
Load Netcdf File (Add raster data Open the netcdf files)

Convert each Band to single raster through raster calculator (If multiple bands are
there)

28-06-2016 12:01

Displaying wind data | kCube

3 de 14

http://www.kcubeconsulting.com/blog/displaying-wind-data

A grass database and new location (import proj information from converted tif files)
is created at the outset.

U and V data in then imported into GRASS database

Following formula is used to calculate the magnitude


o mag = sqrt( u * u + v * v )

28-06-2016 12:01

Displaying wind data | kCube

4 de 14

http://www.kcubeconsulting.com/blog/displaying-wind-data

Formula used in GRASS raster calc window


o if(u > 0 && v > 0,( atan(u/v) + 180),if(u < 0 && v < 0,(atan(u/v) + 0),if(u > 0 && v < 0,(
atan(u/v) + 360), if(u < 0 && v > 0,( atan(u/v)+270)))))

28-06-2016 12:01

Displaying wind data | kCube

5 de 14

http://www.kcubeconsulting.com/blog/displaying-wind-data

Magnitude of the raster map is converted into magnitude vector points which holds
the magnitude column which can be used later to fix the size of the arrows

28-06-2016 12:01

Displaying wind data | kCube

6 de 14

http://www.kcubeconsulting.com/blog/displaying-wind-data

28-06-2016 12:01

Displaying wind data | kCube

7 de 14

http://www.kcubeconsulting.com/blog/displaying-wind-data

Value column holds the magnitude value


Direction component from direction raster is converted to vector points
v.sample option is used to transfer raster attributes to points

pnt_val magnitude values and rast_val holds the direction values

28-06-2016 12:01

Displaying wind data | kCube

8 de 14

http://www.kcubeconsulting.com/blog/displaying-wind-data

Resulting vector which holds both direction and magnitude is then exported as
shapefile

Viewing datain QGIS:


Vector file with direction and magnitude values is then loaded

28-06-2016 12:01

Displaying wind data | kCube

9 de 14

http://www.kcubeconsulting.com/blog/displaying-wind-data

Properties can be changed in style tab ( right click on the vector layer
properties)

28-06-2016 12:01

Displaying wind data | kCube

10 de 14

http://www.kcubeconsulting.com/blog/displaying-wind-data

Change button is used to then choose the option as shown in figure below

Setting up size and rotation fields is completed by going back to the style tab to
choose the following options

28-06-2016 12:01

Displaying wind data | kCube

11 de 14

http://www.kcubeconsulting.com/blog/displaying-wind-data

The resultant figure obtained in QGIS after the following processes will depict the
wind vector (direction along with magnitude).

28-06-2016 12:01

Displaying wind data | kCube

12 de 14

http://www.kcubeconsulting.com/blog/displaying-wind-data

Geo Network

Blog Tags:
Tweet

1
Like

kcube's blog

Add new comment


Your name

Subject

Comment *

Save

Preview

Request a Quote
Hire us at Elance

28-06-2016 12:01

Displaying wind data | kCube

13 de 14

http://www.kcubeconsulting.com/blog/displaying-wind-data

Recent post
JMeter - A quick way to analyze & measure performance of web applications
Image Planner Application for mapping of Agricultural areas
PostGIS - Migrating to a Database from files in a Desktop
Field Digitization using QGIS
Reprojecting a Shapefile in QGIS 2.0

Tags
Geo Network

Geo Server

PostGres

List by Month
2014
2015
2016

Other links
Blog
Products
Awareness Seminar
Sitemap
Disclaimer
Employee Login

Latest Tweets

Contact Us
Email *

Subject *

- Select -

Message *

14 + 5 =

28-06-2016 12:01

Displaying wind data | kCube

14 de 14

http://www.kcubeconsulting.com/blog/displaying-wind-data

SUBMIT

Contact Us
Global Delivery Center

75, Eldams Rd, Lubdhi Colony,


Teynampet, Chennai,
Tamil Nadu, India
Pincode: 600018
India
Direct - +91 044-42384456
Bangalore Office
No. 9, Ist Floor, Survey Number 21/5,
Vasantpura Main Road,
Bangalore,
Karnataka,India
Pincode: 560062
Direct:+91-80-41710411
US Office Address
3513 Federal Drive #204
Eagan, MN 55122
Phone:
USA - 213-596-8857, 213-341-1422
Copyright 2006 - 2015 kCube Consultancy Services (P) Ltd.

28-06-2016 12:01

You might also like