Skip to content

Commit

Permalink
FIX: explicitely check for "False" in get_crs()
Browse files Browse the repository at this point in the history
  • Loading branch information
kmuehlbauer committed Oct 31, 2023
1 parent 815f504 commit f5a2906
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions docs/history.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# History

## Development Version

* FIX: explicitely check for "False" in get_crs() {pull}`142`) by [@kmuehlbauer](https://github.com/kmuehlbauer).

## 0.4.1 (2023-10-26)

* FIX: Add history to cfradial1 output, and fix minor error in CfRadial1_Export.ipynb notebook({pull}`132`) by [@syedhamidali](https://github.com/syedhamidali)
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 f5a2906

Please sign in to comment.