Salome HOME
Regression 2 : ObservationOperator par fonction
[modules/adao.git] / src / daSalome / daYacsSchemaCreator / infos_daComposant.py
1 #-*- coding: utf-8 -*-
2 #  Copyright (C) 2010 EDF R&D
3 #
4 #  This library is free software; you can redistribute it and/or
5 #  modify it under the terms of the GNU General Public
6 #  License as published by the Free Software Foundation; either
7 #  version 2.1 of the License.
8 #
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.
13 #
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
17 #
18 # --
19 # Author : AndrĂ© RIBES (EDF R&D)
20 # --
21
22
23 # -- Infos pour le parser --
24
25 AnalysisData = {}
26 AnalysisFromList = ["String", "Script"]
27
28 # -- Infos from daCore --
29 #AssimData = ["Background", "BackgroundError",
30 #             "Observation", "ObservationError", "ObservationOperator", "ObservationOperatorAppliedToX",
31 #             "EvolutionModel", "EvolutionError", "AlgorithmParameters"]
32
33 AssimData = ["Background", "BackgroundError",
34              "Observation", "ObservationError", "ObservationOperator",
35              "EvolutionModel", "EvolutionError", "AlgorithmParameters"]
36
37
38 AssimType = {}
39 AssimType["Background"] = ["Vector"]
40 AssimType["BackgroundError"] = ["Matrix"]
41 AssimType["Observation"] = ["Vector"]
42 AssimType["ObservationError"] = ["Matrix"]
43 AssimType["ObservationOperator"] = ["Matrix", "Function"]
44 AssimType["AlgorithmParameters"] = ["Dict"]
45 #AssimType["ObservationOperatorAppliedToX"] = ["List"]
46
47 FromNumpyList = {}
48 FromNumpyList["Vector"] = ["String", "Script"]
49 FromNumpyList["Matrix"] = ["String", "Script"]
50 FromNumpyList["Function"] = ["FunctionDict"]
51 FromNumpyList["Dict"] = ["Script"]
52
53 # -- Infos from daAlgorithms --
54 AssimAlgos = ["Blue", "EnsembleBlue", "Kalman", "LinearLeastSquares", "3DVAR"]
55
56 AlgoDataRequirements = {}
57 AlgoDataRequirements["Blue"] = ["Background", "BackgroundError",
58                                 "Observation", "ObservationOperator", "ObservationError"]
59
60 AlgoDataRequirements["3DVAR"] = ["Background", "BackgroundError",
61                                  "Observation", "ObservationOperator", "ObservationError"]
62 AlgoType = {}
63 AlgoType["Blue"] = "Optim"
64 AlgoType["3DVAR"] = "Optim"
65 AlgoType["EnsembleBlue"] = "Optim"
66 AlgoType["Kalman"] = "Optim"
67 AlgoType["LinearLeastSquares"] = "Optim"
68 #AlgoType["Blue"] = "Direct"
69
70 # Basic data types
71 BasicDataInputs = ["String", "Script", "FunctionDict"]
72
73 # Data input dict
74 DataTypeDict = {}
75 DataTypeDict["Vector"]   = ["String", "Script"]
76 DataTypeDict["Matrix"]   = ["String", "Script"]
77 DataTypeDict["Function"] = ["FunctionDict"]
78 DataTypeDict["Dict"]     = ["Script"]
79
80 # Assimilation data input
81 AssimDataDict = {}
82 AssimDataDict["Background"] = ["Vector"]
83 AssimDataDict["BackgroundError"] = ["Matrix"]
84 AssimDataDict["Observation"] = ["Vector"]
85 AssimDataDict["ObservationError"] = ["Matrix"]
86 AssimDataDict["ObservationOperator"] = ["Matrix", "Function"]
87 AssimDataDict["AlgorithmParameters"] = ["Dict"]
88
89 # Assimilation optional nodes
90 OptDict = {}
91 OptDict["Analysis"]   = ["String", "Script"]