python - 使用 xarray/other 库在 netcdf 文件中组合时间维度
问题描述
我有一个多维的 netcdf 文件:
- 预测初始时间
- 预测小时
- 纬度
- 经度
- 多变的
forecast_initial_time 是 0600 UTC 和 1800 UTC forecast_hour 是从 1 到 12。
因此,如果 forecast_initial_time = 0600 和 forecast_hour = 2,它代表 0800 UTC。
- 我想将(forecast_initial_time 和 forecast_hour)转换为时间(0000 UTC 到 2300 UTC)。(通常遵循标准的 netcdf 甲酸盐时间,经纬度)
- 计算每日平均值(我在 xarray 中执行此操作,但需要一个 deltatime 函数)。
- 计算 12 小时的平均值。
谢谢你的帮助。
文件是 https://drive.google.com/drive/folders/1v2oQ3aFOiqlBu7U78om1jQKeIAFXEGXq
解决方案
推荐阅读
- salesforce - Devart 实体开发人员看不到某些选项列表字段
- django - Django 2.0 重定向与 kwargs
- c++ - `dlopen`'ing a .so 包含符号会导致未定义的符号
- javascript - 解析 JSON 应该是客户端的责任还是服务器的责任?
- mysql - 启动连接到 mysql rds 时出现 hive 3.1 Metastore 错误
- css - SVG 到字体 (IcoMoon) 创建多个路径
- python - Flask Session 的用户注册功能
- jenkins - 当我想在特定的从代理上完成工作时,我应该为 jenkins 使用哪种项目类型?
- php - 如何使用PHP与一键部署的谷歌云wordpress数据库通信
- javascript - 我是 Photoshop 脚本初学者。想请教大家怎么替换文字图层