nansat icon indicating copy to clipboard operation
nansat copied to clipboard

Make functions for removing and updating a band or several bands

Open mortenwh opened this issue 11 years ago • 3 comments

This can be useful for instance in openwind if we want to change the wind direction and recalculate the wind speed.

mortenwh avatar Dec 19 '13 14:12 mortenwh

vrt.delete_band() or vrt.delete_bands() remove band(s). Is it ok to delete this issue?

asumak avatar Jan 23 '15 10:01 asumak

I proposed a function that replaces band data with updated data, e.g. called "update_band" or something.

def update_band(array):
    meta = self.get_metadata(...)
    vrt.delete_band
    vrt.add_band (with metadata)

mortenwh avatar Mar 05 '15 12:03 mortenwh

Fixed in 580d0a6.

asumak avatar Mar 17 '15 12:03 asumak