In this video, we will open a NetCDF file in Python, understand what is inside, and learn to read the data and metadata.
# Chapters
00:00 Introduction to the course
02:11 Installing and importing modules
03:41 Opening a NetCDF file with xarray
04:35 Introducing OPeNDAP
05:31 Understanding the contents of a NetCDF file
07:20 Global attributes (metadata describing the whole file)
09:47 Attribute Convention for Data Discovery (ACDD)
10:34 The Climate & Forecast Conventions (CF)
11:44 Dimensions
12:24 Coordinate variables
12:52 Data variables
# How to cite this video
If you think this course contributed to the work you are doing, consider citing it in your list of references. Here is a recommended citation:
*Marsden, L.* (2024, April 19). NetCDF in Python - from beginner to pro. Zenodo. https://doi.org/10.5281/zenodo.10997447
# All videos in this course:
01: https://youtu.be/699jkjLJGyM
02: https://youtu.be/67EPSK7VKC4
03: https://youtu.be/rgBqsqwvvcc
04: https://youtu.be/a5QvdSffqrM
05: https://youtu.be/1D6yc-R9abU
06: https://youtu.be/TjL23unMMWI
07: https://youtu.be/AbLRV5YUW2g
# The code
This tutorial series is accompanied by a Jupyter Book with code, explanations and more examples. You can find the relevant section here:
https://nordatanet.github.io/NetCDF_in_Python_from_beginner_to_pro/01_opening_and_understanding.html
# Data used in this tutorial:
*Elizabeth Jones* (2022) CTD data from Nansen Legacy Cruise - Joint cruise 2-1 Station: P1_NLEG01-1 https://doi.org/10.21335/NMDC-2085836005-P1_NLEG01-1
OPeNDAP link: https://opendap1.nodc.no/opendap/physics/point/cruise/nansen_legacy-single_profile/NMDC_Nansen-Legacy_PR_CT_58US_2021708/CTD_station_P1_NLEG01-1_-_Nansen_Legacy_Cruise_-_2021_Joint_Cruise_2-1.nc
# Useful links
Climate and Forecast (CF) conventions: https://cfconventions.org/
CF standard names: https://cfconventions.org/Data/cf-standard-names/current/build/cf-standard-name-table.html
Attribute Convention for Data Discovery: https://wiki.esipfed.org/Attribute_Convention_for_Data_Discovery_1-3
NetCDF compliance checker: https://compliance.ioos.us/index.html