SuperDARN / pyDARNio

Python Library for read in SuperDARN data
GNU Lesser General Public License v3.0
8 stars 2 forks source link

Bugfix/borealis dmap versioning #48

Closed RemingtonRohel closed 2 years ago

RemingtonRohel commented 2 years ago

Scope

Several small bugfixes related to Borealis versioning and DMAP file structures.

issue: None

Approval

Number of approvals: 2

Test

Try reading/writing any grid, map, fitacf, rawacf, or iqdat file. Previously, I think only fitacf files would actually work. See the docs for how best to do this, I am not well-versed at working with SuperDARN data files, just Borealis files. https://pydarnio.readthedocs.io/en/latest/user/SDarnRead/#

For the borealis versioning, try converting a v0.5 and v0.6.1 file from rawacf Borealis format to rawacf SuperDARN format.

import pydarnio
filename = 'path/to/borealis/file'
outfile = 'path/to/output/file'
converter = pydarnio.BorealisConvert(filename, 'rawacf', outfile, 0)