Closed WxmanJ closed 6 years ago
You need to resample the bands to the same resolution. To keep the same projection you can use the native resample:
new_scn = scn.resample(resampler='native')
Thank you, David. That fixed the issue.
Trying to create a full disk image seems almost impossible due to file size. Is there any way to reduce it without impacting resolution? I know switching the file format can lower it, but it is still pretty extreme.
You have a couple, but not many, options. I know you said without impacting resolution but the easiest solution is to use the 1km resolution of the full disk instead of the 500m resolution. You can do this by doing:
new_scn = scn.resample(scn.min_area(), resampler='native')
This is picking the lowest resolution out of the currently loaded datasets. So if you are loading more than true_color you will get 2km resolution for normal abi_l1b data.
Your next option is to compress your geotiffs and optionally tile them for even better compression. It has been a while since I've done this but you should be able to accomplish by playing with the TILED
/BLOCKXSIZE
/BLOCKYSIZE
options from gdal (which satpy and rasterio are using under the hood, https://www.gdal.org/frmt_gtiff.html). You should be able to pass these to save_dataset
or save_datasets
by doing:
new_scn.save_datasets(..., tiled='YES', blockxsize=2048, blockysize=2048, compress='LZW')
If I recall correctly we default to DEFLATE
compression which should be giving the best/smallest results. @mraspaud can correct me if I'm wrong.
@WxmanJ any update on this? Did this help?
I'm going to consider this solved. If you are still having issues feel free to reopen.
Describe the bug Receiving a no dataset matching error.
To Reproduce
Expected behavior Generate a true color image from the 3 ABI channels (1-3). The Test folder contains a file from each channel at the same time. They are all level1b radiance.
Actual results
Screenshots If applicable, add screenshots to help explain your problem.
Environment Info: