Skip to content

Commit

Permalink
Bump version to 1.6.2
Browse files Browse the repository at this point in the history
  • Loading branch information
CyanideCN committed Nov 30, 2020
1 parent a97b705 commit e9a6f49
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cinrad/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

from .deprecation import Deprecated

__version__ = "1.6.1"
__version__ = "1.6.2"

# deprecate `easycalc` namespace
easycalc = Deprecated(
Expand Down
9 changes: 9 additions & 0 deletions cinrad/io/level2.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ def __init__(
self.radarheight = self.site_info["height"]
if "name" in self.site_info:
self.name = self.site_info["name"]
if "code" in self.site_info:
self.code = self.site_info["code"]
if self.code == None and self.name:
# Use name as code when code is missing
self.code = self.name
Expand Down Expand Up @@ -208,6 +210,13 @@ def _SAB_handler(self, f: Any, dtype: str = "SAB"):

def _CC_handler(self, f: Any):
header = np.frombuffer(f.read(1024), CC_header)
self.site_info = {
#"longitude": header["lLongitudeValue"][0] / 1000,
#"latitude": header["lLatitudeValue"][0] / 1000,
#"height": header["lHeight"][0] / 1000,
"name": header["cStation"][0].decode(),
"code": header["cStationNumber"][0].decode()
}
scan_mode = header["ucScanMode"][0]
if scan_mode < 100:
raise NotImplementedError("Only VPPI scan mode is supported")
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

setup(
name="cinrad",
version="1.6.1",
version="1.6.2",
description="Decode CINRAD radar data and visualize",
long_description="Decode CINRAD radar data and visualize",
license="GPL Licence",
Expand Down

0 comments on commit e9a6f49

Please sign in to comment.