简体   繁体   English

nco使用hyperslab从netCDF中提取数据

[英]nco extracting data from netCDF with hyperslab

I have a netCDF file with ten minute resolution data. 我有一个带有十分钟分辨率数据的netCDF文件。 I would like to extract the hourly data from this and write a new netCDF file that grabs the data at the top of each hour in the original ten minute file. 我想从中提取每小时数据,然后编写一个新的netCDF文件,该文件在原始十分钟文件中的每个小时的顶部获取数据。 I think that I would do this with the ncks -d hyperslab flag but I am not entirely sure if this is the best way. 我认为我可以使用ncks -d hyperslab标志来执行此操作,但是我不确定这是否是最好的方法。

Yes, the best way is to use 是的,最好的方法是使用

ncks -d time,min,max,stride in.nc out.nc

eg, 例如,

ncks -d time,0,,6 in.nc out.nc

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM