You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sdap.apache.org by sk...@apache.org on 2022/10/24 21:49:14 UTC

[incubator-sdap-nexus] 02/03: Fixed NetCDF converter so depth is present

This is an automated email from the ASF dual-hosted git repository.

skperez pushed a commit to branch feature/SDAP-407
in repository https://gitbox.apache.org/repos/asf/incubator-sdap-nexus.git

commit 7cad4612619dfc1d458632a08eb665c95168b812
Author: skorper <st...@gmail.com>
AuthorDate: Mon Oct 24 14:48:15 2022 -0700

    Fixed NetCDF converter so depth is present
---
 analysis/webservice/algorithms/doms/BaseDomsHandler.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/analysis/webservice/algorithms/doms/BaseDomsHandler.py b/analysis/webservice/algorithms/doms/BaseDomsHandler.py
index 2bcb728..904732b 100644
--- a/analysis/webservice/algorithms/doms/BaseDomsHandler.py
+++ b/analysis/webservice/algorithms/doms/BaseDomsHandler.py
@@ -455,7 +455,7 @@ class DomsNetCDFValueWriter:
         timeVar[:] = self.time
 
         # Add depth variable, if present
-        if self.depth:
+        if self.depth and any(self.depth):
             depthVar = self.group.createVariable('depth', 'f4', ('dim',), fill_value=-32767.0)
             self.__enrichDepth(depthVar, self.__calcMin(self.depth), max(self.depth))
             depthVar[:] = self.depth