Skip to content

Commit ecafc78

Browse files
committed
fix in case volcello has no _FillValue
1 parent a3a337e commit ecafc78

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "OceanTransportMatrixBuilder"
22
uuid = "c2b4a04e-6049-4fc4-aa6a-5508a29a1e1c"
33
authors = ["Benoit Pasquier <[email protected]> and contributors"]
4-
version = "0.7.0"
4+
version = "0.7.1"
55

66
[deps]
77
Distances = "b4f34e82-e78d-54a5-968a-f98e89d6e8f7"

src/gridcellgeometry.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,12 +283,10 @@ function makegridmetrics(; areacello, volcello, lon, lat, lev, lon_vertices, lat
283283
replacelist = (x => NaN for x in toreplace)
284284

285285
# volume (3D)
286-
FillValue = volcello.properties["_FillValue"]
287286
v3D = volcello |> Array{Union{Missing, Float64}}
288287
v3D = replace(v3D, replacelist...)
289288

290289
# area (2D)
291-
FillValue = areacello.properties["_FillValue"]
292290
area2D = areacello |> Array{Union{Missing, Float64}}
293291
area2D = replace(area2D, replacelist...)
294292

0 commit comments

Comments
 (0)