Skip to content

Instantly share code, notes, and snippets.

@pastewka
Last active September 24, 2017 07:10
Show Gist options
  • Save pastewka/bce43017e0fb6b8b6cb231fc78b9417c to your computer and use it in GitHub Desktop.
Save pastewka/bce43017e0fb6b8b6cb231fc78b9417c to your computer and use it in GitHub Desktop.
Pick out every n-th frame from a NetCDF file
# --rad is "retain all dimensions", makes sure unused dimensions are not deleted
ncks --rad -F -d frame,1,,n input.nc output.nc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment