Refinement level of python derived variable

2 posts / 0 new
Last post
l.n.r.rasmijn_664357
Refinement level of python derived variable

Hi i am trying to edit my data using a python derived variable but i cannot change the level of refinement of my newly created variable.

My variable T is temperature and has 1 level of refinement thus level 0 and 1, which has bounds level 0 (0,60) and level 1 (0,121). But when i create my new variable it only comes in refinement level 0, how do i go to refinement level 1? Thus i want TEMPTEST to have refinement level 1.

Here is an example of my python code and output:

CODE:

TEMPTEST = T
print("vapor bounds=",vapor.BOUNDS)
print("vapor refinement=",vapor.REFINEMENT)
print("vapor timestep=",vapor.TIMESTEP)
print("vapor lod=",vapor.LOD)
print("TEMPTEST shape=",TEMPTEST.shape)

OUTPUT:

Info : DataMgr::GetGrid(0,,0,0,[0,0,0],[60,60,60],0)
Info : DataMgr::GetGrid(0,T,0,0,[0,0,0],[60,60,60],0)
Info : DataMgr::GetGrid() - data in cache 7880000ll

Info : DataMgr::GetGrid(0,T,0,0,[0,0,0],[60,60,60],1)
Info : DataMgr::GetGrid() - data in cache 7880000ll

Info : DataMgr::UnlockGrid()
Info : Python output text:
('vapor bounds=', (0, 0, 0, 60, 60, 60))
('vapor refinement=', 0)
('vapor timestep=', 0)
('vapor lod=', 0)
('TEMPTEST shape=', (61, 61, 61))

pearse

Your derived variable should have the same compression parameters as your input variables.  Can you post the code that is being used to derive TEMPEST?