Comments (3)
from stackstac.
Thanks, @TomAugspurger--I just figured this out. Yes, collection names have also changed:
list(
pystac_client.Client.open(
"https://earth-search.aws.element84.com/v1"
).get_children()
)
Gives:
[<CollectionClient id=cop-dem-glo-30>,
<CollectionClient id=naip>,
<CollectionClient id=sentinel-2-l2a>,
<CollectionClient id=sentinel-2-l1c>,
<CollectionClient id=landsat-c2-l2>,
<CollectionClient id=cop-dem-glo-90>,
<CollectionClient id=sentinel-1-grd>]
Looking at the sentinel-2-l2a
collection shows they are cogs for each band, etc. Modifying the url and collection seems to work:
import stackstac
import pystac_client
URL = "https://earth-search.aws.element84.com/v1"
catalog = pystac_client.Client.open(URL)
stac_items = catalog.search(
intersects=dict(type="Point", coordinates=[-105.78, 35.79]),
collections=["sentinel-2-l2a"],
datetime="2020-04-01/2020-05-01"
).get_all_items()
stack = stackstac.stack(stac_items)
print(stack)
![Screenshot 2023-09-19 at 7 47 34 AM](https://private-user-images.githubusercontent.com/3171991/268978113-a7981145-7c8d-466d-8369-6b375335d6b5.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjEzNzkzMzUsIm5iZiI6MTcyMTM3OTAzNSwicGF0aCI6Ii8zMTcxOTkxLzI2ODk3ODExMy1hNzk4MTE0NS03YzhkLTQ2NmQtODM2OS02YjM3NTMzNWQ2YjUucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcxOSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MTlUMDg1MDM1WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MDFjOGJmMTM1ZDhlYjJhYWI0NzgzZTQyOTJkYjQzOGQzM2ViYmUwYjJjMDBmYzdmNGM4YzYzMzI5MzVmMjcwMCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.RbVCamoKCaHemmbT0Kkit_6KPlx8n-Z7nbRke2BGzy0)
from stackstac.
@ljstrnadiii interestingly, I don't get this error with older versions of pystac-client. Thanks for the catch, we might as well use the newer endpoint anyway.
from stackstac.
Related Issues (20)
- Only support pystac? HOT 1
- Slicing KeyError HOT 2
- High RAM use during stackstac.stack(items, epsg=item_crs) HOT 2
- Basic example SSLCertVerificationError HOT 12
- Accessing VZA and SZA bands? HOT 1
- Error for assests with multiple bands is not raised correctly
- Stack Contains NaT in Time Field HOT 6
- Dimension names from cube:dimensions HOT 1
- NetCDF Time Dimension HOT 1
- Create stac objects from stackstac xarray HOT 1
- Error using .sel on time index if timestamp not in np.datetime64
- Stackstac 0.5.0 produces bad pixel values for Sentinel-2 HOT 5
- 'bounds' is messing up the x, y coordinnates
- "errors_as_nodata" not working correctly HOT 1
- Could logging be disabled for skipping VRT
- Stacking local assets - slow performance
- Handle empty input better
- issue with numpy 2.0.0
- can_cast throws error with numpy 2.0.0
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stackstac.