帮助中心帮助中心
设置 netCDF 库的默认块缓存设置
netcdf.setChunkCache(csize,nelems,premp)
示例
netcdf.setChunkCache(csize,nelems,premp) 设置 netCDF 库所使用的默认块缓存设置。
csize
nelems
premp
设置适用于 MATLAB® 会话其余部分的后续文件打开和创建操作。该函数不会更改已打开的文件的块缓存设置。
全部折叠
设置 netCDF 库的默认块设置。
netcdf.setChunkCache(3.2e7,2003,0.75)
以字节为单位的缓存大小,指定为正整数标量。此值表示原始块数据缓存的总大小(以字节为单位)。
数据类型: double
double
要保留在原始块数据缓存中的元素数,指定为正整数标量。
抢占策略,指定为范围 [0, 1] 内的标量值。0 值表示将完全读取的块视同于其他块,即:抢占是基于最近最少使用 (LRU) 算法。值为 1 表示完全读取的块始终优先于其他块。
此函数对应于 netCDF 库 C API 中的 nc_set_chunk_cache 函数。
nc_set_chunk_cache
在 R2011b 中推出
netcdf.getChunkCache
您点击的链接对应于以下 MATLAB 命令:
请在 MATLAB 命令行窗口中直接输入以执行命令。Web 浏览器不支持 MATLAB 命令。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office