首页 > 解决方案 > 使用 xarray/other 库在 netcdf 文件中组合时间维度

问题描述

我有一个多维的 netcdf 文件:

forecast_initial_time 是 0600 UTC 和 1800 UTC forecast_hour 是从 1 到 12。

因此,如果 forecast_initial_time = 0600 和 forecast_hour = 2,它代表 0800 UTC。

  1. 我想将(forecast_initial_time 和 forecast_hour)转换为时间(0000 UTC 到 2300 UTC)。(通常遵循标准的 netcdf 甲酸盐时间,经纬度)
  2. 计算每日平均值(我在 xarray 中执行此操作,但需要一个 deltatime 函数)。
  3. 计算 12 小时的平均值。

谢谢你的帮助。

文件是 https://drive.google.com/drive/folders/1v2oQ3aFOiqlBu7U78om1jQKeIAFXEGXq

标签: pythonnetcdfpython-xarraycdo-climate

解决方案


推荐阅读