Skip to content

Commit

Permalink
FIX: explicitely check for "False" in get_crs() (#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
kmuehlbauer authored Nov 2, 2023
1 parent 5570e22 commit 19dff83
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion docs/history.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# History

## Development Version
* FIX: Fix handling of sweep_mode attribiutes ({pull}`143`) by [@mgrover1](https://github.com/mgrover1)
* FIX: Fix handling of sweep_mode attributes ({pull}`143`) by [@mgrover1](https://github.com/mgrover1)
* FIX: explicitely check for "False" in get_crs() {pull}`142`) by [@kmuehlbauer](https://github.com/kmuehlbauer).

## 0.4.1 (2023-10-26)

Expand Down
2 changes: 1 addition & 1 deletion xradar/georeference/projection.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def get_crs(ds, datum="WGS84"):
if "spatial_ref" in ds
else False
)
if crs_wkt:
if crs_wkt is not False:
proj_crs = pyproj.CRS.from_cf(crs_wkt.attrs)
else:
proj_crs = pyproj.CRS(
Expand Down

0 comments on commit 19dff83

Please sign in to comment.