Salome HOME
Updating copyright date information
[modules/adao.git] / examples / daSalome / test003_bis_ADAO_user_data_init.py
1 #-*-coding:iso-8859-1-*-
2 #
3 # Copyright (C) 2008-2016 EDF R&D
4 #
5 # This library is free software; you can redistribute it and/or
6 # modify it under the terms of the GNU Lesser General Public
7 # License as published by the Free Software Foundation; either
8 # version 2.1 of the License.
9 #
10 # This library is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13 # Lesser General Public License for more details.
14 #
15 # You should have received a copy of the GNU Lesser General Public
16 # License along with this library; if not, write to the Free Software
17 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
18 #
19 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 #
21 # Author: Jean-Philippe Argaud, jean-philippe.argaud@edf.fr, EDF R&D
22
23 import numpy
24 #
25 # Definition of the Background as a vector
26 # ----------------------------------------
27 Background = [0, 0, 0]
28 #
29 # Definition of the Observation as a vector
30 # -----------------------------------------
31 Observation = "1 1 1"
32 #
33 # Definition of the Background Error covariance as a matrix
34 # ---------------------------------------------------------
35 BackgroundError = numpy.array([[1., 0., 0.], [0., 1., 0.], [0., 0., 1.]])
36 #
37 # Definition of the Observation Error covariance as a matrix
38 # ----------------------------------------------------------
39 ObservationError = numpy.matrix("1 0 0 ; 0 1 0 ; 0 0 1")
40 #
41 # Definition of the Observation Operator as a matrix
42 # --------------------------------------------------
43 ObservationOperator = numpy.identity(3)
44
45 #
46 # Definition of the init_data dictionnary
47 # ---------------------------------------
48 init_data = {}
49 init_data["Background"]          = Background
50 init_data["Observation"]         = Observation
51 init_data["BackgroundError"]     = BackgroundError
52 init_data["ObservationError"]    = ObservationError
53 init_data["ObservationOperator"] = ObservationOperator