#!/bin/sh
set -x

# Verzamel de rooster definities.

. ./LONLAT.def

# Haal de hoogte van het aardoppervlak op.

./getfield `ls -1t /data/hirlam/hl_home/OPR/mf2*f | head -1` orography > orography.txt

gnuplot << EOF
   set terminal png truecolor size $XMAP,$YMAP
   set output 'hoogtekaart.png'
   set view map
   set palette cubehelix
   unset colorbox
   $XRANGE
   $YRANGE
   set cbrange [0:]
   set title 'Hoogtekaart'
   splot 'orography.txt' notitle with image
EOF

gnuplot << EOF
   set terminal postscript landscape color
   set output 'hoogtekaart.ps'
   set view map
   set palette cubehelix
   unset colorbox
   $XRANGE
   $YRANGE
   set cbrange [0:]
   set title 'Hoogtekaart'
   splot 'orography.txt' notitle with image
EOF

exit 0
