Access and export of range/setup uncertainty doses

May 18, 2016 at 2:13 AM
Hi there,

How can I access and export range/setup uncertainty dose distributions (not the DVH)? Either manually or via API scripting.

Furthermore, is it possible to automize selection of uncertainty parameters and to script the calculation of range/setup uncertainty dose distributions?

May 18, 2016 at 3:50 PM
Hi Kristin,

Right click on the DVH graph and select "Show plan uncertainty doses in the DVH" and then "Export DVH in tabular format".

In ESAPI version 13.7 the uncertainty data will be available for read access.

May 18, 2016 at 4:24 PM
Hi Seppo,

Thanks for your response!
I just want to make sure that we are talking about the same: I do not want to access the DVH data. I want the 3D dose cube with all its voxel values - and this for all the uncertainty doses. The aim is to sample voxel-wise from the different dose distributions. Thus, (tabulated) DVH export seems to make no sense to me.

So, please let me know how can I read the uncertainty doses in ESAPI. Do you have an example script for me? Sorry, I am a newbie in Eclipse scripting!

Many thanks,
May 24, 2016 at 9:27 PM
Hi Kristin,

sorry, I must have read your post too quickly!
The uncertainty dose voxels are available in 13.7. Something like this:
      PlanSetup ps = context.PlanSetup;
      foreach (PlanUncertainty uncertainty in ps.PlanUncertainties)
        Dose dose = uncertainty.Dose;
        for (int i = 0; i < ps.StructureSet.Image.ZSize; i++)
          var buffer = new int[dose.XSize, dose.YSize];
          dose.GetVoxels(i, buffer);
          DoseValue value = dose.VoxelToDoseValue(buffer[0, 0]);