-
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
"Manual" application of corrections #323
Comments
I thought this was possible, but apparently it's broken right now. In principle, you would need to create a specific DatasetID instance to load your data. Eg: from satpy import DatasetID
dsid = DatasetID(name='VIS006', modifiers=('sunz_corrected'))
from satpy import Scene
from glob import glob
scn = Scene(sensor="seviri",
filenames=glob(
"/home/a001673/data/satellite/Meteosat-11/seviri/lvl1.5/2018/02/28/HRIT/*"),
reader='hrit_msg',
)
scn.load(dsid) @djhoese any clue why this crashes ? |
@marfel also, since version 0.9.0 we will be using dask arrays (lazy computation) so the corrections will not be computed everywhere in principle. You can try out the alpha (almost beta) 0.9.0 by cloning the master branch from this github repo. |
Thanks! In fact I already did that. Right now learning a lot about dask and xarray... |
@mraspaud How does it crash? Traceback? Also why do you provide 'sensor' to the Scene? |
WFM with ABI L1B C01 doing:
And yes the sunz corrector is executed. |
No luck with the
|
I'm looking at
|
@marfel I talked with @mraspaud on slack and we figured out the issue he was having, but the way he suggested doing this is correct:
NOTE the command after `sunz_corrected' to make the modifiers argument a tuple. |
@marfel Could you show me the code that produced that error message? Specifically what is |
from satpy import Scene, DatasetID
from glob import glob
basename = '/geo/MSG/offline/MSG3-SEV/2015/08/01/*2015080115*.nat'
dsid = DatasetID(name='VIS006', modifiers=('sunz_corrected',))
files = glob(basename)
for msgfile in files:
scn = Scene(reader="native_msg", filenames=[msgfile])
scn.load(dsid) |
@mraspaud Are you able to produce anything like this with the data files you have? |
If you wish I can upload the |
@sjoro might be better equiped, but I'll try with what I have |
@marfel it should be |
haha... that's a classic m-) Now it works. |
Is your feature request related to a problem? Please describe.
Maybe I'm missing something here, in which case I apologize. But it seems to me I cannot simply
Describe the solution you'd like
See above.
Describe any changes to existing user workflow
I don't know satpy well enough to comment on that.
Additional python or other dependencies
No.
Describe any changes required to the build process
I think none.
Describe alternatives you've considered
Right now, as a workaround I load a composite the prerequisites of which include the desired corrections, then I
resample
withgenerate=False, unload=False
. Then I save the corrected and remapped datasets. This seems pretty whacky...I could perhaps also write a compositor which does nothing except the corrections, but again this would be unclean because I am not aiming for a composite, simply for corrected channels.
Additional context
A potential performance issue with the current workaround might be that the corrections right now are applied during
load
, i.e. on the full scene, even if my target area is very small.The text was updated successfully, but these errors were encountered: