gnome.outputters.erma_data_package
ERMA Data Package outputter
Attributes
Classes
| Outputs the GNOME results as shapefile, and then wraps in an | 
Module Contents
- gnome.outputters.erma_data_package.erma_data_package_data_dir
- class gnome.outputters.erma_data_package.ERMADataPackageOutput(filename, base_folder_name='', model_folder_name='', default_erma_styling=True, certain_layer_name=None, include_certain_particles=True, uncertain_layer_name=None, include_uncertain_particles=True, certain_boundary_layer_name=None, include_certain_boundary=False, certain_boundary_separate_by_spill=True, certain_boundary_hull_ratio=0.8, certain_boundary_hull_allow_holes=False, certain_boundary_color=None, certain_boundary_size=None, certain_contours_layer_name=None, include_certain_contours=False, certain_contours_hull_ratio=0.8, certain_contours_hull_allow_holes=False, certain_contours_size=None, uncertain_boundary_layer_name=None, include_uncertain_boundary=True, include_certain_in_uncertain_boundary=True, uncertain_boundary_separate_by_spill=True, uncertain_boundary_hull_ratio=0.8, uncertain_boundary_hull_allow_holes=False, uncertain_boundary_color=None, uncertain_boundary_size=None, map_bounds_layer_name=None, include_map_bounds=False, map_bounds_color=None, map_bounds_size=None, spillable_area_layer_name=None, include_spillable_area=False, spillable_area_color=None, spillable_area_size=None, land_polys_layer_name=None, include_land_polys=False, land_polys_color=None, land_polys_size=None, include_spill_location=True, disable_legend_collapse=False, time_step_override=None, time_unit_override=None, timeoffset=None, enable_each_timestep_as_layer=False, surface_conc='kde', **kwargs)
- Bases: - gnome.outputters.outputter.Outputter- Outputs the GNOME results as shapefile, and then wraps in an ERMA data package. - Parameters:
- filename – Full path and filename (with ext) of the desired outout file 
- surface_conc="kde" – method to use to compute surface concentration current options are: ‘kde’ and None 
 
 - time_formatter = '%m/%d/%Y %H:%M'
 - test_var = True
 - filename
 - filenamestem
 - filedir = ''
 - tempdir
 - model_start_time = None
 - model_folder_name = ''
 - folder_name
 - default_erma_styling = True
 - certain_layer_name = None
 - include_certain_particles = True
 - uncertain_layer_name = None
 - include_uncertain_particles = True
 - certain_boundary_layer_name = None
 - include_certain_boundary = False
 - certain_boundary_separate_by_spill = True
 - certain_boundary_hull_ratio = 0.8
 - certain_boundary_hull_allow_holes = False
 - certain_boundary_color = None
 - certain_boundary_size = None
 - certain_contours_layer_name = None
 - include_certain_contours = False
 - certain_contours_hull_ratio = 0.8
 - certain_contours_hull_allow_holes = False
 - certain_contours_size = None
 - uncertain_boundary_layer_name = None
 - include_uncertain_boundary = True
 - include_certain_in_uncertain_boundary = True
 - uncertain_boundary_separate_by_spill = True
 - uncertain_boundary_hull_ratio = 0.8
 - uncertain_boundary_hull_allow_holes = False
 - uncertain_boundary_color = None
 - uncertain_boundary_size = None
 - map_bounds_layer_name = None
 - include_map_bounds = False
 - map_bounds_color = None
 - map_bounds_size = None
 - spillable_area_layer_name = None
 - include_spillable_area = False
 - spillable_area_color = None
 - spillable_area_size = None
 - land_polys_layer_name = None
 - include_land_polys = False
 - land_polys_color = None
 - land_polys_size = None
 - include_spill_location = True
 - disable_legend_collapse = False
 - time_step_override = None
 - time_unit_override = None
 - timeoffset = None
 - enable_each_timestep_as_layer = False
 - shapefile_name_certain
 - shapefile_name_certain_boundary
 - shapefile_name_certain_contours
 - shapefile_name_uncertain
 - shapefile_name_uncertain_boundary
 - shapefile_builder_certain
 - shapefile_builder_certain_boundary
 - shapefile_builder_certain_contours
 - shapefile_builder_uncertain
 - shapefile_builder_uncertain_boundary
 - default_unit_map
 - output_timesteps = []
 - prepare_for_model_run(model_start_time, spills, uncertain=False, **kwargs)
- Setup before we run the model. 
 - write_output(step_num, islast_step=False)
- Dump a timestep’s data into the shapefile 
 - post_model_run()
- The final step to wrap everything up 
 - build_package()
 - make_contour_polygon_package_layer(id, shapefile_filename, layer_title, style_name, style_width, timestamp=None)
 - make_boundary_polygon_package_layer(id, uncertain, shapefile_filename, layer_title, style_name, color, style_width, timestamp=None)
 - make_map_polygon_package_layer(id, map_polygon_name, shapefile_name, layer_title, style_name, color, style_width)
 - make_spill_location_package_layer(id)
 - spills_match_style(spill1, spill2)
 - group_like_spills()
 - generate_cutoff_struct()
 - make_particle_package_layer(id, layer_name, uncertain, shapefile_filename, timestamp=None)
 - rewind()
- reset a few parameter and call base class rewind to reset internal variables. 
 - clean_output_files()
- deletes ouput files that may be around called by prepare_for_model_run here in case it needs to be called from elsewhere