Skip to content

Commit

Permalink
Merge pull request mom-ocean#85 from NOAA-GFDL/user/nnz/calc_variance…
Browse files Browse the repository at this point in the history
…_5daily_fix

Fix script calc_variance.py to use ocean_5daily
  • Loading branch information
adcroft committed Apr 26, 2016
2 parents db1a4a1 + e98f26e commit 1b4acd1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/analysis/calc_variance.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@

if nt==365: days_in_month = [31,28,31,30,31,30,31,31,30,31,30,31]
elif nt==366: days_in_month = [31,29,31,30,31,30,31,31,30,31,30,31]
elif nt==73 : days_in_month = [6,6,6,6,6,6,6,7,6,6,6,6] # for ocean_5daily.nc
else: raise Exception('First dimension appears to not match a days in a single year.')

# Create dimensions
Expand Down

0 comments on commit 1b4acd1

Please sign in to comment.