Cache not working correctly when resampling MODIS granule
@pnuu is already working on this.
Since Jun 29, 2020.
- Dominant language
- Python
- Stars
- 385
- Forks
- 102
- Avg merge
- 4d 2h
- Merged PRs (30d)
- 9
Description
Code Sample, a minimal, complete, and verifiable piece of code
from satpy import Scene
scn = Scene([inf], reader='modis_l1b')
scn.load(['27', '29', '31', '32', '33'], resolution=1000)
scn2 = scn.resample('laea_bb',
radius_of_influence=15000,
resampler='bilinear',
cache_dir='./CACHE/')
Where inf is a MODIS L1b granule. I'm using MOD021KM.A2006091.1605.061.2017263021720.hdf
Problem description
When resampling a MODIS granule onto the laea_bb area def (which is defined based on the granule itself, rather than a predefined extent) the cache_dir seems not to work. Each time I run the above code a new set of coefficients are generated in the ./CACHE/ dir rather than using the existing ones.
I expect this is due to the dynamic nature of the area definition. Maybe something with floating point precision in the extent?
Versions of Python, package at hand and relevant dependencies
Satpy: 0.22.0
Pyresample: 1.16.0
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.