From: Eric Fayolle Date: Mon, 26 Mar 2018 14:12:54 +0000 (+0200) Subject: Première version de modèle Atmo généré X-Git-Tag: V8_5_0rc1~16 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d774cd5ad95193d10e2a6f5137e28abb732f0d97;p=tools%2Feficas.git Première version de modèle Atmo généré --- diff --git a/Atmo/README.txt b/Atmo/README.txt new file mode 100644 index 00000000..d76a5105 --- /dev/null +++ b/Atmo/README.txt @@ -0,0 +1,7 @@ +pyxbgen -u modele_atmo.xsd -m atmo --write-for-customization +/local/PyXB-1.2.6/scripts/pyxbgen -u modele_atmo.xsd -m atmo --write-for-customization +/local/PyXB-1.2.6/scripts/pyxbgen -u model_atmo_ext.xsd -m atmo_ext --write-for-customization + + +/local/PyXB-1.2.6/scripts/pyxbgen -u modele_atmo.xsd -m atmo --write-for-customization --default-namespace-public --archive-to-file=model_atmo.wxsd +/local/PyXB-1.2.6/scripts/pyxbgen -u model_atmo_ext.xsd -m atmo_ext --write-for-customization --archive-path=.:+ diff --git a/Atmo/atmo.png b/Atmo/atmo.png new file mode 100755 index 00000000..2e8d4a5f Binary files /dev/null and b/Atmo/atmo.png differ diff --git a/Atmo/atmo.py b/Atmo/atmo.py new file mode 100644 index 00000000..bd5f0818 --- /dev/null +++ b/Atmo/atmo.py @@ -0,0 +1,2 @@ +# -*- coding: utf-8 -*- +from raw.atmo import * diff --git a/Atmo/cata-v0.xml b/Atmo/cata-v0.xml new file mode 100755 index 00000000..bf1f56f0 --- /dev/null +++ b/Atmo/cata-v0.xml @@ -0,0 +1,63 @@ + + + + + + + + + + I + + + knotsmphm/s + TXM + + + manualtypeAtypeB + TXM + + + + I + + + feetmeters + TXM + + Measurement == 'manual' + + + + + open countryurban or forestopen watermanual + TXM + + + + I + + + cm + incm + TXM + + Ground_roughness == 'manual' + + + + + clearpartly cloudedovercloudedmanual + TXM + + + + 10 + I + + Cover_type == 'manual' + + + + + diff --git a/Atmo/cata-v0_test.xml b/Atmo/cata-v0_test.xml new file mode 100755 index 00000000..6bcffb8b --- /dev/null +++ b/Atmo/cata-v0_test.xml @@ -0,0 +1,60 @@ + + + + + + + + + + I + + + knotsmphm/s + TXM + + + manualtypeAtypeB + TXM + + + + I + + + feetmeters + TXM + + + + + + open countryurban or forestopen watermanual + TXM + + + + I + + + cm + incm + TXM + + + + + + clearpartly cloudedovercloudedmanual + TXM + + + + 10 + I + + + + + + diff --git a/Atmo/ex_jdc.xml b/Atmo/ex_jdc.xml new file mode 100755 index 00000000..e0743ea4 --- /dev/null +++ b/Atmo/ex_jdc.xml @@ -0,0 +1,23 @@ + + + + + 20 + mph + manual + + 10 + meters + + + + manual + + 30 + cm + + + + clear + + diff --git a/Atmo/lire_ex.py b/Atmo/lire_ex.py new file mode 100644 index 00000000..47abf2c6 --- /dev/null +++ b/Atmo/lire_ex.py @@ -0,0 +1,16 @@ +from atmo import * + +myatmo=CreateFromDocument(open('./ex_jdc.xml').read()) +myatmo.toxml() + +print myatmo.toDOM().toprettyxml() +print myatmo.Wind.Wind_Speed + +myWind=myatmo.Wind +myWind.Wind_Speed=50 +myatmo.Wind=myWind +print myatmo.toDOM().toprettyxml() + +file=open('./ex_jdc_bis.xml','w');file.write(myatmo.toxml());file.close() +myatmobis=CreateFromDocument(open('./ex_jdc_bis.xml').read()) +print myatmobis.toDOM().toprettyxml() diff --git a/Atmo/modele_atmo.xsd b/Atmo/modele_atmo.xsd new file mode 100755 index 00000000..1678dc99 --- /dev/null +++ b/Atmo/modele_atmo.xsd @@ -0,0 +1,70 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +