Commit 90f22ba7 authored by Tomas Pettersson's avatar Tomas Pettersson 🏸

doc update

parent 2ea77ec9
......@@ -14,6 +14,82 @@ You will need python 2.7 and python-shapely rpm packages
## Usage example
Run with
```python
python exercisemodel/
```
or if zipped
```python
python exercisemodel.zip
```
Needs a input.json as input which has one feature which would usually start the PADM model. startDate and stopDate is used from this. Also it requres another feature which is a geometry LineString and specifies the trajectory for the model to follow.
Example:
```javascript
{
"type": "FeatureCollection",
"features": [{
"type": "Feature",
"properties": {
"simulation": {
"forwardCalculation": true,
"startDate": 1512572400000,
"stopDate": 1512576000000,
"oilclass": "Oil classes",
"substance": "Medium oils (100-1000 cSt)",
"fresh": true,
"amount": "10",
"amountUnit": "m3",
"uncertainty": false,
"mode": "Normal"
},
"primary": "PADM",
"type": "oil",
"subtype": "instant",
"meanLat": 58.950008233357046,
"meanLng": 20.302734375000004,
"observation": [{
"id": null,
"provider": "USER",
"providerDataRef": null,
"providerImgRef": null,
"providerType": null,
"type": "MANUAL",
"date": 1512572400000
}],
"domain": "HELCOM",
"model": "NEMO"
},
"geometry": {
"type": "Point",
"coordinates": [20.302734375000004, 58.950008233357046]
}
}, {
"type": "Feature",
"properties": {
"auxiliary": "exercise",
"time": [1512573300000, 1512574200000, 1512575100000, 1512576000000]
},
"geometry": {
"type": "LineString",
"coordinates": [
[20.566406250000004, 58.81374171570782],
[20.742187500000004, 58.69977573144006],
[20.961914062500004, 58.60833366077633],
[21.181640625000004, 58.51665179936381]
]
}
}]
}
```
Will generate typical PADM outout files like particletrack.dat files, cloudtrack.dat files, exercise.log and can optionally write output.json
### Options
## Copyright and License
......
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