import clr clr.AddReference('DHI.Solutions.GISManager.Tools.Temporal') from DHI.Solutions.GISManager.Tools.Temporal import * def TimeSeriesStepToFeaturesTool(): """ """ gisManager = app.Modules.Get("GIS Manager") inputItem = gisManager.FeatureClassList.Fetch('/weather_forecast') tool = app.Tools.CreateNew('TimeSeries Step To Features Tool') tool.InputItems.Add(inputItem) tool.TSNamePattern = '(.*)_rainfall' tool.TSGroupName = '/Aladin/FullTS' tool.UseAssociation = False tool.TargetFeatureAttributeName = 'ts_values' tool.TsNameFeatureAttributeName = 'pointid' tool.UseLastValue = True tool.AddAssociation = True tool.Execute()