2 # Copyright (C) 2010-2011 EDF R&D
4 # This library is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU Lesser General Public
6 # License as published by the Free Software Foundation; either
7 # version 2.1 of the License.
9 # This library is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 # Lesser General Public License for more details.
14 # You should have received a copy of the GNU Lesser General Public
15 # License along with this library; if not, write to the Free Software
16 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 # Author: Andre Ribes, andre.ribes@edf.fr, EDF R&D
23 # -- Infos pour le parser --
26 AnalysisFromList = ["String", "Script"]
28 # -- Infos from daCore --
29 AssimData = ["Background", "BackgroundError",
30 "Observation", "ObservationError",
31 "EvolutionModel", "EvolutionError",
32 "ObservationOperator",
33 "AlgorithmParameters"]
36 AssimType["Background"] = ["Vector"]
37 AssimType["BackgroundError"] = ["Matrix"]
38 AssimType["Observation"] = ["Vector"]
39 AssimType["ObservationError"] = ["Matrix"]
40 AssimType["ObservationOperator"] = ["Matrix", "Function"]
41 AssimType["AlgorithmParameters"] = ["Dict"]
42 AssimType["UserDataInit"] = ["Dict"]
45 FromNumpyList["Vector"] = ["String", "Script"]
46 FromNumpyList["Matrix"] = ["String", "Script"]
47 FromNumpyList["Function"] = ["FunctionDict"]
48 FromNumpyList["Dict"] = ["Script"]
50 # -- Infos from daAlgorithms --
57 "NonLinearLeastSquares",
60 AlgoDataRequirements = {}
61 AlgoDataRequirements["3DVAR"] = [
62 "Background", "BackgroundError",
63 "Observation", "ObservationError",
64 "ObservationOperator",
66 AlgoDataRequirements["Blue"] = [
67 "Background", "BackgroundError",
68 "Observation", "ObservationError",
69 "ObservationOperator",
71 AlgoDataRequirements["EnsembleBlue"] = [
72 "Background", "BackgroundError",
73 "Observation", "ObservationError",
74 "ObservationOperator",
76 AlgoDataRequirements["KalmanFilter"] = [
77 "Background", "BackgroundError",
78 "Observation", "ObservationError",
79 "EvolutionModel", "EvolutionError",
80 "ObservationOperator",
82 AlgoDataRequirements["LinearLeastSquares"] = [
83 "Observation", "ObservationError",
84 "ObservationOperator",
86 AlgoDataRequirements["NonLinearLeastSquares"] = [
87 "Observation", "ObservationError",
88 "ObservationOperator",
92 AlgoType["3DVAR"] = "Optim"
93 AlgoType["Blue"] = "Optim"
94 AlgoType["EnsembleBlue"] = "Optim"
95 AlgoType["KalmanFilter"] = "Optim"
96 AlgoType["LinearLeastSquares"] = "Optim"
97 AlgoType["NonLinearLeastSquares"] = "Optim"
98 #AlgoType["Blue"] = "Direct"
101 # Variables qui sont partages avec le generateur de
105 BasicDataInputs = ["String", "Script", "FunctionDict"]
109 DataTypeDict["Vector"] = ["String", "Script"]
110 DataTypeDict["Matrix"] = ["String", "Script"]
111 DataTypeDict["Function"] = ["FunctionDict"]
112 DataTypeDict["Dict"] = ["String", "Script"]
114 DataTypeDefaultDict = {}
115 DataTypeDefaultDict["Vector"] = "Script"
116 DataTypeDefaultDict["Matrix"] = "Script"
117 DataTypeDefaultDict["Function"] = "FunctionDict"
118 DataTypeDefaultDict["Dict"] = "Script"
120 # Assimilation data input
122 AssimDataDict["Background"] = ["Vector"]
123 AssimDataDict["BackgroundError"] = ["Matrix"]
124 AssimDataDict["Observation"] = ["Vector"]
125 AssimDataDict["ObservationError"] = ["Matrix"]
126 AssimDataDict["ObservationOperator"] = ["Matrix", "Function"]
127 AssimDataDict["AlgorithmParameters"] = ["Dict"]
128 AssimDataDict["UserDataInit"] = ["Dict"]
130 AssimDataDefaultDict = {}
131 AssimDataDefaultDict["Background"] = "Vector"
132 AssimDataDefaultDict["BackgroundError"] = "Matrix"
133 AssimDataDefaultDict["Observation"] = "Vector"
134 AssimDataDefaultDict["ObservationError"] = "Matrix"
135 AssimDataDefaultDict["ObservationOperator"] = "Function"
136 AssimDataDefaultDict["AlgorithmParameters"] = "Dict"
137 AssimDataDefaultDict["UserDataInit"] = "Dict"
139 # Assimilation optional nodes
141 OptDict["UserPostAnalysis"] = ["String", "Script"]
143 OptDefaultDict["UserPostAnalysis"] = "Script"
156 "GradientOfCostFunctionJ",
157 "GradientOfCostFunctionJb",
158 "GradientOfCostFunctionJo",
161 "APosterioriCovariance",