radiantearth / stac-browser

A full-fledged UI in Vue for browsing and searching static STAC catalogs and STAC APIs
https://radiantearth.github.io/stac-browser
ISC License
287 stars 143 forks source link

Better display of multispectral / surface reflectance data #309

Open cholmes opened 1 year ago

cholmes commented 1 year ago

STAC Browser works great with visual imagery, and I think in theory it'll support full bit depth multispectral data, but on the planet open data it seems to struggle.

This 8 band planetscope image works fine on visual, but when you switch the asset to the AnalyticMS_8b_SR nothing gets displayed:

Screenshot 2023-04-19 at 9 38 45 PM

This skysat image has similar behavior for me - tested on Brave, chrome and safari. These will sometimes totally hang, displaying nothing in the tab.

Looking at the console I do see errors like: 'failed to load resource 404' on https://storage.googleapis.com/open-cogs/planet-stac/education/panama-bloom/20220310_154305_84_2402_3B_Visual.tif.ovr - but that happens on visual and analytic, so doesn't seem like the cause. Though I feel like it's weird it's trying to those? They're COG's with overviews embedded.

I've got some that display, like:

https://radiantearth.github.io/stac-browser/#/external/www.planet.com/data/stac/open-skysat-data/20201211_103040_ssc12_u0001/20201211_103040_ssc12_u0001.json?.asset=asset-analytic_sr_udm2%3Aortho_analytic_sr But the display is still off:

Screenshot 2023-04-19 at 9 43 07 PM

It does seem like with band info and stats it should be able to display a bit better?

m-mohr commented 1 year ago

Yes, this is an issue, but it's not a STAC Browser issue but a stac-layer issue. We should transfer this issue over to stac-layer. It could be that this is already solved in the stac-js rewrite of stac-layer, I need to check this later.

m-mohr commented 1 year ago

Copied to https://github.com/stac-utils/stac-layer/issues/62