:py:mod:`gnome.outputters.json` =============================== .. py:module:: gnome.outputters.json .. autoapi-nested-parse:: JSON outputter Does not contain a schema for persistence yet Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: gnome.outputters.json.SpillJsonOutput gnome.outputters.json.CurrentJsonOutput gnome.outputters.json.IceJsonOutput .. py:class:: SpillJsonOutput(_additional_data=None, **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":[] } "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:: _schema .. 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":