Skip to content

Commit 6fa975e

Browse files
author
pv-atmos
committed
Add grid
Adding a 3D grid to the example
1 parent e095f7e commit 6fa975e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

examples/example_ocean.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def transformTopo(src=GetActiveSource(),moveXFunction=''):
4242
dataDims = ['xt_ocean','yt_ocean','st_ocean']
4343
# the values we will be interested in
4444
dataName = 'o2'
45-
dataContours = [1e-4]
45+
dataContours = [8e-5]
4646

4747
## how would you like the transformation to work ##
4848
logCoord = [] #no logarithmic coordinates
@@ -121,5 +121,8 @@ def transformTopo(src=GetActiveSource(),moveXFunction=''):
121121
except:
122122
pass
123123

124+
#### finally, add a grid ####
125+
AddGrid(xlevels=[-270,-225,-180,-135,-90,-45,0,45], ylevels=[-60,-30,0,30,60], zlevels=range(-5000,1000,1000), bounds=[-280,80,-90,90,-5500,0], ratios=aspRat, logCoord=logCoord, AxisNames=["longitude","latitude","depth [m]"], AxisColor=[0,0,0], AxisWidth=1.0,LabelSize=5.0)
126+
124127

125128
Render()

0 commit comments

Comments
 (0)