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

nchung pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-sdap-nexus.git


The following commit(s) were added to refs/heads/master by this push:
     new 7c76242  Fix NetCDF output (#182)
7c76242 is described below

commit 7c76242e3adeb7f5d5cd5b50350b2a7d1a090acf
Author: Riley Kuttruff <[email protected]>
AuthorDate: Thu Jul 28 10:15:11 2022 -0700

    Fix NetCDF output (#182)
    
    * Fixed mixup of lat & lon
    
    * Update changelog
    
    Co-authored-by: rileykk <[email protected]>
---
 CHANGELOG.md                                           | 1 +
 analysis/webservice/algorithms/doms/BaseDomsHandler.py | 4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 2b4b44f..a3183da 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -27,4 +27,5 @@ and this project adheres to [Semantic 
Versioning](https://semver.org/spec/v2.0.0
 - Fixed issue where null results were returned if more than "resultSizeLimit" 
matches are found
 - Fixed issue where satellite to satellite matchups with the same dataset 
don't return the expected result
 - Fixed CSV and NetCDF matchup output bug
+- Fixed NetCDF output switching latitude and longitude
 ### Security
\ No newline at end of file
diff --git a/analysis/webservice/algorithms/doms/BaseDomsHandler.py 
b/analysis/webservice/algorithms/doms/BaseDomsHandler.py
index aec291a..2bcb728 100644
--- a/analysis/webservice/algorithms/doms/BaseDomsHandler.py
+++ b/analysis/webservice/algorithms/doms/BaseDomsHandler.py
@@ -415,8 +415,8 @@ class DomsNetCDFValueWriter:
             'source', 'device',
             'platform', 'time', 'matches'
         ]
-        self.lat.append(result_item.get('lon', None))
-        self.lon.append(result_item.get('lat', None))
+        self.lat.append(result_item.get('lat', None))
+        self.lon.append(result_item.get('lon', None))
         self.time.append(time.mktime(result_item.get('time').timetuple()))
 
         # All other variables are assumed to be science variables.

Reply via email to