Commit 38c13bfa authored by Florian Ziemen's avatar Florian Ziemen
Browse files

Merge branch 'master' of gitlab.dkrz.de:k202134/paraview-files into master

parents 8622961f 44901986
This diff is collapsed.
# state file generated using paraview version 5.8.1-1079-g8d7f8f9372
#### import the simple module from the paraview
from paraview.simple import *
#### disable automatic camera reset on 'Show'
paraview.simple._DisableFirstRenderCameraReset()
# ----------------------------------------------------------------
# setup views used in the visualization
# ----------------------------------------------------------------
# Create a new 'Render View'
renderView1 = CreateView('RenderView')
renderView1.ViewSize = [1920, 1080]
renderView1.InteractionMode = '2D'
renderView1.AxesGrid = 'GridAxes3DActor'
renderView1.OrientationAxesVisibility = 0
renderView1.CenterOfRotation = [0.001556396484375, 9.228599548339844, 0.0]
renderView1.UseLight = 0
renderView1.StereoType = 'Crystal Eyes'
renderView1.CameraPosition = [5.460894817615681, -150.2376559564407, 10000.0]
renderView1.CameraFocalPoint = [5.460894817615681, -150.2376559564407, 0.0]
renderView1.CameraFocalDisk = 1.0
renderView1.CameraParallelScale = 60.20944096671894
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_oceanice_20201130T000000Z_b7nc = CDIReader(registrationName='dpp0016_oceanice_20201130T000000Z_b7.nc', FileNames=['/Users/flo/NO_BACKUP/DYAMOND_WINTER/dpp0015/oce/b7/dpp0016_oceanice_20201130T000000Z_b7.nc'])
dpp0016_oceanice_20201130T000000Z_b7nc.Dimensions = '(clon, clat, lev)'
dpp0016_oceanice_20201130T000000Z_b7nc.CellArrayStatus = ['hi', 'hs', 'conc']
dpp0016_oceanice_20201130T000000Z_b7nc.SetProjection = 'Cassini Projection'
dpp0016_oceanice_20201130T000000Z_b7nc.LayerThickness = 50
# create a new 'NetCDF Time Annotation'
netCDFTimeAnnotation1 = NetCDFTimeAnnotation(registrationName='NetCDFTimeAnnotation1', Input=dpp0016_oceanice_20201130T000000Z_b7nc)
netCDFTimeAnnotation1.Expression = '"On %02i.%02i.%02i at %02i:%02i" % (Date[0], Date[1], Date[2], Date[3], Date[4])'
# create a new 'CDIReader'
dpp0016_ocean3D_l1_20201130T000000Z_b7nc = CDIReader(registrationName='dpp0016_ocean3D_l1_20201130T000000Z_b7.nc', FileNames=['/Users/flo/NO_BACKUP/DYAMOND_WINTER/dpp0015/oce/b7/dpp0016_ocean3D_l1_20201130T000000Z_b7.nc'])
dpp0016_ocean3D_l1_20201130T000000Z_b7nc.Dimensions = '(clon, clat, depth)'
dpp0016_ocean3D_l1_20201130T000000Z_b7nc.CellArrayStatus = ['to', 'so']
dpp0016_ocean3D_l1_20201130T000000Z_b7nc.SetProjection = 'Cassini Projection'
dpp0016_ocean3D_l1_20201130T000000Z_b7nc.LayerThickness = 50
# create a new 'Threshold'
threshold1 = Threshold(registrationName='Threshold1', Input=dpp0016_ocean3D_l1_20201130T000000Z_b7nc)
threshold1.Scalars = ['CELLS', 'so']
threshold1.ThresholdRange = [1.0, 60.0]
# ----------------------------------------------------------------
# setup the visualization in view 'renderView1'
# ----------------------------------------------------------------
# show data from dpp0016_oceanice_20201130T000000Z_b7nc
dpp0016_oceanice_20201130T000000Z_b7ncDisplay = Show(dpp0016_oceanice_20201130T000000Z_b7nc, renderView1, 'UnstructuredGridRepresentation')
# get color transfer function/color map for 'conc'
concLUT = GetColorTransferFunction('conc')
concLUT.EnableOpacityMapping = 1
concLUT.RGBPoints = [0.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0]
concLUT.ColorSpace = 'RGB'
concLUT.ScalarRangeInitialized = 1.0
# get opacity transfer function/opacity map for 'conc'
concPWF = GetOpacityTransferFunction('conc')
concPWF.Points = [0.0, 0.0, 0.5, 0.0, 0.15, 0.5, 0.5, 0.0, 1.0, 0.5, 0.5, 0.0]
concPWF.ScalarRangeInitialized = 1
# trace defaults for the display properties.
dpp0016_oceanice_20201130T000000Z_b7ncDisplay.Representation = 'Surface'
dpp0016_oceanice_20201130T000000Z_b7ncDisplay.ColorArrayName = ['CELLS', 'conc']
dpp0016_oceanice_20201130T000000Z_b7ncDisplay.LookupTable = concLUT
dpp0016_oceanice_20201130T000000Z_b7ncDisplay.SelectTCoordArray = 'None'
dpp0016_oceanice_20201130T000000Z_b7ncDisplay.SelectNormalArray = 'None'
dpp0016_oceanice_20201130T000000Z_b7ncDisplay.SelectTangentArray = 'None'
dpp0016_oceanice_20201130T000000Z_b7ncDisplay.OSPRayScaleFunction = 'PiecewiseFunction'
dpp0016_oceanice_20201130T000000Z_b7ncDisplay.SelectOrientationVectors = 'None'
dpp0016_oceanice_20201130T000000Z_b7ncDisplay.ScaleFactor = 60.166174316406256
dpp0016_oceanice_20201130T000000Z_b7ncDisplay.SelectScaleArray = 'None'
dpp0016_oceanice_20201130T000000Z_b7ncDisplay.GlyphType = 'Arrow'
dpp0016_oceanice_20201130T000000Z_b7ncDisplay.GlyphTableIndexArray = 'None'
dpp0016_oceanice_20201130T000000Z_b7ncDisplay.GaussianRadius = 3.008308715820313
dpp0016_oceanice_20201130T000000Z_b7ncDisplay.SetScaleArray = [None, '']
dpp0016_oceanice_20201130T000000Z_b7ncDisplay.ScaleTransferFunction = 'PiecewiseFunction'
dpp0016_oceanice_20201130T000000Z_b7ncDisplay.OpacityArray = [None, '']
dpp0016_oceanice_20201130T000000Z_b7ncDisplay.OpacityTransferFunction = 'PiecewiseFunction'
dpp0016_oceanice_20201130T000000Z_b7ncDisplay.DataAxesGrid = 'GridAxesRepresentation'
dpp0016_oceanice_20201130T000000Z_b7ncDisplay.PolarAxes = 'PolarAxesRepresentation'
dpp0016_oceanice_20201130T000000Z_b7ncDisplay.ScalarOpacityFunction = concPWF
dpp0016_oceanice_20201130T000000Z_b7ncDisplay.ScalarOpacityUnitDistance = 6.795499595074316
dpp0016_oceanice_20201130T000000Z_b7ncDisplay.OpacityArrayName = ['CELLS', 'Center Latitude (CLAT)']
dpp0016_oceanice_20201130T000000Z_b7ncDisplay.BumpMapInputDataArray = [None, '']
dpp0016_oceanice_20201130T000000Z_b7ncDisplay.ExtrusionInputDataArray = ['CELLS', 'hi']
dpp0016_oceanice_20201130T000000Z_b7ncDisplay.SelectInputVectors = [None, '']
dpp0016_oceanice_20201130T000000Z_b7ncDisplay.WriteLog = ''
# show data from threshold1
threshold1Display = Show(threshold1, renderView1, 'UnstructuredGridRepresentation')
# get color transfer function/color map for 'so'
soLUT = GetColorTransferFunction('so')
soLUT.AutomaticRescaleRangeMode = 'Never'
soLUT.RGBPoints = [20.000000000000004, 0.278431372549, 0.278431372549, 0.858823529412, 24.0, 0.0, 0.0, 0.360784313725, 28.0, 0.0, 0.01568627450980392, 0.37254901960784315, 32.0, 0.0, 1.0, 1.0, 33.0, 0.0, 0.501960784314, 0.0, 33.5, 1.0, 1.0, 0.0, 34.0, 1.0, 0.380392156863, 0.0, 34.5, 0.419607843137, 0.0, 0.0, 35.0, 0.878431372549, 0.301960784314, 0.301960784314]
soLUT.ColorSpace = 'RGB'
soLUT.ScalarRangeInitialized = 1.0
# get opacity transfer function/opacity map for 'so'
soPWF = GetOpacityTransferFunction('so')
soPWF.Points = [20.0, 0.0, 0.5, 0.0, 35.0, 1.0, 0.5, 0.0]
soPWF.ScalarRangeInitialized = 1
# trace defaults for the display properties.
threshold1Display.Representation = 'Surface'
threshold1Display.ColorArrayName = ['CELLS', 'so']
threshold1Display.LookupTable = soLUT
threshold1Display.SelectTCoordArray = 'None'
threshold1Display.SelectNormalArray = 'None'
threshold1Display.SelectTangentArray = 'None'
threshold1Display.OSPRayScaleFunction = 'PiecewiseFunction'
threshold1Display.SelectOrientationVectors = 'None'
threshold1Display.ScaleFactor = 62.79500427246094
threshold1Display.SelectScaleArray = 'None'
threshold1Display.GlyphType = 'Arrow'
threshold1Display.GlyphTableIndexArray = 'None'
threshold1Display.GaussianRadius = 3.139750213623047
threshold1Display.SetScaleArray = [None, '']
threshold1Display.ScaleTransferFunction = 'PiecewiseFunction'
threshold1Display.OpacityArray = [None, '']
threshold1Display.OpacityTransferFunction = 'PiecewiseFunction'
threshold1Display.DataAxesGrid = 'GridAxesRepresentation'
threshold1Display.PolarAxes = 'PolarAxesRepresentation'
threshold1Display.ScalarOpacityFunction = soPWF
threshold1Display.ScalarOpacityUnitDistance = 7.210946129682988
threshold1Display.OpacityArrayName = ['CELLS', 'Center Latitude (CLAT)']
threshold1Display.BumpMapInputDataArray = [None, '']
threshold1Display.ExtrusionInputDataArray = ['CELLS', 'Center Latitude (CLAT)']
threshold1Display.SelectInputVectors = [None, '']
threshold1Display.WriteLog = ''
# show data from netCDFTimeAnnotation1
netCDFTimeAnnotation1Display = Show(netCDFTimeAnnotation1, renderView1, 'TextSourceRepresentation')
# trace defaults for the display properties.
netCDFTimeAnnotation1Display.WindowLocation = 'UpperRightCorner'
netCDFTimeAnnotation1Display.Position = [0.01, 0.9196296296296296]
# setup the color legend parameters for each legend in this view
# get color legend/bar for soLUT in view renderView1
soLUTColorBar = GetScalarBar(soLUT, renderView1)
soLUTColorBar.Position = [0.9395833333333333, 0.011111111111111112]
soLUTColorBar.Title = 'so'
soLUTColorBar.ComponentTitle = ''
# set color bar visibility
soLUTColorBar.Visibility = 1
# show color legend
threshold1Display.SetScalarBarVisibility(renderView1, True)
# ----------------------------------------------------------------
# setup color maps and opacity mapes used in the visualization
# note: the Get..() functions create a new object, if needed
# ----------------------------------------------------------------
# ----------------------------------------------------------------
# restore active source
SetActiveSource(dpp0016_oceanice_20201130T000000Z_b7nc)
# ----------------------------------------------------------------
if __name__ == '__main__':
# generate extracts
SaveExtracts(ExtractsOutputDirectory='extracts')
\ 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