You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For my example I'm working, which @jtroberts helped with, I had to disable this check so my input files weren't skipped. But mrfgen seemed to work fine. My files for now are one-band grayscale instead of three-band RGB.
Some thoughts:
Is grayscale considered okay for OnEarth/mrfgen? If not, the error message could mention that.
If it is, if colormap in the mrfgen config is not set or something, assume grayscale and check that img.RasterCountis 1 (or 3 if colormap is set)
The text was updated successfully, but these errors were encountered:
I don't think we've tried one-band JPEG inputs for mrfgen. One-band grayscale PNG or TIFF inputs are okay, but not JPEG. I don't recall if there was a technical reason that it can't be supported or that we simply never came across it before. We can try removing the highlighted lines and do some testing.
Colormap is only needed when mrf_compression_type is set to "PPNG" (8-bit Palette PNGs). If you set mrf_compression_type to JPEG or PNG then it should produce a one-band grayscale MRF. What are you setting mrf_compression_type to?
Colormap is only needed when mrf_compression_type is set to "PPNG" (8-bit Palette PNGs). If you set mrf_compression_type to JPEG or PNG then it should produce a one-band grayscale MRF. What are you setting mrf_compression_type to?
onearth/src/mrfgen/mrfgen.py
Lines 1894 to 1897 in 628ccc0
For my example I'm working, which @jtroberts helped with, I had to disable this check so my input files weren't skipped. But mrfgen seemed to work fine. My files for now are one-band grayscale instead of three-band RGB.
Some thoughts:
img.RasterCount
is 1 (or 3 if colormap is set)The text was updated successfully, but these errors were encountered: