-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathclipc_simpleindicator_identify.py
More file actions
executable file
·30 lines (22 loc) · 1.28 KB
/
clipc_simpleindicator_identify.py
File metadata and controls
executable file
·30 lines (22 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
from pywps.Process.Process import WPSProcess
from os.path import expanduser
from mkdir_p import *
from datetime import datetime
home = expanduser("~")
class Process(WPSProcess):
def __init__(self):
# init process
WPSProcess.__init__(self,
identifier="clipc_simpleindicator_identify", #the same as the file name
title="CLIPC ICCLIM simple indicator calculator Identify",
version = "1.0",
storeSupported = "true",
statusSupported = "true",
abstract="Identify function for ICCLIM simple indicator calculator",
grassLocation =False)
self.result = self.addLiteralOutput(identifier = "result",title = "answer");
self.inputorder = self.addLiteralOutput(identifier = "inputorder",title = "inputorder");
def execute(self):
self.result.setValue("{}");
self.inputorder.setValue("wpsnetcdfinput_files,wpsvariable_varName~wpsnetcdfinput_files,sliceMode,wpstimerange_timeRange~wpsnetcdfinput_files,wpsnlevel_NLevel~wpsnetcdfinput_files,indiceName,threshold,wpsnetcdfoutput_outputFileName");
self.status.set("Finished....", 100)