Commit 443b3a21 authored by Tomas Pettersson's avatar Tomas Pettersson 🏸

writes output continuously

parent 2fdf5501
2017-12-06 15:00 18.3291 58.5122 0.0000
2017-12-07 14:00 19.5647 58.5044 0.0000
2017-12-07 14:15 19.5674 58.5027 0.0000
2017-12-07 14:30 19.5694 58.5005 0.0000
2017-12-07 14:45 19.5722 58.4988 0.0000
2017-12-07 15:00 19.5756 58.4973 0.0000
2017-12-07 15:15 19.5790 58.4958 0.0000
2017-12-07 15:30 19.5832 58.4951 0.0000
2017-12-07 15:45 19.5872 58.4944 0.0000
2017-12-07 16:00 19.5914 58.4941 0.0000
2017-12-07 16:15 19.5969 58.4941 0.0000
2017-12-07 16:30 19.6017 58.4941 0.0000
2017-12-07 16:45 19.6058 58.4944 0.0000
2017-12-07 17:00 19.6092 58.4959 0.0000
2017-12-07 17:15 19.6120 58.4976 0.0000
2017-12-07 17:30 19.6140 58.4998 0.0000
2017-12-07 17:45 19.6140 58.5023 0.0000
2017-12-07 18:00 19.6140 58.5048 0.0000
2017-12-07 18:15 19.6133 58.5070 0.0000
2017-12-07 18:30 19.6127 58.5091 0.0000
2017-12-07 18:45 19.6127 58.5116 0.0000
2017-12-07 19:00 19.6127 58.5141 0.0000
2017-12-07 19:15 19.6127 58.5170 0.0000
2017-12-07 19:30 19.6127 58.5195 0.0000
2017-12-07 19:45 19.6106 58.5217 0.0000
2017-12-07 20:00 19.6072 58.5231 0.0000
2017-12-07 20:15 19.6030 58.5245 0.0000
2017-12-07 20:30 19.5989 58.5252 0.0000
2017-12-07 20:45 19.5948 58.5256 0.0000
2017-12-07 21:00 19.5907 58.5263 0.0000
2017-12-07 21:15 19.5866 58.5271 0.0000
2017-12-07 21:30 19.5818 58.5274 0.0000
2017-12-07 21:45 19.5769 58.5281 0.0000
2017-12-07 22:00 19.5721 58.5281 0.0000
2017-12-07 22:15 19.5673 58.5285 0.0000
2017-12-07 22:30 19.5632 58.5289 0.0000
2017-12-07 22:45 19.5563 58.5288 0.0000
2017-12-07 23:00 19.5515 58.5288 0.0000
2017-12-07 23:15 19.5460 58.5288 0.0000
2017-12-07 23:30 19.5413 58.5288 0.0000
2017-12-07 23:45 19.5364 58.5288 0.0000
2017-12-08 00:00 19.5316 58.5288 0.0000
2017-12-08 00:15 19.5268 58.5288 0.0000
2017-12-08 00:30 19.5213 58.5288 0.0000
2017-12-08 00:45 19.5165 58.5288 0.0000
2017-12-08 01:00 19.5117 58.5289 0.0000
2017-12-08 01:15 19.5069 58.5288 0.0000
2017-12-08 01:30 19.5021 58.5288 0.0000
2017-12-08 01:45 19.4973 58.5288 0.0000
2017-12-08 02:00 19.4925 58.5281 0.0000
2017-12-08 02:15 19.4884 58.5278 0.0000
2017-12-08 02:30 19.4843 58.5270 0.0000
2017-12-08 02:45 19.4794 58.5267 0.0000
2017-12-08 03:00 19.4746 58.5267 0.0000
2017-12-08 03:15 19.4698 58.5267 0.0000
2017-12-08 03:30 19.4650 58.5267 0.0000
2017-12-08 03:45 19.4602 58.5267 0.0000
2017-12-08 04:00 19.4561 58.5263 0.0000
2017-12-08 04:15 19.4520 58.5260 0.0000
2017-12-08 04:30 19.4479 58.5256 0.0000
2017-12-08 04:45 19.4437 58.5245 0.0000
2017-12-08 05:00 19.4396 58.5235 0.0000
2017-12-08 05:15 19.4362 58.5217 0.0000
2017-12-08 05:30 19.4348 58.5195 0.0000
2017-12-08 05:45 19.4334 58.5174 0.0000
2017-12-08 06:00 19.4328 58.5152 0.0000
2017-12-08 06:15 19.4321 58.5127 0.0000
2017-12-08 06:30 19.4321 58.5102 0.0000
2017-12-08 06:45 19.4321 58.5077 0.0000
2017-12-08 07:00 19.4334 58.5055 0.0000
2017-12-08 07:15 19.4334 58.5030 0.0000
2017-12-08 07:30 19.4328 58.5001 0.0000
2017-12-08 07:45 19.4307 58.4980 0.0000
2017-12-08 08:00 19.4279 58.4962 0.0000
2017-12-08 08:15 19.4259 58.4941 0.0000
2017-12-08 08:30 19.4245 58.4919 0.0000
2017-12-08 08:45 19.4231 58.4897 0.0000
2017-12-08 09:00 19.4218 58.4876 0.0000
2017-12-08 09:15 19.4218 58.4851 0.0000
2017-12-08 09:30 19.4218 58.4826 0.0000
2017-12-08 09:45 19.4231 58.4804 0.0000
2017-12-08 10:00 19.4245 58.4783 0.0000
2017-12-08 10:15 19.4259 58.4761 0.0000
2017-12-08 10:30 19.4279 58.4740 0.0000
2017-12-08 10:45 19.4307 58.4722 0.0000
2017-12-08 11:00 19.4328 58.4700 0.0000
2017-12-08 11:15 19.4334 58.4678 0.0000
2017-12-08 11:30 19.4334 58.4650 0.0000
2017-12-08 11:45 19.4341 58.4628 0.0000
2017-12-08 12:00 19.4355 58.4607 0.0000
2017-12-08 12:15 19.4369 58.4582 0.0000
2017-12-08 12:30 19.4389 58.4560 0.0000
2017-12-08 12:45 19.4410 58.4538 0.0000
2017-12-08 13:00 19.4424 58.4513 0.0000
2017-12-08 13:15 19.4437 58.4488 0.0000
2017-12-08 13:30 19.4451 58.4467 0.0000
2017-12-08 13:45 19.4451 58.4441 0.0000
2017-12-08 14:00 19.4451 58.4409 0.0000
2017-12-08 14:15 19.4458 58.4387 0.0000
2017-12-08 14:30 19.4458 58.4362 0.0000
2017-12-08 14:45 19.4458 58.4334 0.0000
2017-12-08 15:00 19.4444 58.4305 0.0000
2017-12-08 15:15 19.4431 58.4280 0.0000
......@@ -79,7 +79,6 @@ def run():
multipointoutlet = m.createOutlet(outletgeom)
if ('auxiliary' in inputfeature['properties'] and inputfeature['properties']['auxiliary'] == 'exercise'):
exercisefeature = inputfeature
outputfeaturecollection = m.createOutput(outletproperties['simulation']['startDate'],multipointoutlet,exercisefeature, strtree)
outputfeaturecollection['properties'] = {}
outputfeaturecollection['properties']['uuid'] = os.getcwd().split(os.sep)[-1]
......
......@@ -19,6 +19,9 @@
import math
import json
import random
from output import Output
from output import Particletrack
from output import Cloudtrack
from shapely import geometry
......@@ -220,4 +223,9 @@ class Model(object):
category = [2] * len(mp.geoms)
properties = self.createProperties((i+2), time[i], mp.centroid, level, category)
features.append(self.createFeature(mp, properties))
if (i % 10 == 0):
Cloudtrack.write(featurecollection)
Particletrack.write(featurecollection)
Output.write(featurecollection)
return featurecollection
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
2 2017-12-06 15:15 47 20.5667 58.8137 0.0000
20.5774 58.8264 0.0 T T F 2 0.000 0.000 0.000
20.5645 58.8241 0.0 T T F 2 0.000 0.000 0.000
20.5624 58.8164 0.0 T T F 2 0.000 0.000 0.000
20.5530 58.8044 0.0 T T F 2 0.000 0.000 0.000
20.5643 58.7971 0.0 T T F 2 0.000 0.000 0.000
20.5764 58.8027 0.0 T T F 2 0.000 0.000 0.000
20.5503 58.8163 0.0 T T F 2 0.000 0.000 0.000
20.5757 58.8230 0.0 T T F 2 0.000 0.000 0.000
20.5724 58.8328 0.0 T T F 2 0.000 0.000 0.000
20.5656 58.8222 0.0 T T F 2 0.000 0.000 0.000
20.5619 58.8228 0.0 T T F 2 0.000 0.000 0.000
20.5608 58.8181 0.0 T T F 2 0.000 0.000 0.000
20.5549 58.8139 0.0 T T F 2 0.000 0.000 0.000
20.5592 58.8082 0.0 T T F 2 0.000 0.000 0.000
20.5611 58.8027 0.0 T T F 2 0.000 0.000 0.000
20.5656 58.8030 0.0 T T F 2 0.000 0.000 0.000
20.5708 58.7994 0.0 T T F 2 0.000 0.000 0.000
20.5797 58.8007 0.0 T T F 2 0.000 0.000 0.000
20.5762 58.8139 0.0 T T F 2 0.000 0.000 0.000
20.5805 58.8270 0.0 T T F 2 0.000 0.000 0.000
20.5702 58.8212 0.0 T T F 2 0.000 0.000 0.000
20.5696 58.8291 0.0 T T F 2 0.000 0.000 0.000
20.5658 58.8332 0.0 T T F 2 0.000 0.000 0.000
20.5640 58.8214 0.0 T T F 2 0.000 0.000 0.000
20.5596 58.8243 0.0 T T F 2 0.000 0.000 0.000
20.5595 58.8195 0.0 T T F 2 0.000 0.000 0.000
20.5549 58.8170 0.0 T T F 2 0.000 0.000 0.000
20.5547 58.8104 0.0 T T F 2 0.000 0.000 0.000
20.5613 58.8097 0.0 T T F 2 0.000 0.000 0.000
20.5581 58.8008 0.0 T T F 2 0.000 0.000 0.000
20.5638 58.8052 0.0 T T F 2 0.000 0.000 0.000
20.5659 58.8008 0.0 T T F 2 0.000 0.000 0.000
20.5690 58.8006 0.0 T T F 2 0.000 0.000 0.000
20.5706 58.8055 0.0 T T F 2 0.000 0.000 0.000
20.5769 58.8036 0.0 T T F 2 0.000 0.000 0.000
20.5853 58.8079 0.0 T T F 2 0.000 0.000 0.000
20.5790 58.8179 0.0 T T F 2 0.000 0.000 0.000
20.5529 58.8198 0.0 T T F 2 0.000 0.000 0.000
20.5565 58.8136 0.0 T T F 2 0.000 0.000 0.000
20.5585 58.8103 0.0 T T F 2 0.000 0.000 0.000
20.5812 58.8066 0.0 T T F 2 0.000 0.000 0.000
20.5739 58.8138 0.0 T T F 2 0.000 0.000 0.000
20.5789 58.8197 0.0 T T F 2 0.000 0.000 0.000
20.5490 58.8168 0.0 T T F 2 0.000 0.000 0.000
20.5590 58.8123 0.0 T T F 2 0.000 0.000 0.000
20.5828 58.8107 0.0 T T F 2 0.000 0.000 0.000
20.5797 58.8163 0.0 T T F 2 0.000 0.000 0.000
3 2017-12-06 15:30 47 20.7418 58.7000 0.0000
20.7532 58.7095 0.0 T T F 2 0.000 0.000 0.000
20.7427 58.7208 0.0 T T F 2 0.000 0.000 0.000
20.7290 58.7122 0.0 T T F 2 0.000 0.000 0.000
20.7338 58.6928 0.0 T T F 2 0.000 0.000 0.000
20.7426 58.6801 0.0 T T F 2 0.000 0.000 0.000
20.7523 58.6917 0.0 T T F 2 0.000 0.000 0.000
20.7504 58.7074 0.0 T T F 2 0.000 0.000 0.000
20.7510 58.7085 0.0 T T F 2 0.000 0.000 0.000
20.7468 58.7112 0.0 T T F 2 0.000 0.000 0.000
20.7422 58.7194 0.0 T T F 2 0.000 0.000 0.000
20.7368 58.7132 0.0 T T F 2 0.000 0.000 0.000
20.7314 58.7095 0.0 T T F 2 0.000 0.000 0.000
20.7229 58.7000 0.0 T T F 2 0.000 0.000 0.000
20.7262 58.6862 0.0 T T F 2 0.000 0.000 0.000
20.7373 58.6871 0.0 T T F 2 0.000 0.000 0.000
20.7423 58.6848 0.0 T T F 2 0.000 0.000 0.000
20.7473 58.6866 0.0 T T F 2 0.000 0.000 0.000
20.7494 58.6937 0.0 T T F 2 0.000 0.000 0.000
20.7566 58.7000 0.0 T T F 2 0.000 0.000 0.000
20.7513 58.7097 0.0 T T F 2 0.000 0.000 0.000
20.7501 58.7144 0.0 T T F 2 0.000 0.000 0.000
20.7436 58.7063 0.0 T T F 2 0.000 0.000 0.000
20.7422 58.7169 0.0 T T F 2 0.000 0.000 0.000
20.7404 58.7066 0.0 T T F 2 0.000 0.000 0.000
20.7399 58.7035 0.0 T T F 2 0.000 0.000 0.000
20.7321 58.7086 0.0 T T F 2 0.000 0.000 0.000
20.7205 58.7065 0.0 T T F 2 0.000 0.000 0.000
20.7296 58.6942 0.0 T T F 2 0.000 0.000 0.000
20.7326 58.6916 0.0 T T F 2 0.000 0.000 0.000
20.7363 58.6898 0.0 T T F 2 0.000 0.000 0.000
20.7382 58.6834 0.0 T T F 2 0.000 0.000 0.000
20.7417 58.6911 0.0 T T F 2 0.000 0.000 0.000
20.7457 58.6859 0.0 T T F 2 0.000 0.000 0.000
20.7505 58.6859 0.0 T T F 2 0.000 0.000 0.000
20.7500 58.6929 0.0 T T F 2 0.000 0.000 0.000
20.7545 58.6957 0.0 T T F 2 0.000 0.000 0.000
20.7529 58.7034 0.0 T T F 2 0.000 0.000 0.000
20.7269 58.7068 0.0 T T F 2 0.000 0.000 0.000
20.7263 58.6997 0.0 T T F 2 0.000 0.000 0.000
20.7258 58.6926 0.0 T T F 2 0.000 0.000 0.000
20.7576 58.6927 0.0 T T F 2 0.000 0.000 0.000
20.7602 58.6998 0.0 T T F 2 0.000 0.000 0.000
20.7579 58.7072 0.0 T T F 2 0.000 0.000 0.000
20.7293 58.7025 0.0 T T F 2 0.000 0.000 0.000
20.7288 58.6973 0.0 T T F 2 0.000 0.000 0.000
20.7526 58.6978 0.0 T T F 2 0.000 0.000 0.000
20.7543 58.7020 0.0 T T F 2 0.000 0.000 0.000
4 2017-12-06 15:45 47 20.9617 58.6082 0.0000
20.9735 58.6180 0.0 T T F 2 0.000 0.000 0.000
20.9627 58.6297 0.0 T T F 2 0.000 0.000 0.000
20.9476 58.6220 0.0 T T F 2 0.000 0.000 0.000
20.9478 58.5974 0.0 T T F 2 0.000 0.000 0.000
20.9627 58.5877 0.0 T T F 2 0.000 0.000 0.000
20.9734 58.5991 0.0 T T F 2 0.000 0.000 0.000
20.9736 58.6196 0.0 T T F 2 0.000 0.000 0.000
20.9716 58.6177 0.0 T T F 2 0.000 0.000 0.000
20.9669 58.6199 0.0 T T F 2 0.000 0.000 0.000
20.9621 58.6295 0.0 T T F 2 0.000 0.000 0.000
20.9568 58.6217 0.0 T T F 2 0.000 0.000 0.000
20.9509 58.6184 0.0 T T F 2 0.000 0.000 0.000
20.9420 58.6085 0.0 T T F 2 0.000 0.000 0.000
20.9440 58.5925 0.0 T T F 2 0.000 0.000 0.000
20.9568 58.5945 0.0 T T F 2 0.000 0.000 0.000
20.9624 58.5928 0.0 T T F 2 0.000 0.000 0.000
20.9674 58.5949 0.0 T T F 2 0.000 0.000 0.000
20.9706 58.6006 0.0 T T F 2 0.000 0.000 0.000
20.9780 58.6084 0.0 T T F 2 0.000 0.000 0.000
20.9715 58.6183 0.0 T T F 2 0.000 0.000 0.000
20.9705 58.6236 0.0 T T F 2 0.000 0.000 0.000
20.9637 58.6147 0.0 T T F 2 0.000 0.000 0.000
20.9622 58.6258 0.0 T T F 2 0.000 0.000 0.000
20.9591 58.6173 0.0 T T F 2 0.000 0.000 0.000
20.9600 58.6119 0.0 T T F 2 0.000 0.000 0.000
20.9517 58.6174 0.0 T T F 2 0.000 0.000 0.000
20.9404 58.6149 0.0 T T F 2 0.000 0.000 0.000
20.9491 58.6025 0.0 T T F 2 0.000 0.000 0.000
20.9511 58.5991 0.0 T T F 2 0.000 0.000 0.000
20.9517 58.5914 0.0 T T F 2 0.000 0.000 0.000
20.9581 58.5910 0.0 T T F 2 0.000 0.000 0.000
20.9613 58.5978 0.0 T T F 2 0.000 0.000 0.000
20.9658 58.5938 0.0 T T F 2 0.000 0.000 0.000
20.9709 58.5937 0.0 T T F 2 0.000 0.000 0.000
20.9730 58.5977 0.0 T T F 2 0.000 0.000 0.000
20.9767 58.6032 0.0 T T F 2 0.000 0.000 0.000
20.9735 58.6124 0.0 T T F 2 0.000 0.000 0.000
20.9418 58.6178 0.0 T T F 2 0.000 0.000 0.000
20.9460 58.6080 0.0 T T F 2 0.000 0.000 0.000
20.9455 58.6008 0.0 T T F 2 0.000 0.000 0.000
20.9785 58.6006 0.0 T T F 2 0.000 0.000 0.000
20.9814 58.6081 0.0 T T F 2 0.000 0.000 0.000
20.9783 58.6158 0.0 T T F 2 0.000 0.000 0.000
20.9483 58.6113 0.0 T T F 2 0.000 0.000 0.000
20.9488 58.6057 0.0 T T F 2 0.000 0.000 0.000
20.9757 58.6058 0.0 T T F 2 0.000 0.000 0.000
20.9746 58.6105 0.0 T T F 2 0.000 0.000 0.000
5 2017-12-06 16:00 47 21.1816 58.5166 0.0000
21.1967 58.5289 0.0 T T F 2 0.000 0.000 0.000
21.1827 58.5392 0.0 T T F 2 0.000 0.000 0.000
21.1670 58.5313 0.0 T T F 2 0.000 0.000 0.000
21.1677 58.5058 0.0 T T F 2 0.000 0.000 0.000
21.1827 58.4946 0.0 T T F 2 0.000 0.000 0.000
21.1948 58.5064 0.0 T T F 2 0.000 0.000 0.000
21.1935 58.5281 0.0 T T F 2 0.000 0.000 0.000
21.1917 58.5263 0.0 T T F 2 0.000 0.000 0.000
21.1869 58.5288 0.0 T T F 2 0.000 0.000 0.000
21.1819 58.5398 0.0 T T F 2 0.000 0.000 0.000
21.1767 58.5305 0.0 T T F 2 0.000 0.000 0.000
21.1689 58.5290 0.0 T T F 2 0.000 0.000 0.000
21.1611 58.5169 0.0 T T F 2 0.000 0.000 0.000
21.1634 58.5005 0.0 T T F 2 0.000 0.000 0.000
21.1751 58.4992 0.0 T T F 2 0.000 0.000 0.000
21.1824 58.5010 0.0 T T F 2 0.000 0.000 0.000
21.1875 58.5032 0.0 T T F 2 0.000 0.000 0.000
21.1918 58.5078 0.0 T T F 2 0.000 0.000 0.000
21.1981 58.5169 0.0 T T F 2 0.000 0.000 0.000
21.1916 58.5270 0.0 T T F 2 0.000 0.000 0.000
21.1906 58.5324 0.0 T T F 2 0.000 0.000 0.000
21.1841 58.5266 0.0 T T F 2 0.000 0.000 0.000
21.1821 58.5344 0.0 T T F 2 0.000 0.000 0.000
21.1777 58.5290 0.0 T T F 2 0.000 0.000 0.000
21.1798 58.5202 0.0 T T F 2 0.000 0.000 0.000
21.1714 58.5262 0.0 T T F 2 0.000 0.000 0.000
21.1599 58.5235 0.0 T T F 2 0.000 0.000 0.000
21.1690 58.5110 0.0 T T F 2 0.000 0.000 0.000
21.1707 58.5072 0.0 T T F 2 0.000 0.000 0.000
21.1715 58.4997 0.0 T T F 2 0.000 0.000 0.000
21.1773 58.4962 0.0 T T F 2 0.000 0.000 0.000
21.1807 58.5015 0.0 T T F 2 0.000 0.000 0.000
21.1859 58.5019 0.0 T T F 2 0.000 0.000 0.000
21.1911 58.5017 0.0 T T F 2 0.000 0.000 0.000
21.1930 58.5062 0.0 T T F 2 0.000 0.000 0.000
21.1985 58.5112 0.0 T T F 2 0.000 0.000 0.000
21.1935 58.5209 0.0 T T F 2 0.000 0.000 0.000
21.1603 58.5271 0.0 T T F 2 0.000 0.000 0.000
21.1658 58.5165 0.0 T T F 2 0.000 0.000 0.000
21.1654 58.5092 0.0 T T F 2 0.000 0.000 0.000
21.2010 58.5079 0.0 T T F 2 0.000 0.000 0.000
21.2022 58.5167 0.0 T T F 2 0.000 0.000 0.000
21.1985 58.5244 0.0 T T F 2 0.000 0.000 0.000
21.1671 58.5203 0.0 T T F 2 0.000 0.000 0.000
21.1631 58.5131 0.0 T T F 2 0.000 0.000 0.000
21.1960 58.5143 0.0 T T F 2 0.000 0.000 0.000
21.1948 58.5190 0.0 T T F 2 0.000 0.000 0.000
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment