From e54eb99005e15cdea16aaae2697933bc7d8a4d5a Mon Sep 17 00:00:00 2001 From: Ryan Date: Thu, 21 Jul 2016 16:30:11 -0400 Subject: [PATCH] Use ncg passed into nc_depths --- octant/roms.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/octant/roms.py b/octant/roms.py index 947c7c0..e729ef3 100644 --- a/octant/roms.py +++ b/octant/roms.py @@ -281,7 +281,9 @@ def __init__(self, nc, grid, ncg=None): self.nc = nc if ncg is None: self.ncg = self.nc - + else: + self.ncg = ncg + # Get the vertical dimension of the grid. if 'N' in self.nc.dimensions.keys(): self.N = len(self.nc.dimensions['N'])