displaying wind data in grass gis
TRANSCRIPT
7/25/2019 Displaying Wind Data in GRASS GIS
http://slidepdf.com/reader/full/displaying-wind-data-in-grass-gis 1/14
Displaying wind data
In this post we discuss the following topics:
Displaying vectors using its X/Y components1.
Computing magnitude and direction using GRASS2.
Using advanced symbology in QGIS
Introduction:
Meteorological conditions of any location at a given time are a function of many variablessuch as atmospheric temperature, relative humidity, pressure and mainly the windparameter.
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
3.
DevelopmentConsultingTrainingPortfolioAboutContact Us
playing wind data | kCube http://www.kcubeconsulting.com/blog/displaying-wind-data
14 28-!-21! 12:1
7/25/2019 Displaying Wind Data in GRASS GIS
http://slidepdf.com/reader/full/displaying-wind-data-in-grass-gis 2/14
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)
playing wind data | kCube http://www.kcubeconsulting.com/blog/displaying-wind-data
14 28-!-21! 12:1
7/25/2019 Displaying Wind Data in GRASS GIS
http://slidepdf.com/reader/full/displaying-wind-data-in-grass-gis 3/14
A grass database and new location (import proj information from converted tif f iles)
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 )
playing wind data | kCube http://www.kcubeconsulting.com/blog/displaying-wind-data
14 28-!-21! 12:1
7/25/2019 Displaying Wind Data in GRASS GIS
http://slidepdf.com/reader/full/displaying-wind-data-in-grass-gis 4/14
· 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)))))
playing wind data | kCube http://www.kcubeconsulting.com/blog/displaying-wind-data
14 28-!-21! 12:1
7/25/2019 Displaying Wind Data in GRASS GIS
http://slidepdf.com/reader/full/displaying-wind-data-in-grass-gis 5/14
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
playing wind data | kCube http://www.kcubeconsulting.com/blog/displaying-wind-data
14 28-!-21! 12:1
7/25/2019 Displaying Wind Data in GRASS GIS
http://slidepdf.com/reader/full/displaying-wind-data-in-grass-gis 6/14
playing wind data | kCube http://www.kcubeconsulting.com/blog/displaying-wind-data
14 28-!-21! 12:1
7/25/2019 Displaying Wind Data in GRASS GIS
http://slidepdf.com/reader/full/displaying-wind-data-in-grass-gis 7/14
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
playing wind data | kCube http://www.kcubeconsulting.com/blog/displaying-wind-data
14 28-!-21! 12:1
7/25/2019 Displaying Wind Data in GRASS GIS
http://slidepdf.com/reader/full/displaying-wind-data-in-grass-gis 8/14
Resulting vector which holds both direction and magnitude is then exported as
shapefile
Viewing data in QGIS:
Vector file with direction and magnitude values is then loaded
playing wind data | kCube http://www.kcubeconsulting.com/blog/displaying-wind-data
14 28-!-21! 12:1
7/25/2019 Displaying Wind Data in GRASS GIS
http://slidepdf.com/reader/full/displaying-wind-data-in-grass-gis 9/14
Properties can be changed in style tab ( right click on the vector layer →
properties)
playing wind data | kCube http://www.kcubeconsulting.com/blog/displaying-wind-data
14 28-!-21! 12:1
7/25/2019 Displaying Wind Data in GRASS GIS
http://slidepdf.com/reader/full/displaying-wind-data-in-grass-gis 10/14
“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
playing wind data | kCube http://www.kcubeconsulting.com/blog/displaying-wind-data
de 14 28-!-21! 12:1
7/25/2019 Displaying Wind Data in GRASS GIS
http://slidepdf.com/reader/full/displaying-wind-data-in-grass-gis 11/14
The resultant figure obtained in QGIS after the following processes will depict the
wind vector (direction along with magnitude).
playing wind data | kCube http://www.kcubeconsulting.com/blog/displaying-wind-data
e 14 28-!-21! 12:1
7/25/2019 Displaying Wind Data in GRASS GIS
http://slidepdf.com/reader/full/displaying-wind-data-in-grass-gis 12/14
Blog Tags:Geo Network
Tweet 1
LikeLike
0
Your name
Subject
Comment *
Save Preview
kcube's blog
Add new comment
Request a Quote
Hire us at Elance
playing wind data | kCube http://www.kcubeconsulting.com/blog/displaying-wind-data
de 14 28-!-21! 12:1
7/25/2019 Displaying Wind Data in GRASS GIS
http://slidepdf.com/reader/full/displaying-wind-data-in-grass-gis 13/14
Geo Network Geo Server PostGres
Email *
Subject *
Message *
14 + 5 =
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 QGISReprojecting a Shapefile in QGIS 2.0
Tags
List by Month
Other links
Blog
Products
Awareness Seminar
Sitemap
Disclaimer
Employee Login
Latest Tweets
Contact Us
- Select -
2014
2015
2016
playing wind data | kCube http://www.kcubeconsulting.com/blog/displaying-wind-data
de 14 28-!-21! 12:1
7/25/2019 Displaying Wind Data in GRASS GIS
http://slidepdf.com/reader/full/displaying-wind-data-in-grass-gis 14/14
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.
playing wind data | kCube http://www.kcubeconsulting.com/blog/displaying-wind-data