Commit 8871a5bc authored by Klaus Getzlaff's avatar Klaus Getzlaff

add demo_Arena2 statefiles and input

parent e6bd6857
input/etopo5_nobathy2.cdf filter=lfs diff=lfs merge=lfs -text
input/texture_land_ocean_ice_8192.png filter=lfs diff=lfs merge=lfs -text
input/VIKING20X.L46-KKG36005H_5d_20000101_20011231_ithick_nc4.nc filter=lfs diff=lfs merge=lfs -text
input/VIKING20X.L46-KKG36005H_5d_20000101_20011231_speedsurf_nc4.nc filter=lfs diff=lfs merge=lfs -text
input/VIKING20X.L46-KKG36005H_5d_20000101_20011231_ssh_nc4.nc filter=lfs diff=lfs merge=lfs -text
input/VIKING20X.L46-KKG36005H_5d_20000101_20011231_sst_nc4.nc filter=lfs diff=lfs merge=lfs -text
[
{
"ColorSpace" : "RGB",
"Name" : "demo_ICE_min5_plu10",
"Points" :
[
-5.0,
0.0,
0.5,
0.0,
0.01,
0.0,
0.5,
0.0,
0.010999999999999999,
0.68421053886413596,
0.5,
0.0,
0.62847280502319303,
0.89473682641982999,
0.5,
0.0,
1.9667110443115201,
0.98684209585189797,
0.5,
0.0,
4.7612676620483398,
1.0,
0.5,
0.0,
9.7599811553955096,
1.0,
0.5,
0.0
],
"RGBPoints" :
[
-5.0,
0.0,
0.0,
0.0,
0.077433489263057695,
0.831372549019608,
0.831372549019608,
0.831372549019608,
2.2815907001495401,
1.0,
1.0,
1.0,
9.7599811553955096,
1.0,
1.0,
1.0
]
}
]
[
{
"ColorSpace" : "RGB",
"Name" : "demo_SPEED_SSH_ICE",
"Points" :
[
0.0,
0.0,
0.5,
0.0,
1.8,
1.0,
0.5,
0.0
],
"RGBPoints" :
[
0.0,
1.0,
1.0,
1.0,
0.30600000000000005,
0.0,
0.0,
1.0,
0.6120000000000001,
0.0,
1.0,
1.0,
0.90000000000000002,
0.0,
1.0,
0.0,
1.2060000000000002,
1.0,
1.0,
0.0,
1.512,
1.0,
0.0,
0.0,
1.8,
0.87843137254899994,
0.0,
1.0
]
}
]
[
{
"ColorSpace" : "RGB",
"Name" : "demo_SST_SSH_ICE",
"Points" :
[
-0.5,
0.0,
0.5,
0.0,
31.5,
1.0,
0.5,
0.0
],
"RGBPoints" :
[
-0.5,
0.85882352941176465,
0.11372549019607843,
0.47450980392156861,
1.8,
0.23529411764705882,
0.23529411764705882,
0.7803921568627451,
4.7999999999999998,
0.086274509803921567,
0.086274509803921567,
0.51764705882352946,
7.0,
0.0,
0.0,
0.36078431372500003,
12.0,
0.0,
1.0,
1.0,
18.0,
0.0,
0.50196078431400004,
0.0,
22.5,
1.0,
1.0,
0.0,
26.0,
1.0,
0.38039215686299999,
0.0,
28.0,
0.74117647058823499,
0.011764705882352899,
0.011764705882352899,
31.0,
1.0,
1.0,
1.0,
31.5,
1.0,
1.0,
1.0
]
}
]
This diff is collapsed.
This diff is collapsed.
def start_cue(self): pass
import datetime as dt
from paraview.simple import *
import numpy as np
def tick(self):
scene = GetAnimationScene()
scTime = scene.AnimationTime
yr = np.floor(1900 + scTime/(365*24*60*60))
dm = dt.datetime.fromordinal(int(np.ceil((1900 + scTime/(365*24*60*60))%1* 365)))
month = dm.month
day = dm.day
if month < 10:
month = '0' + str(month)
else:
month = str(month)
if day < 10:
day = '0'+str(day)
else:
day = str(day)
textSource = paraview.simple.FindSource('DateLabel')
textSource.Expression = " '%s-%s-%i' " %((day),(month),(yr))
def end_cue(self): pass
def start cue(self): pass
from paraview.simple import *
### Replace lists ##########
day_li = [3,8,13,23,28,2,7,...]
month_li = [1,1,1,1,1,1,2,2,2,2,2,2,3,...]
yearl_li = [1990,1900,1990,1990,1990,1990,1990,1990,...,1991,1991,1991,...]
#############################
def tick(self): pass
scene = GetAnimationScene()
scTime = scene.AnimationTime
## Replace first timestep (seconds since 1900-01-01)
days_1 = int((scTime-3153816000)/(60*60*24))
date = paraview.simple.FindSource('Date')
i=days 1/5
if day_li[i] < 10:
day = '0' + str(day_li[i])
else:
day = str(day_li[i])
if month_li[i] < 10:
month = '0' + str(month_li[i])
else:
month = str(month_li[i])
year = str(year_li[i])
date.Text = day + '-' + month+ '-' + year
def end cue(self): pass
A simple demo to run ParaView with all necessary *input data* and *state file*
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This source diff could not be displayed because it is stored in LFS. You can view the blob instead.
This source diff could not be displayed because it is stored in LFS. You can view the blob instead.
This source diff could not be displayed because it is stored in LFS. You can view the blob instead.
This source diff could not be displayed because it is stored in LFS. You can view the blob instead.
This source diff could not be displayed because it is stored in LFS. You can view the blob instead.
This image diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment