Salome HOME
merge BR_LAND_COVER_MAP
[modules/hydro.git] / src / HYDRO_tests / reference_data / st_dump.py
1 # -*- coding: utf-8 -*-
2
3 ###
4 ### This file is generated automatically by SALOME v7.6.0 with dump python functionality
5 ###
6
7 import sys
8 import salome
9
10 salome.salome_init()
11 theStudy = salome.myStudy
12
13 import salome_notebook
14 notebook = salome_notebook.NoteBook(theStudy)
15 sys.path.insert( 0, r'D:/asl/hydro/studies')
16
17 ###
18 ### HYDRO component
19 ###
20
21 from HYDROPy import *
22 from PyQt4.QtCore import *
23 from PyQt4.QtGui import *
24
25 hydro_doc = HYDROData_Document.Document( theStudy._get_StudyId() );
26
27 hydro_doc.SetLocalCS( 0, 0 )
28
29 ST = hydro_doc.CreateObject( KIND_STRICKLER_TABLE );
30 ST.SetName( "ST" );
31
32 ST.SetAttrName( "CODE_06" );
33
34 ST.Set( u"Zones de champs, prairies, sans cultures", 20 );
35 ST.SetAttrValue( u"Zones de champs, prairies, sans cultures", "511" );
36 ST.SetColor( u"Zones de champs, prairies, sans cultures", QColor( 255, 0, 0 ) );
37
38 ST.Set( u"Zones à faible urbanization (bourg)", 9 );
39 ST.SetAttrValue( u"Zones à faible urbanization (bourg)", "" );
40 ST.SetColor( u"Zones à faible urbanization (bourg)", QColor( 0, 0, 255 ) );
41
42 ST.Set( u"Zones de champs cultivé à végétation haute", 12.5 );
43 ST.SetAttrValue( u"Zones de champs cultivé à végétation haute", "" );
44 ST.SetColor( u"Zones de champs cultivé à végétation haute", QColor( 0, 255, 0 ) );
45
46 ST.Set( u"Canaux artificiels en béton", 65 );
47 ST.SetAttrValue( u"Canaux artificiels en béton", "" );
48 ST.SetColor( u"Canaux artificiels en béton", QColor( 136, 136, 136 ) );
49
50 ST.Set( u"Canaux naturels", 35 );
51 ST.SetAttrValue( u"Canaux naturels", "" );
52 ST.SetColor( u"Canaux naturels", QColor( 255, 0, 255 ) );
53
54 ST.Set( u"Zones à forte urbanization (agglomération)", 9 );
55 ST.SetAttrValue( u"Zones à forte urbanization (agglomération)", "" );
56 ST.SetColor( u"Zones à forte urbanization (agglomération)", QColor( 18, 52, 86 ) );
57
58 ST.Set( u"Zones de champs cultivé à végétation basse", 17.5 );
59 ST.SetAttrValue( u"Zones de champs cultivé à végétation basse", "512" );
60 ST.SetColor( u"Zones de champs cultivé à végétation basse", QColor( 255, 255, 0 ) );
61
62 ST.Set( u"Zones d'arbustes, de sous-bois", 10 );
63 ST.SetAttrValue( u"Zones d'arbustes, de sous-bois", "" );
64 ST.SetColor( u"Zones d'arbustes, de sous-bois", QColor( 0, 255, 255 ) );
65
66
67 ST.Update();
68