Read netCDF files

版本 1.0.0.0 (8.5 KB) 作者: M Sohrabinia
Reads netCDF data for given fields from a list of given files
723.0 次下载
更新时间 2013/5/22

查看许可证

Description: This function can be called with no input arguments, in which
case the inputs will be asked interactively from the user via GUI. Or, the function can be called with the name of one of its subroutines as the first argument and the required inputs of that subroutine as the following arguments. Eash of these subrountines can be used specifically to do a certain task on netCDF files. These subroutines can be called as below with their required inputs and outputs.

Subroutines: 'ncglobalattrs','findncindexes','ncseries','ncgrid'

[ncAllVars globalAttrs resol vNames XLAT XLONG]= readncfiles('ncglobalattrs', ncid)
[X_idx Y_idx pointsLatLon]= readncfiles('findncindexes', resol,XLAT,XLONG,matxls)
[ncOut]= readncfiles('ncseries',ncPath,ncFiles,vID,leveL,t,diM, tOffset,pointsLatLon)
[ncOut]=readncfiles('ncgrid',ncPath,ncFiles,vID,leveL,t,diM)

Notes:
1. This function is tested only with the WRF model's netcdf outputs.

2. The main function needs GUI so it cannot be called from Linux commandline (unless slightly modified to accept the inputs via function variable passing). However, the subroutines can be called silently without the need for GUI.

引用格式

M Sohrabinia (2024). Read netCDF files (https://www.mathworks.com/matlabcentral/fileexchange/41880-read-netcdf-files), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2011b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 NetCDF 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0.0