#!/bin/bash

if [ $# -eq 0 ]; then
    echo "usage inputFolder=./current/"
    folder=./Matmo/
elif [ $# -eq 1 ]; then
    folder=$1 
fi

for gdName in grd1 grd2 grd3
do
  python python_reader.py --filePath=$folder$gdName"_20140716.nc" --outPath=$folder --gridName=$gdName
  python python_reader.py --filePath=$folder$gdName"_20140717.nc" --outPath=$folder --gridName=$gdName
  python python_reader.py --filePath=$folder$gdName"_20140718.nc" --outPath=$folder --gridName=$gdName
  python python_reader.py --filePath=$folder$gdName"_20140719.nc" --outPath=$folder --gridName=$gdName
  python python_reader.py --filePath=$folder$gdName"_20140720.nc" --outPath=$folder --gridName=$gdName
  python python_reader.py --filePath=$folder$gdName"_20140721.nc" --outPath=$folder --gridName=$gdName
done
