-
Notifications
You must be signed in to change notification settings - Fork 303
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
MetopC script fails after update to SatPy 0.37 #2173
Comments
@lobsiger Thanks for filing this issue with all the details! I could reproduce the error thanks to your script and data files, I will start debugging this. |
Using |
Martin, I doubt that this is a 3d enhancement problem. The script also fails with 'ir_cloud_day'. Both use AVHRR channel '4'. Interestingly here the script worked with composites=['4']. IIRC my original script also failed with composites=['natural_with_night_fog']. |
@mraspaud I was was probably wrong with 'natural_with_night_fog'. Maybe it didn't work because I had a default list of composites=['ir108_3d', 'natural_with_night_fog']. I just tested with satpy 0.37 for different DAY and NIG passes this list: composites = ['cloud_phase_distinction', 'cloud_phase_distinction_raw', 'cloudtop', 'day_microphysics', 'green_snow', But 'ir_cloud_day' (like ir108_3d') does NOT work. That's verified. Ernst |
@lobsiger thanks for confirming this. I checked and both |
@mraspaud TBH I do not know how to update just your fix with conda and/or pip. I have no Satpy devel version setup here. |
@lobsiger Try |
@gerritholl thanks for that. I have done that under GNU/Linux Satpy 0.37 and the two ir composites now do work! I also tried just now pip install git+https://github.com/pytroll/pycoast.git@main on my Windows 10 setup and it seems to work. Can you confirm that this is the way to directly install from the 'main' branch? As I said above I have tried that before, but it didn't work at that time. I now suspect that then I have used branch name 'master' instead of 'main'. Has this branch been renamed somewhere in the past or is this due to my aging brain? The point is that I fixed with PRs a couple of things in pycoast this spring but the pycoast conda package is still at 1.5.0. I'am up to date on GNU/Linux but could not update my Windows 10 install easily (probably because of that silly 'master'/'main' thing). |
@lobsiger That would install the main branch, yes. I think you can leave out |
@gerritholl thanks for that. Renaming explains my 'master'/'main' problem. Is there any chance that I can easily screw up my install if I switch form conda to pip back and forth? As I said I have now updated my Windows 10 and a conda list pycoast says: pycoast 1.5.0+50.gb2ad512 pypi_0 pypi Will conda understand when a pycoast v. 1.6.0 (with Daves PR 63) comes out anytime this fall that I update from conda-forge? |
@lobsiger I would be very careful with mixing pypi packages with conda because it can make the environment difficult to update and prone to unexplainable errors/dependency problems. |
also, I consider this a quite serious bug, so when my PR is reviewed and merged, I will try to make a release ASAP. |
Describe the bug
The script fails under Satpy 0.37 but has always run fine under Satpy 0.35 and Satpy 0.36.
See description and error messages/debug output on the google list in this thread:
https://groups.google.com/g/pytroll/c/RHGLzoAuZjc
To Reproduce
I puplished this minimal code together with the 3 data files and area definition on wetransfer (link valid one week):
https://we.tl/t-yL5rE8grUk (31MB zip file)
Expected behavior
This script should save an image of the UK in subdirectory ./imgs. It works under SatPy 0.36. fails with SatPy 0.37
Actual results
Screenshots
https://groups.google.com/g/pytroll/c/RHGLzoAuZjc
Environment Info:
Name Version Build Channel
satpy 0.37.0 pyhd8ed1ab_0 conda-forge
Name Version Build Channel
pyresample 1.23.0 py38h47df419_1 conda-forge
Full output of command "conda list" published on:
https://groups.google.com/g/pytroll/c/RHGLzoAuZjc
from satpy.utils import check_satpy; check_satpy()
]Additional context
Original MetopC-area.py is part of a whole distribution Kit 4.0 that includes scripts for many GEO and LEO satellites.
Whenever possible I use generate=False for speed. This has worked fine up to now and has been extensively tested.
Most code of my Kit 4.0 is in 2 modules LEOstuff.py and GEOstuff.py. I expect other sat scripts to fail now as well ...
The text was updated successfully, but these errors were encountered: