-
I am trying to read and display an image from a NetCDF Dataset following https://leafmap.org/notebooks/89_image_array_viz/ : Code:
Does anyone know what I can do to cure the error below? Edit: By creating image by the leafmap.array_to_memory_file() function instead (parameters unchanged), I got rid of the error, but the geotransform seems to be ignored. The crs="EPSG32633" (UTM-33n) appears to be noticed; by changing the UTM zone I can move the image west to east with respect to the basemap. Specifying basemap={} hoping to avoid any reprojection did not du any other than removing the basemap. Output from original attempt, using leafmap.array_to_image:TypeError Traceback (most recent call last) C:\Lokal\PyProj\ODMviewer\venv\Lib\site-packages\leafmap\common.py in ?(array, output, source, dtype, compress, transpose, cellsize, crs, driver, **kwargs)
TypeError: array_to_memory_file() got multiple values for argument 'transform' Output from updated attempt, using leafmap.array_to_memory_file(); Norway placed somewhere in Africa... |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This issue has already been fixed in #660. I have not released a new version yet. You can update it using |
Beta Was this translation helpful? Give feedback.
This issue has already been fixed in #660. I have not released a new version yet. You can update it using
leafmap.update_package()
and restart the kernel to take effect.