-
Notifications
You must be signed in to change notification settings - Fork 36
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
Merge/union support for multi-band images #39
Comments
The code is not optimized for multi band rasters, since I never use those. But it shouldn't be too difficult to extend functionality I think. Would you mind sharing the raster you are using? Could you also let me know which functions or properties you have encountered problems with? Perhaps one way forward is to allow the choice of band to import. Then every band will be its own georaster. Additionally it would be possible to create a new object for multi band georasters. |
Unfortunately, I can't share the data. When I have time (could be a while) I'll try to reproduce with some other data. Observation: I would be happy to propose a an update to union() that would work for single or multi-band imagery. It would be useful to know if there is any functionality in georasters that assumes the axis in which the channels sit. Would it be possible to update the GeoRaster class with an attribute stating the channel axis (e.g. channel_axis=0)? |
Moved all multi-band requests to #58. |
I was unable to use merge() with 3-band images until I added a third dimension to the shape expression in union():
shape = (np.abs(np.floor((latmax-latmin)/rasters[0].y_cell_size)).astype(int), np.floor((lonmax-lonmin)/rasters[0].x_cell_size).astype(int), 3)
Was I using merge() incorrectly or does there need to be a test for the number of bands in the input imagery?
The text was updated successfully, but these errors were encountered: