How to get free YouTube subscribers, likes and views?
Get Free YouTube Subscribers, Views and Likes

How to get data out of a NetCDF file using Python: depth profile

Follow
Luke Data Manager

A video tutorial showing you how to get data out of a NetCDF file using the xarray library in Python. In this example, we are looking at a depth profile of Chlorophyll A data from a CTD cast.

To download the data used in this video, go to:
https://doi.org/10.21335/NMDC124113599'>https://doi.org/10.21335/NMDC124113599

If you use these data, please cite them.Anna Vader, Rita Amundsen (2021) Chlorophyll A and phaeopigments Nansen Legacy cruise 2019711, station P2 https://doi.org/10.21335/NMDC124113599'>https://doi.org/10.21335/NMDC124113599

My previous video introducing you to NetCDF files can be found here:
   • Introducing NetCDF and the CF and ACD...  

00:00 Introduction
00:30 Importing libraries
01:11 Opening the file in Python
01:51 Overview of the data
03:47 Global attributes
05:14 Variables
06:55 Plotting data
09:01 Data to dataframe
11:05 Data to Excel or CSV
12:17 Variable attributes
13:00 Working with the data in Python
14:18 Final words

posted by Bolowiec39