DSS module

class openalea.dss.ipm_DSS.DSS(name, meta, models, manager)[source]

Bases: object

as_package()[source]
get(model_name='PSILARTEMP')[source]

[Get model]

Parameters
  • dss (str, optional) – [description], by default “no.nibio.vips”

  • model (str, optional) – [description], by default “PSILARTEMP”

property name_
class openalea.dss.ipm_DSS.Model(model, dss, manager)[source]

Bases: object

Model Class derived from Hub. It allows to displays informations and run model and plot output

Parameters

Hub (class) – Class allows to access IPM catalog and get one model

as_node()[source]

Construct inputs of an Openalea node representing the model

df_reader_fieldObservation(path, longitude, latitude, timeZone, sep, dayfirst, pestEPPOCode, cropEPPOCode, convert_name=None)[source]

Reader dataframe for field observations.It must contain: Date of observation: start Date of experiment, End date experiment and date of Observation

Parameters
  • path (str, optional) – field observation datafile path,

  • longitude (float, optional) – longitude in degree of experimental site, by default 11.025635

  • latitude (float, optional) – latitude in degree of experimental site, by default 59.715791

  • timeZone (str, optional) – timezone of experimental site, by default “Europe/Paris”

  • sep (str, optional) – separator of file, by default “;”

  • dayfirst (bool, optional) – if date begin by time True else False, by default True

  • PestEPPOCode (str) – pestEPPOCode of the model selected here SEPTAP

  • cropEPPOCode (str) – cropEPPOCode of the model selected here APUGD

Returns

return a dataframe with attribute information need to compute observation file input

Return type

pandas.Dataframe

informations(display=None)[source]

Return information of the model

Returns

dict containing model information

Return type

dict

property inputs
property meta
property model
property model_id
property outputs
plot(output)[source]

Plot output result

Parameters

output (xarray.Dataset) – Return a plot from output model conform to the description of output information of the model

run(weatherdata=None, fieldObservation=None, view='ds')[source]

Run model

Parameters
  • weatherdata (object, optional) – list of json containing weather data information from ipm weatherdata service, by default None

  • fieldObservation (object, optional) – json object containing field observation, by default None

  • view (str, optional) – parameter controlling the type of output (xarray.Dataset or json), by default “ds”

openalea.dss.ipm_DSS.patch_call(instance, func, doc)[source]