Problem with MPoP library

This is the place for queries that don't fit in any of the other categories.

Problem with MPoP library

Postby antytaon » Mon Aug 12, 2013 12:03 pm

Hello!
Code:
Code: Select all
from mpop.satellites import GeostationaryFactory
from mpop.projector import get_area_def
import datetime
time_slot = datetime.datetime(2013, 03, 12, 15, 50)
global_data = GeostationaryFactory.create_scene("meteosat", "09", "seviri", time_slot)
europe = get_area_def("EuropeCanary")
global_data.load([0.6, 0.8, 10.8], area_extent=europe.area_extent)
print global_data

Error:
Traceback (most recent call last):
File "test.py", line 9, in <module>
global_data.load([0.6, 0.8, 10.8], area_extent=europe.area_extent)
File "/usr/local/lib/python2.7/dist-packages/mpop-v0.13.0-py2.7.egg/mpop/scene.py", line 470, in load
reader_instance = self._set_reader(reader_name)
File "/usr/local/lib/python2.7/dist-packages/mpop-v0.13.0-py2.7.egg/mpop/scene.py", line 357, in _set_reader
loader = getattr(loader, "load")
AttributeError: 'module' object has no attribute 'load'
File scene.py can be found here: http://pastebin.com/tJBffRcS
Rest can be found here but I don't think it's necessary https://github.com/mraspaud/mpop
I am beginner in using Python, thanks in advance for any kind of help!
antytaon
 
Posts: 1
Joined: Mon Aug 12, 2013 12:00 pm

Return to General Coding Help

Who is online

Users browsing this forum: Bing [Bot], morissio and 3 guests