skorper commented on a change in pull request #132:
URL: 
https://github.com/apache/incubator-sdap-nexus/pull/132#discussion_r709666976



##########
File path: data-access/nexustiles/model/nexusmodel.py
##########
@@ -100,6 +136,8 @@ def nexus_point_generator(self, include_nan=False):
     def get_indices(self, include_nan=False):
         if include_nan:
             return list(np.ndindex(self.data.shape))
+        if self.is_multi:
+            return np.argwhere(self.data[0])

Review comment:
       The data is formatted such that data[0] == variable 1, data[1] == 
variable 2, etc. I am only getting the indices for data[0], the first variable 
because I assumed the mask would be the same across all variables. If that 
isn't the case I would need to retrieve the ~mask~indices for the entire data 
array, which I was trying to avoid because it's *huge* for swath multi-var data.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@sdap.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to