PyleoObj_to_json (pyleoclim.utils.jsonutils.PyleoObj_to_json)

pyleoclim.utils.jsonutils.PyleoObj_to_json(PyleoObj, filename=None, dict_return=False)[source]
Parameters
  • PyleoObj (a Pyleoclim object) – Can be a Series, PSD, Scalogram, MultipleSeries, MultiplePSD object

  • filename (str) – The name of the output JSON file - ignored if dict_return == True

  • dict_return ({True,False}, optional) – Whether the return the dictionary for further use. Default is False.

Returns

obj_dict – If dict_return is True, returns a dictionary like object from the JSON file.

Return type

dict