25 lines
No EOL
1.2 KiB
HTML
25 lines
No EOL
1.2 KiB
HTML
<html>
|
|
<title>GFESuite Documentation - Working With Vector Data</title>
|
|
<body>
|
|
<h1 align=center>
|
|
<a NAME="WorkingwithVectorData"></a>Working with Vector Data</h1>
|
|
<hr width="100%">
|
|
Vector weather elements, such as Wind, are treated as two numerical arrays,
|
|
one representing magnitude and one representing direction. For example:
|
|
<p> def calcWind(self, wind_FHAG10):
|
|
<br> # The Wind Vector consists
|
|
of two numerical array grids, one for magnitude and one for direction
|
|
<br> mag = wind_FHAG10[0]
|
|
# get the wind magnitude grid
|
|
<br> dir = wind_FHAG10[1]
|
|
# get wind direction grid
|
|
<p> A Vector Cube consists of two sub-cubes, one for magnitude and
|
|
one for direction. For example:
|
|
<p> def calcFreeWind(self, gh_c, wind_c,
|
|
topo):
|
|
<br> # The Vector Cube, wind_c,
|
|
consists of two sub-cubes, one for magnitude and one for direction
|
|
<br> magnitudeCube = wind_c[0]
|
|
<br> directionCube = wind_c[1]
|
|
</body>
|
|
</html> |