Cut a time period from netCDF with nco

This post was originally published here

ncks -d time,start_time,end_time in.nc out.nc

start_time and end_time are integers.

Add -F, if you want to use Fortran indexing (to start from 1).

No space between dimension name and start-end points!

Leave a Reply

Your email address will not be published. Required fields are marked *