gnome.outputters.json ===================== .. py:module:: gnome.outputters.json .. autoapi-nested-parse:: JSON outputter Does not contain a schema for persistence yet Classes ------- .. autoapisummary:: gnome.outputters.json.SpillJsonOutput gnome.outputters.json.CurrentJsonOutput gnome.outputters.json.IceJsonOutput Module Contents --------------- .. py:class:: SpillJsonOutput(_additional_data=None, include_uncertain_bounds=False, **kwargs) Bases: :py:obj:`gnome.outputters.outputter.Outputter` Class that outputs data on GNOME particles. Following is the format for a particle - the data in <> are the results for each element. :: { "certain": { "length": "longitude": [] "latitude": [] "status_code": [] "mass": [] "spill_num":[] } "uncertain":{ "length": "longitude": [] "latitude": [] "status_code": [] "mass": [] "spill_num":[] } "uncertain_bounds":{ "length": "bounds": [] "spill_num":[] } "step_num": "timestamp": } :param list current_movers: A list or collection of current grid mover objects. use super to pass optional kwargs to base class __init__ method .. py:attribute:: include_uncertain_bounds :value: False .. py:attribute:: default_unit_map .. py:method:: prepare_for_model_run(model_start_time, spills, uncertain=False, **kwargs) Setup before we run the model. .. py:method:: generate_cutoff_struct() .. py:method:: write_output(step_num, islast_step=False) dump data in geojson format .. py:class:: CurrentJsonOutput(current_movers, **kwargs) Bases: :py:obj:`gnome.outputters.outputter.Outputter` Class that outputs GNOME current velocity results for each current mover in a geojson format. The output is a collection of Features. Each Feature contains a Point object with associated properties. Following is the output format - the data in <> are the results for each element. :: { "time_stamp":