This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Hello! Seems like you're headed in the right direction. You can accomplish your work using either NetCDF4-python or xarray. NetCDF4-python will just take a NetCDF file and give you NumPy arrays for you to run with on your own. xarray is based on the NetCDF data model, still relies on NumPy, and allows you to keep your data tied to its important coordinate and dimension information. You might find that it a bit more user-friendly and plug-and-play with other projects in the scientific Python ecosystem, or it might include helpful functionality for you out-of-the-box. Some of MetPy's most advanced functionality is based on xarray! I, personally, would focus my efforts on learning to use xarray and take advantage of some of its advanced features. If you're already comfortable with doing heavy lifting while relying only on NumPy arrays, you might not need it. It's up to you! All the best, Drew > I think I maybe need to look at xarrays (per Metpy Monday's) to answer some > of this question. > > I still wonder if I should be focused on using NetCDF or xarray's going forth. > Ticket Details =================== Ticket ID: UYP-411125 Department: Support Python Priority: Low Status: Closed =================== NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.