Commit 8622961f authored by Florian Ziemen's avatar Florian Ziemen
Browse files

trying to plot freeboard for ANT for dpp0016

parent 0b542bb8
This source diff could not be displayed because it is too large. You can view the blob instead.
# state file generated using paraview version 5.8.1
# ----------------------------------------------------------------
# setup views used in the visualization
# ----------------------------------------------------------------
# trace generated using paraview version 5.8.1
#
# To ensure correct image size when batch processing, please search
# for and uncomment the line `# renderView*.ViewSize = [*,*]`
#### import the simple module from the paraview
from paraview.simple import *
#### disable automatic camera reset on 'Show'
paraview.simple._DisableFirstRenderCameraReset()
# Create a new 'Render View'
renderView1 = CreateView('RenderView')
renderView1.ViewSize = [2176, 1501]
renderView1.InteractionMode = '2D'
renderView1.AxesGrid = 'GridAxes3DActor'
renderView1.OrientationAxesVisibility = 0
renderView1.CenterOfRotation = [-3.0517578125e-05, 0.0, 0.0]
renderView1.UseLight = 0
renderView1.StereoType = 'Crystal Eyes'
renderView1.CameraPosition = [8.203963620786011, -158.10905243156412, 10000.0]
renderView1.CameraFocalPoint = [8.203963620786011, -158.10905243156412, 0.0]
renderView1.CameraFocalDisk = 1.0
renderView1.CameraParallelScale = 42.36394000569116
SetActiveView(None)
# ----------------------------------------------------------------
# setup view layouts
# ----------------------------------------------------------------
# create new layout object 'Layout #1'
layout1 = CreateLayout(name='Layout #1')
layout1.AssignView(0, renderView1)
# ----------------------------------------------------------------
# restore active view
SetActiveView(renderView1)
# ----------------------------------------------------------------
# ----------------------------------------------------------------
# setup the data processing pipelines
# ----------------------------------------------------------------
# create a new 'CDIReader'
dpp0016_ocean2D_20201205T150000Znc = CDIReader(FileNames=['/work/mh0287/k203123/GIT/icon-aes-dyw_albW/experiments/dpp0016_icefix_debug/oce/dpp0016_ocean2D_20201205T150000Z.nc'])
dpp0016_ocean2D_20201205T150000Znc.Dimensions = '(lon, lat, sfc)'
dpp0016_ocean2D_20201205T150000Znc.CellArrayStatus = ['hi', 'hs', 'conc', 'mld', 'mlotst', 'mlotstsq', 'zos']
dpp0016_ocean2D_20201205T150000Znc.SetProjection = 'Cassini Projection'
dpp0016_ocean2D_20201205T150000Znc.LayerThickness = 50
# create a new 'Calculator'
calculator1 = Calculator(Input=dpp0016_ocean2D_20201205T150000Znc)
calculator1.AttributeType = 'Cell Data'
calculator1.ResultArrayName = 'zos_eff'
calculator1.Function = 'zos-.9*hi-.3*hs'
# create a new 'CDIReader'
dpp0016_atm_2d_ml_20201205T150000Znc = CDIReader(FileNames=['/work/mh0287/k203123/GIT/icon-aes-dyw_albW/experiments/dpp0016_icefix_debug/atm/dpp0016_atm_2d_ml_20201205T150000Z.nc'])
dpp0016_atm_2d_ml_20201205T150000Znc.Dimensions = '(lon, lat, sfc)'
dpp0016_atm_2d_ml_20201205T150000Znc.CellArrayStatus = ['ps', 'psl', 'rsdt', 'rsut', 'rsutcs', 'rlut', 'rlutcs', 'rsds', 'rsdscs', 'rlds', 'rldscs', 'rsus', 'rsuscs', 'rlus', 'ts', 'sic', 'sit', 'clt', 'prlr', 'prls', 'pr', 'prw', 'cllvi', 'clivi', 'qgvi', 'qrvi', 'qsvi', 'hfls', 'hfss', 'evspsbl', 'tauu', 'tauv', 'sfcwind', 'uas', 'vas', 'tas']
dpp0016_atm_2d_ml_20201205T150000Znc.SetProjection = 'Cassini Projection'
dpp0016_atm_2d_ml_20201205T150000Znc.LayerThickness = 50
# create a new 'Cell Data to Point Data'
cellDatatoPointData1 = CellDatatoPointData(Input=dpp0016_atm_2d_ml_20201205T150000Znc)
cellDatatoPointData1.ProcessAllArrays = 0
cellDatatoPointData1.CellDataArraytoprocess = ['psl']
# create a new 'Contour'
contour1 = Contour(Input=cellDatatoPointData1)
contour1.ContourBy = ['POINTS', 'psl']
contour1.Isosurfaces = [97000.0, 96000.0, 95000.0, 99000.0, 98000.0]
contour1.PointMergeMethod = 'Uniform Binning'
# create a new 'Threshold'
threshold1 = Threshold(Input=calculator1)
threshold1.Scalars = ['CELLS', 'Result']
threshold1.ThresholdRange = [-5.0, -0.0]
# ----------------------------------------------------------------
# setup the visualization in view 'renderView1'
# ----------------------------------------------------------------
# show data from dpp0016_atm_2d_ml_20201205T150000Znc
dpp0016_atm_2d_ml_20201205T150000ZncDisplay = Show(dpp0016_atm_2d_ml_20201205T150000Znc, renderView1, 'UnstructuredGridRepresentation')
# trace defaults for the display properties.
dpp0016_atm_2d_ml_20201205T150000ZncDisplay.Representation = 'Surface'
dpp0016_atm_2d_ml_20201205T150000ZncDisplay.AmbientColor = [0.0, 0.0, 0.0]
dpp0016_atm_2d_ml_20201205T150000ZncDisplay.ColorArrayName = ['POINTS', '']
dpp0016_atm_2d_ml_20201205T150000ZncDisplay.DiffuseColor = [0.0, 0.0, 0.0]
dpp0016_atm_2d_ml_20201205T150000ZncDisplay.OSPRayScaleFunction = 'PiecewiseFunction'
dpp0016_atm_2d_ml_20201205T150000ZncDisplay.SelectOrientationVectors = 'None'
dpp0016_atm_2d_ml_20201205T150000ZncDisplay.ScaleFactor = 59.99998779296875
dpp0016_atm_2d_ml_20201205T150000ZncDisplay.SelectScaleArray = 'None'
dpp0016_atm_2d_ml_20201205T150000ZncDisplay.GlyphType = 'Arrow'
dpp0016_atm_2d_ml_20201205T150000ZncDisplay.GlyphTableIndexArray = 'None'
dpp0016_atm_2d_ml_20201205T150000ZncDisplay.GaussianRadius = 2.9999993896484374
dpp0016_atm_2d_ml_20201205T150000ZncDisplay.SetScaleArray = [None, '']
dpp0016_atm_2d_ml_20201205T150000ZncDisplay.ScaleTransferFunction = 'PiecewiseFunction'
dpp0016_atm_2d_ml_20201205T150000ZncDisplay.OpacityArray = [None, '']
dpp0016_atm_2d_ml_20201205T150000ZncDisplay.OpacityTransferFunction = 'PiecewiseFunction'
dpp0016_atm_2d_ml_20201205T150000ZncDisplay.DataAxesGrid = 'GridAxesRepresentation'
dpp0016_atm_2d_ml_20201205T150000ZncDisplay.PolarAxes = 'PolarAxesRepresentation'
dpp0016_atm_2d_ml_20201205T150000ZncDisplay.ScalarOpacityUnitDistance = 2.432556203035958
dpp0016_atm_2d_ml_20201205T150000ZncDisplay.BumpMapInputDataArray = [None, '']
dpp0016_atm_2d_ml_20201205T150000ZncDisplay.ExtrusionInputDataArray = ['CELLS', 'Center Latitude (CLAT)']
dpp0016_atm_2d_ml_20201205T150000ZncDisplay.SelectInputVectors = [None, '']
dpp0016_atm_2d_ml_20201205T150000ZncDisplay.WriteLog = ''
# show data from calculator1
calculator1Display = Show(calculator1, renderView1, 'UnstructuredGridRepresentation')
# get color transfer function/color map for 'zos_eff'
zos_effLUT = GetColorTransferFunction('zos_eff')
zos_effLUT.AutomaticRescaleRangeMode = 'Never'
zos_effLUT.RGBPoints = [-5.0, 0.988362, 0.998364, 0.644924, -4.98039, 0.982257, 0.994109, 0.631017, -4.960785, 0.976511, 0.989753, 0.61676, -4.941175, 0.971162, 0.985282, 0.602154, -4.92157, 0.966249, 0.980678, 0.587206, -4.901960000000001, 0.961812, 0.975924, 0.571925, -4.882355, 0.957896, 0.971003, 0.556275, -4.862745, 0.954529, 0.965896, 0.540361, -4.843135, 0.95174, 0.960587, 0.524203, -4.82353, 0.949545, 0.955063, 0.50786, -4.80392, 0.947937, 0.949318, 0.491426, -4.784315, 0.946903, 0.943348, 0.47497, -4.764705, 0.946403, 0.937159, 0.458592, -4.7451, 0.946392, 0.930761, 0.442367, -4.72549, 0.946809, 0.924168, 0.426373, -4.7058800000000005, 0.947594, 0.917399, 0.410665, -4.686274999999999, 0.948683, 0.910473, 0.395289, -4.666665, 0.950018, 0.903409, 0.380271, -4.64706, 0.951546, 0.896226, 0.365627, -4.6274500000000005, 0.953215, 0.888942, 0.351369, -4.607844999999999, 0.954997, 0.881569, 0.337475, -4.588235, 0.956834, 0.874129, 0.323974, -4.568625, 0.95872, 0.866624, 0.31082, -4.54902, 0.960626, 0.859069, 0.29801, -4.5294099999999995, 0.962517, 0.851476, 0.285546, -4.509805, 0.964394, 0.843848, 0.273391, -4.490195, 0.966243, 0.836191, 0.261534, -4.47059, 0.968041, 0.828515, 0.249972, -4.4509799999999995, 0.969783, 0.820825, 0.238686, -4.431374999999999, 0.971468, 0.813122, 0.227658, -4.411765, 0.973088, 0.805409, 0.216877, -4.392155, 0.974638, 0.797692, 0.206332, -4.3725499999999995, 0.976108, 0.789974, 0.196018, -4.35294, 0.977497, 0.782258, 0.185923, -4.333335, 0.978806, 0.774545, 0.176037, -4.313725, 0.980032, 0.766837, 0.166353, -4.2941199999999995, 0.981173, 0.759135, 0.156863, -4.27451, 0.982228, 0.751442, 0.147565, -4.254899999999999, 0.983196, 0.743758, 0.138453, -4.235294999999999, 0.984075, 0.736087, 0.129527, -4.215685, 0.984865, 0.728427, 0.120785, -4.19608, 0.985566, 0.720782, 0.112229, -4.176469999999999, 0.986175, 0.713153, 0.103863, -4.156865, 0.986694, 0.70554, 0.095694, -4.137255, 0.987124, 0.697944, 0.087731, -4.1176449999999996, 0.987464, 0.690366, 0.07999, -4.098039999999999, 0.987714, 0.682807, 0.072489, -4.07843, 0.987874, 0.675267, 0.065257, -4.058825000000001, 0.987945, 0.667748, 0.058329, -4.0392149999999996, 0.987926, 0.66025, 0.05175, -4.01961, 0.987819, 0.652773, 0.045581, -4.000000000000001, 0.987622, 0.64532, 0.039886, -3.98039, 0.987337, 0.63789, 0.034916, -3.9607850000000004, 0.986964, 0.630485, 0.030908, -3.941175, 0.986502, 0.623105, 0.027814, -3.9215699999999996, 0.985952, 0.61575, 0.025592, -3.9019599999999994, 0.985315, 0.608422, 0.024202, -3.882355, 0.984591, 0.601122, 0.023606, -3.8627450000000003, 0.983779, 0.593849, 0.02377, -3.8431349999999997, 0.982881, 0.586606, 0.024661, -3.82353, 0.981895, 0.579392, 0.02625, -3.80392, 0.980824, 0.572209, 0.028508, -3.784315, 0.979666, 0.565057, 0.031409, -3.7647049999999997, 0.978422, 0.557937, 0.034931, -3.7451, 0.977092, 0.55085, 0.03905, -3.72549, 0.975677, 0.543798, 0.043618, -3.7058799999999996, 0.974176, 0.53678, 0.048392, -3.686275, 0.97259, 0.529798, 0.053324, -3.6666650000000005, 0.970919, 0.522853, 0.058367, -3.64706, 0.969163, 0.515946, 0.063488, -3.6274499999999996, 0.967322, 0.509078, 0.068659, -3.6078449999999997, 0.965397, 0.502249, 0.073859, -3.588235, 0.963387, 0.495462, 0.079073, -3.5686250000000004, 0.961293, 0.488716, 0.084289, -3.54902, 0.959114, 0.482014, 0.089499, -3.52941, 0.956852, 0.475356, 0.094695, -3.5098049999999996, 0.954506, 0.468744, 0.099874, -3.490195, 0.952075, 0.462178, 0.105031, -3.4705900000000005, 0.949562, 0.45566, 0.110164, -3.4509800000000004, 0.946965, 0.449191, 0.115272, -3.431375, 0.944285, 0.442772, 0.120354, -3.4117649999999995, 0.941521, 0.436405, 0.125409, -3.392155, 0.938675, 0.430091, 0.130438, -3.3725500000000004, 0.935747, 0.423831, 0.13544, -3.35294, 0.932737, 0.417627, 0.140417, -3.3333350000000004, 0.929644, 0.411479, 0.145367, -3.3137250000000003, 0.92647, 0.405389, 0.150292, -3.29412, 0.923215, 0.399359, 0.155193, -3.2745100000000003, 0.919879, 0.393389, 0.16007, -3.2549, 0.916462, 0.387481, 0.164924, -3.2352950000000003, 0.912966, 0.381636, 0.169755, -3.2156849999999997, 0.90939, 0.375856, 0.174563, -3.1960800000000003, 0.905735, 0.37014, 0.17935, -3.17647, 0.902003, 0.364492, 0.184116, -3.156865, 0.898192, 0.358911, 0.18886, -3.137255, 0.894305, 0.353399, 0.193584, -3.117645, 0.890341, 0.347957, 0.198286, -3.09804, 0.886302, 0.342586, 0.202968, -3.07843, 0.882188, 0.337287, 0.207628, -3.058825, 0.878001, 0.33206, 0.212268, -3.0392150000000004, 0.873741, 0.326906, 0.216886, -3.0196099999999997, 0.869409, 0.321827, 0.221482, -3.0, 0.865006, 0.316822, 0.226055, -2.98039, 0.860533, 0.311892, 0.230606, -2.9607850000000004, 0.855992, 0.307038, 0.235133, -2.941175, 0.851384, 0.30226, 0.239636, -2.92157, 0.846709, 0.297559, 0.244113, -2.9019600000000003, 0.841969, 0.292933, 0.248564, -2.8823549999999996, 0.837165, 0.288385, 0.252988, -2.862745, 0.832299, 0.283913, 0.257383, -2.843135, 0.827372, 0.279517, 0.26175, -2.8235300000000003, 0.822386, 0.275197, 0.266085, -2.8039199999999997, 0.817341, 0.270954, 0.27039, -2.784315, 0.812239, 0.266786, 0.274661, -2.764705, 0.807082, 0.262692, 0.278898, -2.7450999999999994, 0.801871, 0.258674, 0.283099, -2.7254899999999997, 0.796607, 0.254728, 0.287264, -2.70588, 0.791293, 0.250856, 0.29139, -2.686275, 0.785929, 0.247056, 0.295477, -2.6666649999999996, 0.780517, 0.243327, 0.299523, -2.6470599999999997, 0.775059, 0.239667, 0.303526, -2.6274500000000005, 0.769556, 0.236077, 0.307485, -2.6078449999999993, 0.76401, 0.232554, 0.311399, -2.588235, 0.758422, 0.229097, 0.315266, -2.5686250000000004, 0.752794, 0.225706, 0.319085, -2.54902, 0.747127, 0.222378, 0.322856, -2.5294100000000004, 0.741423, 0.219112, 0.326576, -2.509805, 0.735683, 0.215906, 0.330245, -2.490195, 0.729909, 0.212759, 0.333861, -2.4705900000000005, 0.724103, 0.20967, 0.337424, -2.4509800000000004, 0.718264, 0.206636, 0.340931, -2.431375, 0.712396, 0.203656, 0.344383, -2.411765, 0.7065, 0.200728, 0.347777, -2.392155, 0.700576, 0.197851, 0.351113, -2.37255, 0.694627, 0.195021, 0.354388, -2.3529400000000003, 0.688653, 0.192239, 0.357603, -2.3333350000000004, 0.682656, 0.189501, 0.360757, -2.313725, 0.676638, 0.186807, 0.363849, -2.29412, 0.670599, 0.184153, 0.366879, -2.2745100000000003, 0.66454, 0.181539, 0.369846, -2.2548999999999997, 0.658463, 0.178962, 0.372748, -2.2352949999999994, 0.652369, 0.176421, 0.375586, -2.215685, 0.64626, 0.173914, 0.378359, -2.1960800000000003, 0.640135, 0.171438, 0.381065, -2.17647, 0.633998, 0.168992, 0.383704, -2.1568649999999994, 0.627847, 0.166575, 0.386276, -2.137255, 0.621685, 0.164184, 0.388781, -2.1176450000000004, 0.615513, 0.161817, 0.391219, -2.09804, 0.60933, 0.159474, 0.393589, -2.07843, 0.603139, 0.157151, 0.395891, -2.0588249999999997, 0.59694, 0.154848, 0.398125, -2.0392149999999996, 0.590734, 0.152563, 0.40029, -2.01961, 0.584521, 0.150294, 0.402385, -2.0, 0.578304, 0.148039, 0.404411, -1.9803899999999997, 0.572081, 0.145797, 0.406369, -1.9607849999999993, 0.565854, 0.143567, 0.408258, -1.9411749999999999, 0.559624, 0.141346, 0.410078, -1.9215700000000002, 0.553392, 0.139134, 0.411829, -1.9019600000000003, 0.547157, 0.136929, 0.413511, -1.882355, 0.54092, 0.134729, 0.415123, -1.862745, 0.534683, 0.132534, 0.416667, -1.8431350000000002, 0.528444, 0.130341, 0.418142, -1.8235299999999999, 0.522206, 0.12815, 0.419549, -1.80392, 0.515967, 0.12596, 0.420887, -1.7843149999999997, 0.50973, 0.123769, 0.422156, -1.7647049999999997, 0.503493, 0.121575, 0.423356, -1.7450999999999999, 0.497257, 0.119379, 0.424488, -1.7254899999999995, 0.491022, 0.117179, 0.425552, -1.7058799999999996, 0.484789, 0.114974, 0.426548, -1.6862750000000004, 0.478558, 0.112764, 0.427475, -1.6666649999999994, 0.472328, 0.110547, 0.428334, -1.6470600000000002, 0.4661, 0.108322, 0.429125, -1.6274499999999996, 0.459875, 0.106089, 0.429846, -1.607845, 0.453651, 0.103848, 0.430498, -1.588235, 0.447428, 0.101597, 0.43108, -1.5686249999999995, 0.441207, 0.099338, 0.431594, -1.5490199999999998, 0.434987, 0.097069, 0.432039, -1.52941, 0.428768, 0.09479, 0.432412, -1.5098049999999996, 0.422549, 0.092501, 0.432714, -1.4901950000000004, 0.416331, 0.090203, 0.432943, -1.47059, 0.410113, 0.087896, 0.433098, -1.45098, 0.403894, 0.08558, 0.433179, -1.4313749999999996, 0.397674, 0.083257, 0.433183, -1.4117650000000004, 0.391453, 0.080927, 0.433109, -1.3921550000000005, 0.385228, 0.078591, 0.432955, -1.3725500000000002, 0.379001, 0.076253, 0.432719, -1.3529400000000003, 0.372768, 0.073915, 0.4324, -1.333335, 0.366529, 0.071579, 0.431994, -1.313725, 0.360284, 0.069247, 0.431497, -1.2941200000000004, 0.354032, 0.066925, 0.430906, -1.2745099999999998, 0.347771, 0.064616, 0.430217, -1.2549, 0.3415, 0.062325, 0.429425, -1.2352950000000003, 0.335217, 0.06006, 0.428524, -1.2156850000000001, 0.328921, 0.057827, 0.427511, -1.1960800000000005, 0.32261, 0.055634, 0.426377, -1.1764700000000001, 0.316282, 0.05349, 0.425116, -1.1568650000000003, 0.309935, 0.051407, 0.423721, -1.1372550000000003, 0.303568, 0.049396, 0.422182, -1.117645, 0.297178, 0.04747, 0.420491, -1.0980400000000006, 0.290763, 0.045644, 0.418637, -1.0784300000000002, 0.284321, 0.043933, 0.416608, -1.058825, 0.27785, 0.042353, 0.414392, -1.0392149999999996, 0.271347, 0.040922, 0.411976, -1.0196100000000001, 0.26481, 0.039647, 0.409345, -0.9999999999999998, 0.258234, 0.038571, 0.406485, -0.9803899999999993, 0.25162, 0.037705, 0.403378, -0.9607850000000007, 0.244967, 0.037055, 0.400007, -0.9411749999999997, 0.238273, 0.036621, 0.396353, -0.9215699999999999, 0.231538, 0.036405, 0.3924, -0.9019600000000005, 0.224763, 0.036405, 0.388129, -0.8823550000000002, 0.217949, 0.036615, 0.383522, -0.8627449999999998, 0.211095, 0.03703, 0.378563, -0.8431350000000004, 0.204209, 0.037632, 0.373238, -0.8235300000000007, 0.197297, 0.0384, 0.367535, -0.8039199999999996, 0.190367, 0.039309, 0.361447, -0.7843149999999999, 0.183429, 0.040329, 0.354971, -0.7647050000000005, 0.176493, 0.041402, 0.348111, -0.7450999999999997, 0.169575, 0.042489, 0.340874, -0.7254899999999997, 0.162689, 0.043554, 0.333277, -0.7058800000000004, 0.15585, 0.044559, 0.325338, -0.6862750000000001, 0.149073, 0.045468, 0.317085, -0.6666649999999996, 0.142378, 0.046242, 0.308553, -0.6470599999999999, 0.135778, 0.046856, 0.299776, -0.6274500000000005, 0.129285, 0.047293, 0.290788, -0.6078450000000002, 0.122908, 0.047536, 0.281624, -0.5882349999999997, 0.116656, 0.047574, 0.272321, -0.5686250000000004, 0.110536, 0.047399, 0.262912, -0.5490200000000001, 0.104551, 0.047008, 0.25343, -0.5294100000000007, 0.098702, 0.046402, 0.243904, -0.5098049999999998, 0.09299, 0.045583, 0.234358, -0.49019499999999994, 0.087411, 0.044556, 0.224813, -0.4705899999999996, 0.081962, 0.043328, 0.215289, -0.4509800000000008, 0.076637, 0.041905, 0.205799, -0.43137499999999995, 0.071429, 0.040294, 0.196354, -0.41176500000000005, 0.066331, 0.038504, 0.186962, -0.3921550000000007, 0.06134, 0.03659, 0.177642, -0.3725500000000004, 0.056449, 0.034569, 0.168414, -0.3529399999999999, 0.051644, 0.032474, 0.159254, -0.33333500000000016, 0.046915, 0.030324, 0.150164, -0.3137250000000008, 0.042253, 0.028139, 0.141141, -0.29411999999999994, 0.037668, 0.025921, 0.132232, -0.27451000000000003, 0.033385, 0.023702, 0.123397, -0.2549000000000007, 0.029432, 0.021503, 0.114621, -0.23529500000000036, 0.025793, 0.019331, 0.10593, -0.2156849999999999, 0.022447, 0.017199, 0.097327, -0.19608000000000014, 0.019373, 0.015133, 0.088767, -0.17647000000000024, 0.016561, 0.013136, 0.080282, -0.15686499999999992, 0.013995, 0.011225, 0.071862, -0.13725500000000002, 0.011663, 0.009417, 0.06346, -0.11764500000000067, 0.009561, 0.007713, 0.055143, -0.09804000000000035, 0.007676, 0.006136, 0.046836, -0.07842999999999989, 0.006006, 0.004692, 0.038558, -0.05882500000000013, 0.004547, 0.003392, 0.030909, -0.03921500000000022, 0.003299, 0.002249, 0.024239, -0.019609999999999905, 0.002267, 0.00127, 0.01857, 0.0, 0.001462, 0.000466, 0.013866]
zos_effLUT.NanColor = [0.0, 1.0, 0.0]
zos_effLUT.ScalarRangeInitialized = 1.0
# get opacity transfer function/opacity map for 'zos_eff'
zos_effPWF = GetOpacityTransferFunction('zos_eff')
zos_effPWF.Points = [-5.0, 0.0, 0.5, 0.0, 0.0, 1.0, 0.5, 0.0]
zos_effPWF.ScalarRangeInitialized = 1
# trace defaults for the display properties.
calculator1Display.Representation = 'Surface'
calculator1Display.ColorArrayName = ['CELLS', 'zos_eff']
calculator1Display.LookupTable = zos_effLUT
calculator1Display.OSPRayScaleFunction = 'PiecewiseFunction'
calculator1Display.SelectOrientationVectors = 'None'
calculator1Display.ScaleFactor = 62.82254333496094
calculator1Display.SelectScaleArray = 'Result'
calculator1Display.GlyphType = 'Arrow'
calculator1Display.GlyphTableIndexArray = 'Result'
calculator1Display.GaussianRadius = 3.141127166748047
calculator1Display.SetScaleArray = [None, '']
calculator1Display.ScaleTransferFunction = 'PiecewiseFunction'
calculator1Display.OpacityArray = [None, '']
calculator1Display.OpacityTransferFunction = 'PiecewiseFunction'
calculator1Display.DataAxesGrid = 'GridAxesRepresentation'
calculator1Display.PolarAxes = 'PolarAxesRepresentation'
calculator1Display.ScalarOpacityFunction = zos_effPWF
calculator1Display.ScalarOpacityUnitDistance = 2.8552085871048254
calculator1Display.BumpMapInputDataArray = [None, '']
calculator1Display.ExtrusionInputDataArray = ['CELLS', 'Result']
calculator1Display.SelectInputVectors = [None, '']
calculator1Display.WriteLog = ''
# show data from contour1
contour1Display = Show(contour1, renderView1, 'GeometryRepresentation')
# get color transfer function/color map for 'psl'
pslLUT = GetColorTransferFunction('psl')
pslLUT.AutomaticRescaleRangeMode = 'Never'
pslLUT.RGBPoints = [95000.0, 0.231373, 0.298039, 0.752941, 97000.0, 0.865003, 0.865003, 0.865003, 99000.0, 0.705882, 0.0156863, 0.14902]
pslLUT.NumberOfTableValues = 5
pslLUT.ScalarRangeInitialized = 1.0
# trace defaults for the display properties.
contour1Display.Representation = 'Surface'
contour1Display.ColorArrayName = ['POINTS', 'psl']
contour1Display.LookupTable = pslLUT
contour1Display.OSPRayScaleArray = 'psl'
contour1Display.OSPRayScaleFunction = 'PiecewiseFunction'
contour1Display.SelectOrientationVectors = 'None'
contour1Display.ScaleFactor = 62.819314575195314
contour1Display.SelectScaleArray = 'psl'
contour1Display.GlyphType = 'Arrow'
contour1Display.GlyphTableIndexArray = 'psl'
contour1Display.GaussianRadius = 3.140965728759766
contour1Display.SetScaleArray = ['POINTS', 'psl']
contour1Display.ScaleTransferFunction = 'PiecewiseFunction'
contour1Display.OpacityArray = ['POINTS', 'psl']
contour1Display.OpacityTransferFunction = 'PiecewiseFunction'
contour1Display.DataAxesGrid = 'GridAxesRepresentation'
contour1Display.PolarAxes = 'PolarAxesRepresentation'
contour1Display.BumpMapInputDataArray = ['POINTS', 'psl']
contour1Display.ExtrusionInputDataArray = ['POINTS', 'psl']
contour1Display.SelectInputVectors = [None, '']
contour1Display.WriteLog = ''
# init the 'PiecewiseFunction' selected for 'ScaleTransferFunction'
contour1Display.ScaleTransferFunction.Points = [99000.0, 0.0, 0.5, 0.0, 105000.0, 1.0, 0.5, 0.0]
# init the 'PiecewiseFunction' selected for 'OpacityTransferFunction'
contour1Display.OpacityTransferFunction.Points = [99000.0, 0.0, 0.5, 0.0, 105000.0, 1.0, 0.5, 0.0]
# setup the color legend parameters for each legend in this view
# get color legend/bar for pslLUT in view renderView1
pslLUTColorBar = GetScalarBar(pslLUT, renderView1)
pslLUTColorBar.WindowLocation = 'UpperLeftCorner'
pslLUTColorBar.Title = 'psl'
pslLUTColorBar.ComponentTitle = ''
# set color bar visibility
pslLUTColorBar.Visibility = 1
# get color legend/bar for zos_effLUT in view renderView1
zos_effLUTColorBar = GetScalarBar(zos_effLUT, renderView1)
zos_effLUTColorBar.WindowLocation = 'UpperRightCorner'
zos_effLUTColorBar.Title = 'zos - 0.9 hi - 0.3 hs'
zos_effLUTColorBar.ComponentTitle = ''
# set color bar visibility
zos_effLUTColorBar.Visibility = 1
# show color legend
calculator1Display.SetScalarBarVisibility(renderView1, True)
# show color legend
contour1Display.SetScalarBarVisibility(renderView1, True)
# ----------------------------------------------------------------
# setup color maps and opacity mapes used in the visualization
# note: the Get..() functions create a new object, if needed
# ----------------------------------------------------------------
# get opacity transfer function/opacity map for 'psl'
pslPWF = GetOpacityTransferFunction('psl')
pslPWF.Points = [95000.0, 0.0, 0.5, 0.0, 99000.0, 1.0, 0.5, 0.0]
pslPWF.ScalarRangeInitialized = 1
# ----------------------------------------------------------------
# finally, restore active source
SetActiveSource(contour1)
# ----------------------------------------------------------------
\ No newline at end of file
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