Updating a dataset (file) in place. - wolfiex/AerVis GitHub Wiki

Updating a dataset (file) in-place.

If changes to the dataset within the AerData Class we can then push them back to the netCDF file. Within this we can append Variables (datasets), Attributes and Coordinates*

NOTE

If a variable/attribute/coordinate already exists within the file, this will be overwritten!

An example appending new attributes to a file


from aervis import *
d = AerData('bk417a')          #load data

new_attrs = {'test1' : 42 , 'test2' : 'hello'}

d.update(attrs = new_attrs)


print(d.data)