Compare the structure of two netCDF files at the command line

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
Post Reply
ASDC - ingridgs
Subject Matter Expert
Subject Matter Expert
Posts: 168
Joined: Fri Apr 23, 2021 9:14 am America/New_York
Answers: 1
Has thanked: 17 times
Been thanked: 7 times

Compare the structure of two netCDF files at the command line

by ASDC - ingridgs » Tue Sep 26, 2023 10:57 am America/New_York

"ncompare" tool: Problem:
When creating or modifying Network Common Data Form (netCDF) files, there is often a need to evaluate the differences between an original, unmodified file and a new, modified file. In these cases, one often finds themselves manually opening each file and inspecting its contents to determine whether there are or are not differences in the structure and shapes of groups and variables.

Brief Description:
`ncompare` compares the structure of two Network Common Data Form (netCDF) files at the command line. It facilitates rapid comparisons by generating a formatted display of the matching and non-matching groups, variables, and associated metadata between two netCDF datasets. The user can colorize the terminal output for ease of viewing. As an option, `ncompare` can save comparison reports in text and/or comma-separated value (CSV) formats.

%22ncompare%22.jpeg
%22ncompare%22.jpeg (47.45 KiB) Not viewed yet

Tags:

Post Reply