microsoft / PlanetaryComputerExamples

Examples of using the Planetary Computer
MIT License
366 stars 179 forks source link

noaa-nclimgrid example notebook #215

Closed pholleway closed 1 year ago

pholleway commented 1 year ago
TomAugspurger commented 1 year ago

Thanks!

I'm seeing some strange data when I run this on the (staging) Hub. Here's the first plot.

image

Where did you run this? I'm wondering if it could be a version issue.

pholleway commented 1 year ago

Thanks!

I'm seeing some strange data when I run this on the (staging) Hub. Here's the first plot.

image

Where did you run this? I'm wondering if it could be a version issue.

@TomAugspurger That's odd! The data displays correctly for me running locally and on the hub (production). Pete mentioned it could be related to versioning of rasterio (he recommends rasterio 1.3.2) or odc (there was a recent release that may have caused issues). Here are the versions in production: image

pholleway commented 1 year ago

@TomAugspurger Note: There was a bug introduced in rasterio 1.3.0 that may be related. https://github.com/rasterio/rasterio/issues/2511

TomAugspurger commented 1 year ago

Yep, that's probably it. I'm on 1.3.0. I'm planning to update the container images this week anyway.

TomAugspurger commented 1 year ago

Thanks @pholleway, things are working with rasterio>=1.3.0.

I pushed a small change to avoid re-using the plt variable name.

pholleway commented 1 year ago

Sounds good. Thanks, @TomAugspurger.