vsi.vxl package

Submodules

vsi.vxl.create_scene_kml module

@created: Dec, 2014 @author: ydong & srichardson Script to convert a scene.xml file to a scene.kml file, which can be loaded in Google Earth

vsi.vxl.create_scene_kml.main(args=None)[source]

vsi.vxl.create_scene_xml module

vsi.vxl.create_scene_xml.bytes_per_subblock(n_refinement_passes)[source]
vsi.vxl.create_scene_xml.calculate_block_parameters(n_bytes_gpu, n_refinement_passes, gsd, scene_length)[source]
vsi.vxl.create_scene_xml.create_scene_xml(gpu_device, refinements, gsd, lla1=None, lla2=None, lvcs1=None, lvcs2=None, origin=None, output_file=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>, model_dir='.', appearance_models=None, number_bins=1, n_bytes_gpu=None)[source]

Create a scene xml file based off of input parameters

Required arguments: gpu_device - The GPU device used for the block size calculation. The scene will be made to fit specifically on that gpu device refinements - Number of refinement passes. Max should be 3, even if you refine more times than 3 times. gsd - The desired voxel size. This is in meters when using lla notation

Mutually exclusive arguments: lla1,lla2 - The min and max (in order) longitude, latitude, altitude coordinates for bounding box of the scene. Will be expanded to the next sublock lvcs1, lvcs2 - The min and max (in order) x, y, z coordinates for bounding box of the scene. Will be expanded to the next sublock

Optional arguments: origin - Origin of scene. Default: lla1 or (0,0,0) if lvcs1 is used output_file - Output file object. Must support .write. Default: sys.stdout model_dir - The model dir used. is_model_local=”true” is always used Default: “.” appearance_models - Tuple of appearance models to be used. Default: (‘boxm2_mog3_grey’,’boxm2_num_obs’) number_bins - Sets the num_illumination_bins. Default: 1 n_bytes_gpu - Optional override gpu_device memory size. Useful for CPU OpenCL

vsi.vxl.create_scene_xml.gpu_memory(gpu_device)[source]
vsi.vxl.create_scene_xml.main()[source]
vsi.vxl.create_scene_xml.subblocks_per_block(n_refinement_passes, n_bytes_gpu)[source]

vsi.vxl.generate_scene_xml module

Generate a boxm2-style scene.xml file

vsi.vxl.generate_scene_xml.generate_scene_xml(output_file, model_dir_rel, num_blocks, num_subblocks, subblock_size, appearance_models=None, num_bins=1, max_level=3, lvcs_og=None, local_og=None)[source]

write the scene.xml file

Parameters:
  • output_file (str) – The output file

  • model_dir_rel

  • num_blocks (int) –

  • num_subblocks (int) –

  • subblock_size (int) – The subblock size

lvcs_og is a tuple stored as (lon, lat, hae) (hae -> height above ellipsoid)

vsi.vxl.generate_scene_xml.main()[source]

vsi.vxl.plot_scene module

class vsi.vxl.plot_scene.PlotScene[source]

Bases: object

clear_plot()[source]
draw_cameras(cameras, z_min=None, color='k')[source]
draw_cube(x_min, x_max, y_min, y_max, z_min, z_max)[source]
draw_scene_box(scene)[source]
set_limits(xmin, xmax, ymin, ymax, zmin, zmax)[source]
show()[source]
vsi.vxl.plot_scene.main()[source]
vsi.vxl.plot_scene.parse_args()[source]

Module contents