我有一个用于海洋温度的NetCDF文件。它具有1个变量(“温度”)和4个维度(时间,经度,纬度和深度)。我只想提取每个时间,经度和纬度的最大深度的温度,以获得底海温度栅格砖。我愿意使用R或在终端中使用Climate Data Operators。
NetCDF文件的属性
nc_open('data.pre1980.nc') File data.pre1980.nc (NC_FORMAT_CLASSIC): 1 variables (excluding dimension variables): float temp[lon,lat,depth,time] standard_name: sea_water_temperature long_name: TEMPERATURE units: Celsius_scale _FillValue: -9.98999971057742e+33 missing_value: -9.98999971057742e+33 pointwidth: 1 4 dimensions: time Size:324 *** is unlimited *** standard_name: time units: months since 1960-01-01 calendar: 360_day axis: T lon Size:440 standard_name: longitude long_name: longitude units: degree_east axis: X lat Size:179 standard_name: latitude long_name: latitude units: degree_north axis: Y depth Size:40 units: meters axis: Z gridtype: 0 4 global attributes: CDI: Climate Data Interface version 1.9.6 (http://mpimet.mpg.de/cdi) Conventions: CF-1.6 history: Fri Aug 16 13:33:42 2019: cdo merge data.nc data.nc.1 data.nc.2 data.nc.3 data.nc.4 data.nc.5 data.pre1980.nc CDO: Climate Data Operators version 1.9.6 (http://mpimet.mpg.de/cdo)
提前致谢!