Skip to content

Commit

Permalink
FIX: make coordinates consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
kmuehlbauer committed Oct 25, 2023
1 parent 6880b0c commit dcea094
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions docs/history.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## Development version (unreleased)

* FIX: Add history to cfradial1 output, and fix minor error in CfRadial1_Export.ipynb notebook({pull}`132`) by [@syedhamidali](https://github.com/syedhamidali)
* FIX: align coordinates in backends ({pull}`139`) by [@kmuehlbauer](https://github.com/kmuehlbauer)

## 0.4.0 (2023-09-27)

Expand Down
2 changes: 1 addition & 1 deletion xradar/io/backends/furuno.py
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ def open_store_variable(self, name, var):
dims = (dim, "range")
attrs[
"coordinates"
] = "elevation azimuth range latitude longitude altitude time rtime sweep_mode"
] = "elevation azimuth range latitude longitude altitude time"
return Variable(dims, data, attrs, encoding)

def open_store_coordinates(self):
Expand Down
4 changes: 1 addition & 3 deletions xradar/io/backends/gamic.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,7 @@ def _get_gamic_variable_name_and_attrs(attrs, dtype):
attrs["_FillValue"] = undetect
attrs["_Undetect"] = undetect

attrs[
"coordinates"
] = "elevation azimuth range latitude longitude altitude time rtime sweep_mode"
attrs["coordinates"] = "elevation azimuth range latitude longitude altitude time"

return name, attrs

Expand Down
2 changes: 1 addition & 1 deletion xradar/io/backends/iris.py
Original file line number Diff line number Diff line change
Expand Up @@ -3836,7 +3836,7 @@ def open_store_variable(self, name, var):
attrs = {key: mapping[key] for key in moment_attrs if key in mapping}
attrs[
"coordinates"
] = "elevation azimuth range latitude longitude altitude time rtime sweep_mode"
] = "elevation azimuth range latitude longitude altitude time"
return mname, Variable((dim, "range"), data, attrs, encoding)

def open_store_coordinates(self, var):
Expand Down
4 changes: 3 additions & 1 deletion xradar/io/backends/odim.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,9 @@ def _get_odim_variable_name_and_attrs(name, attrs):
pass
else:
attrs.update({key: mapping[key] for key in moment_attrs})
attrs["coordinates"] = "elevation azimuth range"
attrs[
"coordinates"
] = "elevation azimuth range latitude longitude altitude time"
return name, attrs


Expand Down

0 comments on commit dcea094

Please sign in to comment.