Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Borealis v1 #77

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from
Open

Support for Borealis v1 #77

wants to merge 5 commits into from

Conversation

RemingtonRohel
Copy link
Collaborator

Scope

  • New I/O classes to support the new data format of Borealis v1.0
  • Removal of redundant setup.py file and moved to src/-style package layout to alleviate issues surrounding automatic package detection and editable installation without a setup.py file.

issue: N/A

Approval

Number of approvals: 2

Test

First, get your hands on some new Borealis v1.0 files. @ me for files to test with.

  • BorealisRead on pre-v1 files (site- and array-structured)
  • BorealisWrite on pre-v1 files (site- and array-structured)
  • BorealisConvert on pre-v1 files (site- and array-structured)
  • BorealisRead on v1 files (access data with reader.records and reader.arrays)
  • BorealisWrite on v1 files (should raise NotImplementedError)
  • BorealisConvert on v1 files (bfiq and rawacf)
  • BorealisV1Read.records_as_xarray()
  • BorealisV1Read.arrays_as_xarray()

Note that to test the xarray features you must install pydarnio with the optional xarray dependencies, like pip install pydarnio[xarray] @ git+https://github.com/SuperDARN/pyDARNio

The BorealisRead, BorealisWrite, and BorealisConvert classes should be able to seamlessly support all types of Borealis files, determining the version from the data file and dispatching to the appropriate class.

* Refactored directory structure to src/ layout to facilitate editable installation while removing setup.py
* Created v1_onwards.py with classes for reading and conversion of Borealis v1.0+ files
* Added reading of Borealis v1.0+ files using xarray, for simpler data processing
* Modified BorealisRead, BorealisWrite, and BorealisConvert classes to dynamically dispatch the correct functions based on Borealis version.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant