icecube.steamshovel.util.projection module¶
- class icecube.steamshovel.util.projection.ProjectionRenderer(gl, dpi, scale, gamma)¶
Bases:
object
- render(perspective, pivot, loc, up, res, filename)¶
- icecube.steamshovel.util.projection.colorbar_size(width, scale)¶
- icecube.steamshovel.util.projection.cross(v1, v2)¶
- icecube.steamshovel.util.projection.get_projection(filename, frame=None, include_xyz=True, include_colorscale=True, width=1000, height=1000, dpi=0, scale=1.0, gamma=1.0, manual_view=False)¶
Get the 2d projection of the event, for use in publications. The final image has a (more or less) fixed aspect ratio, so width and height only define the maximum dimensions.
- Parameters:
filename – filename to write to
frame – I3Frame, defaults to None in which case the currently selected frame is used
width – width of the final image’s bounding box
height – width of the final image’s bounding box
dpi – dpi of image
scale – scale of image
gamma – gamma of image
- icecube.steamshovel.util.projection.get_view(gl, frame, myview=False)¶
- icecube.steamshovel.util.projection.make_colorbar(filename, timerange, width, scale)¶
- icecube.steamshovel.util.projection.screenshot(filename)¶
- icecube.steamshovel.util.projection.stitch(main, thumbs, colorbar, filename, width, height)¶