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
"Unexpected number of scanlines!" when reading AVHRR GAC data #1409
Comments
This looks like a lot of errors. Could it be that you didn't remove the archive header from the data when you ordered it? @sfinkens @carloshorn any idea? |
@mraspaud I tried two versions (with/without header) of the same dataset. Both failed. But errors are different.
Without archive header:
|
I'll try to reproduce this with a fresh copy of |
@yukaribbba Sorry I cannot reproduce the error. I downloaded that file from NOAA CLASS (without archive header) and was able to read it using satpy-0.23.0 and pygac-1.4.0. Did you compare the checksum with the CLASS order manifest? Maybe the file was damaged during download. |
@sfinkens Okay could you help me to upload your own test data and let me just try it? Thank you. |
Sure, there you go: https://public.cmsaf.dwd.de/data/sfinkens/avhrr_gac/NSS.GHRR.NH.D91164.S0423.E0616.B1399091.WI sha256 checksum is:
|
@sfinkens Unfortunately it failed again, "TLE directory not specified". And sha256 checksum is no problem.
Does this mean something wrong with my pygac environment settings?
and inside the pygac.cfg:
|
Pygac has been refactored lately to act more like a library. That means the config file is only used by the In satpy you can specify these parameters via the |
@sfinkens Thanks! I did it according to your example. But the output geotiff doesn't contain any geolocation info so I can't make a reprojection. |
@sfinkens Just ignore it. No problems now. Thank you so much. |
Did you load the lat/lon coordinates as well? Like so scene.load(['1', 'latitude', 'longitude'])
scene.save_datasets(writer='geotiff') I'm not familiar with geotiff, but at least this creates three resampled = scene.resample(my_area)
resampled.save_datasets(writer='geotiff') |
Ah, ok. Glad you solved it! 🙂 |
Describe the bug
I got this error loading a GAC dataset from AVHRR-2/NOAA-11. Pygac is under my conda env. The dataset comes from NOAA CLASS and it's a part of the whole swath. I've tried several datasets and all failed due to this error.
Here's one for test:
https://1drv.ms/u/s!AjWORUATthfgmHNvtjUxDcqaL7X8?e=HvZdQ0
To Reproduce
The text was updated successfully, but these errors were encountered: