Commit 2909ae44 authored by Florian Ziemen's avatar Florian Ziemen
Browse files

sea ice plots on mistral

parent 38c13bfa
This diff is collapsed.
# state file generated using paraview version 5.8.1-1079-g8d7f8f9372
# 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()
# ----------------------------------------------------------------
# setup views used in the visualization
# ----------------------------------------------------------------
# Create a new 'Render View'
renderView1 = CreateView('RenderView')
renderView1.ViewSize = [1920, 1080]
......@@ -43,25 +48,25 @@ SetActiveView(renderView1)
# ----------------------------------------------------------------
# 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
dpp0016_ocean2D_20201030TZnc = CDIReader(FileNames=['/home/dkrz/k202134/Paraview/DYAMOND_WINTER/dpp0016/oce/dpp0016_ocean2D_20201030T000000Z.nc'])
dpp0016_ocean2D_20201030TZnc.Dimensions = '(clon, clat, lev)'
dpp0016_ocean2D_20201030TZnc.CellArrayStatus = ['hi', 'hs', 'conc']
dpp0016_ocean2D_20201030TZnc.SetProjection = 'Cassini Projection'
dpp0016_ocean2D_20201030TZnc.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])'
netCDFTimeAnnotation1 = NetCDFTimeAnnotation(Input=dpp0016_ocean2D_20201030TZnc)
netCDFTimeAnnotation1.Expression = '"%02i-%02i-%02i" % (Date[0], Date[1], Date[2])'
# 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
dpp0016_ocean3D_u1000m_20201030TZnc = CDIReader(FileNames=['/home/dkrz/k202134/Paraview/DYAMOND_WINTER/dpp0016/oce/dpp0016_ocean3D_u1000m_20201030T000000Z.nc'])
dpp0016_ocean3D_u1000m_20201030TZnc.Dimensions = '(clon, clat, depth)'
dpp0016_ocean3D_u1000m_20201030TZnc.CellArrayStatus = ['to', 'so']
dpp0016_ocean3D_u1000m_20201030TZnc.SetProjection = 'Cassini Projection'
dpp0016_ocean3D_u1000m_20201030TZnc.LayerThickness = 50
# create a new 'Threshold'
threshold1 = Threshold(registrationName='Threshold1', Input=dpp0016_ocean3D_l1_20201130T000000Z_b7nc)
threshold1 = Threshold(Input=dpp0016_ocean3D_u1000m_20201030TZnc)
threshold1.Scalars = ['CELLS', 'so']
threshold1.ThresholdRange = [1.0, 60.0]
......@@ -69,8 +74,8 @@ 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')
# show data from dpp0016_ocean2D_20201030TZnc
dpp0016_ocean2D_20201030TZncDisplay = Show(dpp0016_ocean2D_20201030TZnc, renderView1, 'UnstructuredGridRepresentation')
# get color transfer function/color map for 'conc'
concLUT = GetColorTransferFunction('conc')
......@@ -85,32 +90,28 @@ 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 = ''
dpp0016_ocean2D_20201030TZncDisplay.Representation = 'Surface'
dpp0016_ocean2D_20201030TZncDisplay.ColorArrayName = ['CELLS', 'conc']
dpp0016_ocean2D_20201030TZncDisplay.LookupTable = concLUT
dpp0016_ocean2D_20201030TZncDisplay.OSPRayScaleFunction = 'PiecewiseFunction'
dpp0016_ocean2D_20201030TZncDisplay.SelectOrientationVectors = 'None'
dpp0016_ocean2D_20201030TZncDisplay.ScaleFactor = 60.166174316406256
dpp0016_ocean2D_20201030TZncDisplay.SelectScaleArray = 'None'
dpp0016_ocean2D_20201030TZncDisplay.GlyphType = 'Arrow'
dpp0016_ocean2D_20201030TZncDisplay.GlyphTableIndexArray = 'None'
dpp0016_ocean2D_20201030TZncDisplay.GaussianRadius = 3.008308715820313
dpp0016_ocean2D_20201030TZncDisplay.SetScaleArray = [None, '']
dpp0016_ocean2D_20201030TZncDisplay.ScaleTransferFunction = 'PiecewiseFunction'
dpp0016_ocean2D_20201030TZncDisplay.OpacityArray = [None, '']
dpp0016_ocean2D_20201030TZncDisplay.OpacityTransferFunction = 'PiecewiseFunction'
dpp0016_ocean2D_20201030TZncDisplay.DataAxesGrid = 'GridAxesRepresentation'
dpp0016_ocean2D_20201030TZncDisplay.PolarAxes = 'PolarAxesRepresentation'
dpp0016_ocean2D_20201030TZncDisplay.ScalarOpacityFunction = concPWF
dpp0016_ocean2D_20201030TZncDisplay.ScalarOpacityUnitDistance = 6.795499595074316
dpp0016_ocean2D_20201030TZncDisplay.BumpMapInputDataArray = [None, '']
dpp0016_ocean2D_20201030TZncDisplay.ExtrusionInputDataArray = ['CELLS', 'hi']
dpp0016_ocean2D_20201030TZncDisplay.SelectInputVectors = [None, '']
dpp0016_ocean2D_20201030TZncDisplay.WriteLog = ''
# show data from threshold1
threshold1Display = Show(threshold1, renderView1, 'UnstructuredGridRepresentation')
......@@ -131,9 +132,6 @@ soPWF.ScalarRangeInitialized = 1
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
......@@ -149,7 +147,6 @@ 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, '']
......@@ -159,6 +156,7 @@ threshold1Display.WriteLog = ''
netCDFTimeAnnotation1Display = Show(netCDFTimeAnnotation1, renderView1, 'TextSourceRepresentation')
# trace defaults for the display properties.
netCDFTimeAnnotation1Display.FontSize = 12
netCDFTimeAnnotation1Display.WindowLocation = 'UpperRightCorner'
netCDFTimeAnnotation1Display.Position = [0.01, 0.9196296296296296]
......@@ -182,11 +180,6 @@ threshold1Display.SetScalarBarVisibility(renderView1, True)
# ----------------------------------------------------------------
# ----------------------------------------------------------------
# restore active source
SetActiveSource(dpp0016_oceanice_20201130T000000Z_b7nc)
# ----------------------------------------------------------------
if __name__ == '__main__':
# generate extracts
SaveExtracts(ExtractsOutputDirectory='extracts')
\ No newline at end of file
# finally, restore active source
SetActiveSource(netCDFTimeAnnotation1)
# ----------------------------------------------------------------
\ 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