Skip to content
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

errors Pansharpen landsat 8 #204

Open
lequynhhoa opened this issue Aug 15, 2016 · 2 comments
Open

errors Pansharpen landsat 8 #204

lequynhhoa opened this issue Aug 15, 2016 · 2 comments

Comments

@lequynhhoa
Copy link

Dear all,
I am pansharpening but I got error as the below. Please tell me how to fix it.
I can't pansharpen :(.

root@osgeolive:/home/user# landsat process /root/landsat/downloads/LC81260452014284LGN00 --pansharpen===> PanSharpened Image processing started for bands 4-3-2-8
===> Getting boundaries
===> Rescaling
band 4
Time spent : 103.93 seconds
Traceback (most recent call last):
File "/usr/local/bin/landsat", line 8, in
landsat.landsat.main()
File "/usr/local/lib/python2.7/dist-packages/landsat/landsat.py", line 491, in main
exit(_main(args))
File "/usr/local/lib/python2.7/dist-packages/landsat/landsat.py", line 306, in main
args.ndvigrey, bounds)
File "/usr/local/lib/python2.7/dist-packages/landsat/landsat.py", line 479, in process_image
return p.run()
File "/usr/local/lib/python2.7/dist-packages/landsat/decorators.py", line 11, in wrapped_f
return func(_args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/landsat/image.py", line 456, in run
bands[:3] = self._rescale(bands[:3])
File "/usr/local/lib/python2.7/dist-packages/landsat/image.py", line 526, in _rescale
bands[key] = sktransform.rescale(band, 2)
File "/usr/local/lib/python2.7/dist-packages/skimage/transform/_warps.py", line 188, in rescale
clip=clip, preserve_range=preserve_range)
File "/usr/local/lib/python2.7/dist-packages/skimage/transform/_warps.py", line 119, in resize
preserve_range=preserve_range)
File "/usr/local/lib/python2.7/dist-packages/skimage/transform/_geometric.py", line 1343, in warp
order=order, mode=mode, cval=cval)
File "skimage/transform/_warps_cy.pyx", line 106, in skimage.transform._warps_cy._warp_fast (skimage/transform/_warps_cy.c:2530)
MemoryError
root@osgeolive:/home/user#

@cmdelatorre
Copy link

I'm no expert and I'm not even sure, but apparently you're running out of memory. ¿is it possible?. Check the RAM use while running the script

@aornugent
Copy link

I have the same error with 4GB RAM. Could someone please give an indication of the memory requirements for pansharpening?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants