#!/bin/bash

elegant run.ele

nw=`ls run-*.w1 | wc -l`
echo "Processing $nw data files..."

sddscombine run-00*.w1 -pipe=out \
            | sddsprocess -pipe -define=col,sc,s,units=m \
            | sddscombine -pipe -merge \
            | sddshist2d -pipe=in run.h2dx -col=sc,x -xparam=$nw -yparam=100 

sddscombine run-00*.w1 -pipe=out \
            | sddsprocess -pipe -define=col,sc,s,units=m \
            | sddscombine -pipe -merge \
            | sddshist2d -pipe=in run.h2dy -col=sc,y -xparam=$nw -yparam=100 

sddscontour -shade run.h2dx 
sddscontour -shade run.h2dy
 


