Skip to content

Commit

Permalink
REL: 0.6.0 (#186)
Browse files Browse the repository at this point in the history
* REL: 0.6.0

* DOC: add hpl automodule directive

* MNT: add bobby and daniel to AUTHORS.md, fix CITATION.cff for new release

* MNT: set release date to 2024-08-05

* MNT: fix StreamLine HPL automodule header

* add orcids

* fix AUTHORS.md
  • Loading branch information
kmuehlbauer committed Aug 5, 2024
1 parent 78521f6 commit bf03ab8
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 22 deletions.
2 changes: 2 additions & 0 deletions AUTHORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@
* Edouard Goudenhoofdt <edouard.goudenhoofdt@meteo.be>
* Hamid Ali Syed <hamidsyed37@gmail.com>
* Alfonso Ladino <alfonso8@illinois.edu>
* Bobby Jackson <rjackson@anl.gov>
* Daniel Wolfensberger <daniel.wolfensberger@meteoswiss.ch>
15 changes: 12 additions & 3 deletions CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
cff-version: 1.0.3
message: If you use this software, please cite it using these metadata.
# FIXME title as repository name might not be the best name, please make human readable
title: 'openradar/xradar: xradar v0.4.0'
title: 'openradar/xradar: xradar v0.6.0'
doi: 10.5281/zenodo.7091737
# FIXME splitting of full names is error prone, please check if given/family name are correct
authors:
Expand All @@ -27,7 +27,16 @@ authors:
family-names: Ladino
affiliation: University of Illinois at Urbana Champaign
orcid: https://orcid.org/0000-0001-8081-7827
version: 0.4.0
date-released: 2023-09-27
- given-names: Robert
family-names: Jackson
affiliation: Argonne National Laboratory
orcid: https://orcid.org/0000-0003-2518-1234
- given-names: Daniel
family-names: Wolfensberger
affiliation: Federal Office of Meteorology and Climatology MeteoSwiss
orcid: https://orcid.org/0009-0006-1419-0556

version: 0.6.0
date-released: 2024-08-05
repository-code: https://github.com/openradar/xradar
license: MIT
2 changes: 1 addition & 1 deletion docs/history.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# History

## Development Version (unreleased)
## 0.6.0 (2024-08-05)

* ADD: DataMet reader ({pull}`175`) by [@wolfidan](https://github.com/wolfidan).
* FIX: Nexrad level2 time offset of 1 day, skip reading missing elevations, introduce new radial_status of 5
Expand Down
1 change: 1 addition & 0 deletions xradar/io/backends/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
.. automodule:: xradar.io.backends.furuno
.. automodule:: xradar.io.backends.rainbow
.. automodule:: xradar.io.backends.iris
.. automodule:: xradar.io.backends.hpl
.. automodule:: xradar.io.backends.nexrad_level2
.. automodule:: xradar.io.backends.datamet
Expand Down
43 changes: 25 additions & 18 deletions xradar/io/backends/hpl.py
Original file line number Diff line number Diff line change
@@ -1,28 +1,42 @@
"""
Conversion tool for StreamLine .hpl files into netCDF (.nc) files:
- hpl2dict(): import .hpl files and save as dictionary
- hpl_to_netcdf(): save .hpl files into level0 (l0) .nc files
- to_netcdf_l1(): correct raw data (l0) and create level1 (l1) netCDF files
#!/usr/bin/env python
# Copyright (c) 2024, openradar developers.
# Distributed under the MIT License. See LICENSE for more info.

"""
import io
StreamLine HPL
==============
import numpy as np
import pandas as pd
import xarray as xr
This sub-module contains the StreamLine HPL xarray backend for reading StreamLine-based lidar
data into Xarray structures.
"""
Import of StreamLine .hpl (txt) files and save locally in directory. Therefore
the data is converted into matrices with dimension "number of range gates" x "time stamp/rays".
In newer versions of the StreamLine software, the spectral width can be
stored as additional parameter in the .hpl files.
.. autosummary::
:nosignatures:
:toctree: generated/
{}
"""

__all__ = [
"HPLBackendEntrypoint",
"open_hpl_datatree",
]

__doc__ = __doc__.format("\n ".join(__all__))

import io
from collections import OrderedDict
from datetime import datetime, timedelta

import numpy as np
import pandas as pd
import xarray as xr
from datatree import DataTree
from xarray.backends.common import AbstractDataStore, BackendArray, BackendEntrypoint
from xarray.backends.file_manager import CachingFileManager
Expand All @@ -40,13 +54,6 @@
)
from .common import _assign_root, _attach_sweep_groups

__all__ = [
"HPLBackendEntrypoint",
"open_hpl_datatree",
]

__doc__ = __doc__.format("\n ".join(__all__))

variable_attr_dict = {}
variable_attr_dict["intensity"] = {
"long_name": "Backscatter intensity",
Expand Down

0 comments on commit bf03ab8

Please sign in to comment.