-----------------------
script: oilmap_wind.php
-----------------------

Purpose
-------
Get a NetCDF file with wind data for import in OILMAP.
This script is not functional on NOOS Matroos.

Usage
-----
http://matroos.deltares.nl/direct/oilmap_wind.php?source=&type=&xmin=&xmax=&ymin=&ymax=&nx=&ny=&coordsys=&tstart=&tstop=&tinc=&anal_time=

The part after '?' is meant to define parameters for the script.
Each parameter should be given as <param>=<value>, the different
parameters are separated by the '&' sign.

Examples
--------
http://matroos.deltares.nl/direct/oilmap_wind.php?source=knmi_harmonie40&xmin=4.07&xmax=4.81&ymin=52.87&ymax=53.47&tstart=202105130000&tstop=202105140000&force=1

wget --proxy=off -O output.nc \
'http://matroos.deltares.nl/direct/oilmap_wind.php?source=knmi_harmonie40&xmin=4.07&xmax=4.81&ymin=52.87&ymax=53.47&tstart=202105130000&tstop=202105140000&force=1'

Cut and paste one of the above URL in the address bar of the browser, or click on the link, to get an example of the output.

Parameters
----------
- source   : The map source (or alias thereof) as known by Matroos.
             Possible sources are: knmi_harmonie40, knmi_h11_v72, knmi_ecmwf_bes.
             Default: knmi_harmonie40

- xmin     : Minimum x-coordinate.

- xmax     : Maximum x-coordinate.

- ymin     : Minimum y-coordinate.

- ymax     : Maximum y-coordinate.

- coordsys : Optional. The coordinate system in which x and y are given.
             Default: WGS84.
             Examples: RD (='Rijksdriehoek'), ED50, MN (=m,n co-ordinates).
             or any epsg-code as epsg:<code>.

- tstart   : First time for the timeseries in format YYYYMMDDhhmm.
             Any '-', <space>, or ':' will be ignored, so a format like 
             YYYY-MM-DD hh:mm will be accepted as well.

- tstop    : Last time for the timeseries in the same format as tstart.

- tinc     : Optional. Timestep in minutes.
             Default: 3 hours.

- timezone : MET, GMT or GMT[+/-][hours] default GMT.

- force    : Optional. When '1', the download will start without delay.
             Otherwise information will be printed showing the estimated
             download size and you will be asked to press a link for download.

- zip      : Optional. When '1', the output NetCDF will be zipped before
             the downloading starts.
             Default: 0.