Comparing two NetCDF files

버전 1.1.0.0 (13.1 KB) 작성자: Durga Lal Shrestha
nccmp compares two NetCDF files
다운로드 수: 386
업데이트 날짜: 2014/9/16

라이선스 보기

NCCMP compares two netcdf files and prints the differences. This function is useful for testing mathematical forecasting or prediction models.

USAGE:
NCCMP(ncfile1,ncfile2)
NCCMP(ncfile1,ncfile2,tolerance,forceCompare)

INPUT:
ncfile1 - name of the NetCDF file to compare
ncfile2 - name of the NetCDF file to compare
tolerance - Compare numeric data using a tolerance threshold
forceCompare - if false, exit when first difference is found
true: continues to process all variables

EXAMPLES:
nccmp('old.nc','new.nc',0.000001)
nccmp('old.nc','new.nc',[],true)

FEATURES:
1. Print the differences and their locations
2. Exits when first difference is found or optionally continues to process all variables
3. User defined tolerance threshold to compare the variables

TO DO:
1. Specific variable inclusion or exclusion
2. Specific attribute inclusion or exclusion
3. Option to ignore the history attribute
4. Ignore difference between values that have different missing values etc

인용 양식

Durga Lal Shrestha (2024). Comparing two NetCDF files (https://www.mathworks.com/matlabcentral/fileexchange/47857-comparing-two-netcdf-files), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2014a
모든 릴리스와 호환
플랫폼 호환성
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.1.0.0

1. Remove dependency of third party function by adding internal ind2sub1 function
2. Formatting the texts

1.0.0.0