Bonjour,
Je souhaite lire un fichier de résultats issu d'un logiciel de calcul seulement l'architecture est assez particulière:
Le format est quasi identique au précédent. Ce qui est récurent c'est que les nombres que je souhaite extraire sont toujours après le string list=".<list><x row="631" col="1" list="-94.847176| -93.62446|-92.40155|-91.17844|-89.955124|-88.731606| -87.50789|-86.283966|-85.05985|-83.83553|-82.61101| -81.38629|-80.16137|-78.93625|-77.71092|-76.4854| -75.259674|-74.03375|-72.80763|-71.58131|-70.35478| -69.12806|-67.90113|-66.67401|-65.446686|-64.21916| -62.991436|-61.76351|-60.53539|-59.307064|-58.078545| -56.84982|-55.6209|-54.391777|-53.16246| 607.81995|609.0398|610.2598|611.4801|612.7005| 613.9212|615.142|616.3631|617.58435|618.80585| 620.02747|621.2493|622.47144|623.69366|624.91614"/><y row="631" col="1" list="1.8219452| 1.8576648|1.8948541|1.9335837|1.9739263|2.0159614| 2.0597715|2.1054447|2.1530752|2.2027586|2.2546024| 2.3087146|2.3652134|2.4242232|2.485872|2.5503006| 2.6176577|2.688096|2.7617812|2.8388884|2.9196048| 3.0041225|3.0926516|3.1854088|3.282627|3.384555| 1.6867067|1.7169546|1.74841|1.7811378|1.815192"/></list></data></plot><plot id="25002" label1="hioqshihqsihioqottype="xy" sn="temp" xaxtype="engine-cyclic" xcycle="4-stroke" xlabel="sdvsv="61" ylabel="Temperature [UNIT]" yunit="32" zunit="0"> <data datatype="xy" sdg2" name="cylàiàvq" typesdff="32" zunit="0"> <list><x row="631" col="1" list="-94.847176| -93.62446|-92.40155|-91.17844|-89.955124|-88.731606| -87.50789|-86.283966|-85.05985|-83.83553|-82.61101| <list><x row="631" col="1" list="-94.847176| -93.62446|-92.40155|-91.17844|-89.955124|-88.731606| -87.50789|-86.283966|-85.05985|-83.83553|-82.61101| -81.38629|-80.16137|-78.93625|-77.71092|-76.4854| -75.259674|-74.03375|-72.80763|-71.58131|-70.35478| -69.12806|-67.90113|-66.67401|-65.446686|-64.21916| -62.991436|-61.76351|-60.53539|-59.307064|-58.078545| -56.84982|-55.6209|-54.391777|-53.16246| 607.81995|609.0398|610.2598|611.4801|612.7005| 613.9212|615.142|616.3631|617.58435|618.80585| 620.02747|621.2493|622.47144|623.69366|624.91614"/><y row="631" col="1" list="1.8219452| 1.8576648|1.8948541|1.9335837|1.9739263|2.0159614| 2.0597715|2.1054447|2.1530752|2.2027586|2.2546024| 2.3087146|2.3652134|2.4242232|2.485872|2.5503006| 2.6176577|2.688096|2.7617812|2.8388884|2.9196048| 3.0041225|3.0926516|3.1854088|3.282627|3.384555| 1.6867067|1.7169546|1.74841|1.7811378|1.815192"/></list></data></plot><plot id="25002" label1="hioqshihqsihioqottype="xy" sn="temp" xaxtype="engine-cyclic" xcycle="4-stroke" xlabel="sdvsv="61" ylabel="Temperature [UNIT]" yunit="32" zunit="0"> <data datatype="xy" sdg2" name="cylàiàvq" typesdff="32" zunit="0"> <list><x row="631" col="1" list="-94.847176| -93.62446|-92.40155|-91.17844|-89.955124|-88.731606| -87.50789|-86.283966|-85.05985|-83.83553|-82.61101|
Sinon il y très peu de récurrence. Je ne sais donc pas trop comment m'y prendre.
Merci d'avance de votre aide.
Partager