Skip to content

Commit 88b922d

Browse files
committed
Working in place.
1 parent 1c3fe27 commit 88b922d

File tree

2 files changed

+17
-7
lines changed

2 files changed

+17
-7
lines changed

bgcval2/bgcvaltools/pftnames.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,16 @@ def makeLongNameDict():
250250

251251
lnd['AtlanticSubtropicSalinity'] = 'Atlantic Subtropic Salinity'
252252
lnd['SubtropicNorthAtlantic'] = 'Subtropic North Atlantic'
253+
254+
lnd['Surfaceto100m'] = 'Surface-to-100m'
255+
lnd['Surfaceto200m'] = 'Surface-to-200m'
256+
lnd['Surfaceto300m'] = 'Surface-to-300m'
257+
lnd['Surfaceto400m'] = 'Surface-to-400m'
258+
lnd['Surfaceto500m'] = 'Surface-to-500m'
259+
lnd['Surfaceto600m'] = 'Surface-to-600m'
260+
lnd['Surfaceto700m'] = 'Surface-to-700m'
253261
lnd['Surfaceto800m'] = 'Surface-to-800m'
262+
lnd['Surfaceto2000m'] = 'Surface-to-2000m'
254263

255264
lnd['TotalHeatFlux'] = "Global Total Heat Flux"
256265
lnd['HeatFlux'] = "Heat Flux"

bgcval2/timeseries/timeseriesTools.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -204,15 +204,16 @@ def getHorizontalSlice(nc, coords, details, layer, data=''):
204204
return ApplyDepthSlice(data, k_surf) - ApplyDepthSlice(data, k_low)
205205

206206
elif layer in [
207-
'Surface to 100m', 'Surface to 300m', 'Surface to 700m', 'Surfaceto800m',
208-
'Surface to 2000m'
207+
'Surfaceto100m', 'Surfaceto300m', 'Surfaceto700m',
208+
'Surfaceto500m', 'Surfaceto800m',
209+
'Surfaceto2000m'
209210
]:
210-
if layer == 'Surface to 100m': z = 100.
211-
if layer == 'Surface to 300m': z = 300.
212-
if layer == 'Surface to 500m': z = 500.
213-
if layer == 'Surface to 700m': z = 700.
211+
if layer == 'Surfaceto100m': z = 100.
212+
if layer == 'Surfaceto300m': z = 300.
213+
if layer == 'Surfaceto500m': z = 500.
214+
if layer == 'Surfaceto700m': z = 700.
214215
if layer == 'Surfaceto800m': z = 800.
215-
if layer == 'Surface to 2000m': z = 2000.
216+
if layer == 'Surfaceto2000m': z = 2000.
216217

217218
k_surf = bvt.getORCAdepth(0.,
218219
nc.variables[coords['z']][:],

0 commit comments

Comments
 (0)