
opendatacube/explorer
查看更多选项:
bashcubedash-gen --help
本地运行命令:
bashcubedash-run
使用WSGI服务器(如gunicorn):
bashpip install gunicorn gunicorn -b '127.0.0.1:8080' -w 4 cubedash:create_app()
运行前设置ODC环境变量:
bashexport ODC_ENVIRONMENT=staging
通过datacube system check验证连接的实例。详见ODC文档数据立方体配置与环境。
默认时区为Australia/Darwin,修改需配置:
CUBEDASH_SETTINGS指向.env.py文件,设置CUBEDASH_DEFAULT_TIMEZONE变量创建以下*.env.html文件:
全局脚本:在所有页面底部添加内容(如分析脚本)
cubedash/templates/include-global.env.html
页脚文本:添加版权声明等信息
bashecho "服务器 <strong>staging-1.test</strong>" > cubedash/templates/include-footer.env.html
(*.env.html文件会被Git忽略,用于环境特定定制)
CSS从Sass编译,JavaScript从TypeScript编译:
bashnpm install -g sass typescript
重建静态文件:
bashmake static # 重建所有静态文件 make style # 仅重建CSS make js # 仅重建JavaScript
cubedash/summary/roles目录包含Postgres角色SQL文件,为Explorer任务分配最小权限:
cubedash-view命令cubedash-gen)cubedash-gen --init)这些角色依赖数据立方体内置角色agdc_user(Postgres)或odc_user(PostGIS)。若数据立方体未配置权限,同一目录提供了角色创建前置脚本。
需安装Docker和Docker Compose。
bashmake up # 或 docker-compose up
创建ODC数据库:
bashmake initdb # 或 docker-compose exec explorer datacube system init
(需进一步添加产品和索引数据集)
bashmake index # 当ODC数据已索引后执行
bashmake test-docker # 运行所有测试 # 运行单个测试 docker-compose --file docker-compose.yml run explorer pytest integration_tests/test_dataset_listing.py
编辑.docker/settings_docker.py配置应用,然后启动:
bashdocker-compose -f docker-compose.yml -f docker-compose.override.yml up
STAC端点实现以下扩展(绑定到/search端点):
属性字段需使用properties.前缀(如properties.dea:dataset_maturity)。filter-crs仅支持[***]。






manifest unknown 错误
TLS 证书验证失败
DNS 解析超时
410 错误:版本过低
402 错误:流量耗尽
身份认证失败错误
429 限流错误
凭证保存错误
来自真实用户的反馈,见证轩辕镜像的优质服务