Commit a1ed8985 authored by Carl Schreck's avatar Carl Schreck
Browse files

Automated Nightly Commit - Sat Feb 16 00:10:44 EST 2019

parent 302b5027
......@@ -41,8 +41,14 @@ print("timeVar="+timeVar)
if( typeof( time ).eq."float" ) then
time = tofloat( (/ cd_convert( time, timeUnits ) /) )
if( isvar("newDay") ) then
time = tofloat( month_change_day(time,newDay) )
end if
else
time = (/ cd_convert( time, timeUnits ) /)
if( isvar("newDay") ) then
time = month_change_day(time,newDay)
end if
end if
time@units = timeUnits
time!0 = timeVar
......
#!/bin/bash
path=$1
timeVar=$2
timeUnits=$3
newDay=$2
timeVar=$3
timeUnits=$4
NCL_SCRIPT=/home/carl/lib/ncl_tools/change_time_units.ncl
......@@ -11,6 +12,10 @@ if [ ! -z "$path" ];
then
NCL_OPTION="$NCL_OPTION path=\"$path\""
fi
if [ ! -z "$newDay" ];
then
NCL_OPTION="$NCL_OPTION newDay=$newDay"
fi
if [ ! -z "$timeVar" ];
then
NCL_OPTION="$NCL_OPTION timeVar=\"$timeVar\""
......
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