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

Cannot read MODIS data #168

Closed
howff opened this issue Jan 25, 2018 · 3 comments
Closed

Cannot read MODIS data #168

howff opened this issue Jan 25, 2018 · 3 comments
Assignees
Labels
Milestone

Comments

@howff
Copy link

howff commented Jan 25, 2018

Trying to load a MODIS true_color with satpy 0.8.0, pyspectral 0.5.0

File "/packages/pytroll/local/lib/python2.7/site-packages/satpy/scene.py", line 564, in load
    keepables = self.compute()
  File "/packages/pytroll/local/lib/python2.7/site-packages/satpy/scene.py", line 511, in compute
    return self.read_composites(nodes)
  File "/packages/pytroll/local/lib/python2.7/site-packages/satpy/scene.py", line 485, in read_composites
    self._generate_composite(item, keepables)
  File "/packages/pytroll/local/lib/python2.7/site-packages/satpy/scene.py", line 445, in _generate_composite
    keepables,
  File "/packages/pytroll/local/lib/python2.7/site-packages/satpy/scene.py", line 405, in _get_prereq_datasets
    self._generate_composite(prereq_node, keepables)
  File "/packages/pytroll/local/lib/python2.7/site-packages/satpy/scene.py", line 460, in _generate_composite
    **self.info)
  File "/packages/pytroll/local/lib/python2.7/site-packages/satpy/composites/__init__.py", line 374, in __call__
    refl_cor_band = corrector.get_reflectance(sunz, satz, ssadiff, vis.id.name, red)
  File "/packages/pytroll/local/lib/python2.7/site-packages/pyspectral/rayleigh.py", line 235, in get_reflectance
    (1 - (blueband - 20) / 80) * res)
  File "/packages/pytroll/local/lib/python2.7/site-packages/satpy/dataset.py", line 99, in wrapper
    res = func(self, other, *args, **kwargs)
  File "/packages/pytroll/local/lib/python2.7/site-packages/satpy/dataset.py", line 311, in __mul__
    return super(Dataset, self).__mul__(other)
  File "/packages/pytroll/local/lib/python2.7/site-packages/numpy/ma/core.py", line 4086, in __mul__
    return multiply(self, other)
  File "/packages/pytroll/local/lib/python2.7/site-packages/numpy/ma/core.py", line 1011, in __call__
    result = self.f(da, db, *args, **kwargs)
ValueError: operands could not be broadcast together with shapes (21440,5416) (5360,1354) 
@mraspaud mraspaud added this to the v0.9 milestone Jan 25, 2018
@djhoese djhoese added the bug label Jan 25, 2018
@howff howff changed the title ValueError: operands could not be broadcast together with shapes Cannot read MODIS data Jan 31, 2018
@mraspaud mraspaud self-assigned this Feb 1, 2018
@djhoese
Copy link
Member

djhoese commented Jun 13, 2018

@mraspaud This should be fixed now with changes to make the RayleighCorrector check prerequisite areas and requiring resampling first, right?

@mraspaud
Copy link
Member

Yes, I think so, but this needs to be tested

@mraspaud
Copy link
Member

Tested: WFM. Closing.

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

No branches or pull requests

3 participants