ncks

Hyperslab of a 4D netcdf variable using ncks

风流意气都作罢 提交于 2019-12-25 01:03:10
问题 I have a large large netcdf file, of which I only need certain data. Therefore, I want to create a subdivision of this netcdf file using ncks. The netcdf file is as following: Source: F:\LECOB\Model\20091208_195356.nc Format: 64bit Global Attributes: Model = 's26.bobshelf.20141113' Title = 'S-NWM_BiP' Dimensions: ni_t = 682 nj_t = 712 nk_t = 29 time = 1 (UNLIMITED) ni_w = 682 nj_w = 712 nk_w = 30 ni_u = 681 nj_u = 712 nk_u = 29 ni_v = 682 nj_v = 711 nk_v = 29 ni_f = 681 nj_f = 711 nk_f = 29

NCO: Extract a variable from NetCDF file using NCO ncks

坚强是说给别人听的谎言 提交于 2019-12-12 14:06:36
问题 I am trying to extract a variable from a multi-variable netcdf file, by entering the command: ncks -v ta temp1.nc out.nc However then I look at the out.nc header, all the variables are still there. The headers of both temp1.nc and out.nc are below: --- temp1.nc header --- dimensions: time = UNLIMITED ; // (124 currently) lon = 256 ; bnds = 2 ; lat = 128 ; lev = 40 ; variables: double time(time) ; time:standard_name = "time" ; time:long_name = "time" ; time:units = "days since 1850-1-1" ; time