ARM-DOE / pyart

The Python-ARM Radar Toolkit. A data model driven interactive toolkit for working with weather radar data.
https://arm-doe.github.io/pyart/
Other
516 stars 268 forks source link

FR: Export radar file after edit #1590

Closed MaxMyzer closed 5 months ago

MaxMyzer commented 5 months ago

Description

Add a feature to allow the program to export radar files after manipulating them. Came here after suggesting something similar in metpy

Note - I am currently working on a program to do something similar, but having it built into a library such as this would be good.

Specification

Why?

mgrover1 commented 5 months ago

This would be possible with editing the fields in some radar object, then exporting to a cfradial file

import pyart

# Read the data
radar = pyart.io.read("some_file.nc")

# Apply your corrections/retrievals
radar.correct...

# Write the file
pyart.io.write_cfradial(radar, "new_file.nc")

Is there something missing here?

MaxMyzer commented 5 months ago

Is there something missing here?

I mainly want to do this with a Level2 file, although being able to do it with cfradical is awesome

mgrover1 commented 5 months ago

Would exporting to cfradial allow you accomplish your task? We do not plan to support Py-ART writing to NEXRAD formats unfortunately, especially with the World Meteorological Organization deciding upon the Cfradial2/FM301 data standard.

MaxMyzer commented 5 months ago

I see, I will look into that.