displaying wind data in grass gis

14
Displaying wind data In this post we discuss th e following topics: Displaying vectors using its X/Y components 1. Computing magnitude and directi on using GRASS 2. 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.  Thi s wind para meter and its patte rn deter mine most of the signi fica nt 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 mai n components of wea ther is diffi cult to acquir e 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 ve ry difficult to process wi thout the help of some softwa re, which is generally th e case for most meteorological departments all ov er the world. Meteorologi cal depa rtments 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 process ing th e wind data.  GIS toos prov ide a lot more features and tools to process and analyse wind data.  T hese datase ts are useful in site suita bility studies, fire ma nagement and many other fields where the p rev aling weather is an important f actor in modeling.  Wind Direction and Magnitude  For most of the meteorologi cal pur poses, wi nd 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 wi nd directi on and magnit ude by usi ng si mple 3. DevelopmentConsultingTrainingP ortfolioA boutContact Us Display ing wind data | kCu be http://www.kcubeconsulting.com /blog/displaying-wind-dat a 1 de 14 28-!-21! 12:1

Upload: ivan-barria

Post on 28-Feb-2018

233 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Displaying Wind Data in GRASS GIS

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

Page 2: Displaying Wind Data in GRASS GIS

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

Page 3: Displaying Wind Data in GRASS GIS

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

Page 4: Displaying Wind Data in GRASS GIS

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

Page 5: Displaying Wind Data in GRASS GIS

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

Page 6: Displaying Wind Data in GRASS GIS

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

Page 7: Displaying Wind Data in GRASS GIS

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

Page 8: Displaying Wind Data in GRASS GIS

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

Page 9: Displaying Wind Data in GRASS GIS

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

Page 10: Displaying Wind Data in GRASS GIS

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

Page 11: Displaying Wind Data in GRASS GIS

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

Page 12: Displaying Wind Data in GRASS GIS

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

Page 13: Displaying Wind Data in GRASS GIS

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

Page 14: Displaying Wind Data in GRASS GIS

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