This repository contains example code used to extract northern elephant seal diving and tracking data and metadata that are stored in netCDF-4 (.nc) files. Example scripts have been written for R and MATLAB. The scripts written here are not exhaustive, but meant to act as a guide for users who are unfamiliar with netCDF format files.
MATLAB has native functions for reading and building netCDF files (details here).
In R, the package ncdf4 provides functions for reading and building netCDF files.
We have provided a .pdf here that gives additional details on the contents of the files, including the global attributes (animal, deployment, and file creation metadata) and the names and organization of all groups and variables.
For additional information and documentation about netCDF files, please visit the Unidata website.
If code is not working as expected, please post an issue here. Please provide detail about the issue - what species and instrument type are you trying to work with, and what step of the process is not working.