Closed raybellwaves closed 2 years ago
@raybellwaves Thanks for submitting this issue. I tried your example and could reproduce the error. However, after further inspection of the downloaded files, it seems that you have 4 different areas downloaded, namely JP01
, JP02
, JP03
and JP04
. Just choosing the files for one area makes it work:
...
curfiles = glob.glob('tmp/*JP02*')
scn = Scene(curfiles, reader='ahi_hsd')
dq = 'B14'
scn.load([dq])
scn.show(dq)
Note that I chose B14
because I find that visible channels aren't too interesting during night :)
The real issue then is that the printed error is totally unhelpful in diagnosing the error though, so this should be addressed.
it seems that you have 4 different areas downloaded
@mraspaud thanks for catching that!
The real issue then is that the printed error is totally unhelpful in diagnosing the error though, so this should be addressed.
Agreed. Welcome to close this and create a new issue.
Hi, This error is still present, but now also using the unaltered FLDK example from https://gist.github.com/raybellwaves/4dd2f1472468e9f67424b6a148e9ac18
Traceback (most recent call last):
File "test.py", line 19, in
@Plantain We know that the error is not helpful for the overall problem, but did you have the same issue @raybellwaves had? He was providing more than one time step (and region) to the Scene
object at once.
And that gist
should work fine if your data meets the assumption of Ray's comment:
# Download a folder (which is one time stamp) and contains all 16 channels and 10 segments
I'm going to close this issue since there haven't been any updates. The general issue is that you can't provide more than one time step (repeat cycle) to the Scene. The error message is not extremely helpful, but I'm not sure there is an easy way around that. A pull request is welcome if someone wants to improve the error handling of the AHI HSD reader's error when accessing self.area
, but I don't think it is necessary.
Describe the bug
Running
scn.load(['B04'])
givesAttributeError: 'AHIHSDFileHandler' object has no attribute 'area'
To Reproduce
Tested on master
Expected behavior It's work in the same way as if the data was FLDK (see https://gist.github.com/raybellwaves/4dd2f1472468e9f67424b6a148e9ac18)
Actual results
Environment Info:
Writers
cf: ok geotiff: ok mitiff: ok ninjotiff: cannot find module 'satpy.writers.ninjotiff' (No module named 'pyninjotiff') scmi: ok simple_image: ok
Extras
cartopy: No module named 'cartopy' geoviews: No module named 'geoviews'