microsoft / microsoft/PlanetaryComputerExamples

module 'pystac_client' has no attribute 'ItemCollection'

未关闭
#288 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
Jupyter Notebook
星标
455
派生
225
PR 合并指标
30 天内没有已合并 PR

描述

Hi

I run this example https://planetarycomputer.microsoft.com/docs/tutorials/cloudless-mosaic-sentinel2/
and i found following error:


AttributeError Traceback (most recent call last)
Cell In[23], line 1
----> 1 signed_items = pystac_client.ItemCollection([
2 planetary_computer.sign_assets(item) for item in items
3 ])
4 #print(signed_items)
5 data = (
6 stackstac.stack(
7 items,
(...)
13 .assign_coords(band=lambda x: x.common_name.rename("band")) # use common names
14 )

AttributeError: module 'pystac_client' has no attribute 'ItemCollection'

How to solve this problem?

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

从 issue 中链接的 cloudless mosaic Sentinel-2 教程以及包含 pystac_client.ItemCollection 的 notebook 单元格开始。检查 notebook 的 imports 和已安装软件包的 API,以确定受支持的 ItemCollection 入口点,然后重新运行示例直到 stackstac 处理步骤,并确认 AttributeError 已消失。

由索引模型根据 Issue 内容生成。

评估

技术栈
jupyter-notebook, python
领域
data, documentation
Issue 类型
缺陷
难度
2/5
预计耗时
1-3 小时
活跃度
停滞
描述清晰度
基本清楚
新手友好度
38/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。