I have a netcdf file structured as bellow:
File AA_14.nc (NC_FORMAT_CLASSIC):
8 variables (excluding dimension variables):
short year[time]
units: -
short doy[time]
units: days since 2008-01-01
long_name: day of year
short hour_min[time]
units: -
float seconds[time]
units: -
float Ux[time]
units: m s^-1
long_name: horizontal w in x-coordinate
float Uy[time]
units: m s^-1
long_name: horizontal w in y-coordinate
float Uz[time]
units: m s^-1
long_name: horizontal w in z-coordinate
float CO2[time]
units: mg m^-3
long_name:
1 dimensions:
time Size:3241707 *** is unlimited ***
2 global attributes:
title: data
history: 20Hz data (50ms)
In the variable "doy" I have 3 days of the year 100, 101, and 102 I would like to extract all the variables for the day of the year 101. I have tried to do it using the ncks from nco but I did not manage.
Which would be the right way to do it? Thanks.