extracting variable for specific time from netCDF
1 view (last 30 days)
Show older comments
Tanziha Mahjabin on 29 Jan 2020
I want to cut some time from a bid data, using ncread(source,varname,start,count).
for your information,
long_name = 'Standard deviation of sea water velocity U component values in 1 hour.'
units = 'm s-1'
valid_min = -10
valid_max = 10
cell_methods = 'TIME: standard_deviation'
coordinates = 'TIME LATITUDE LONGITUDE'
_FillValue = 999999
ancillary_variables = 'NOBS1 NOBS2 UCUR_quality_control'
Now if i write, u=ncread(ncfile,'UCUR',[1 1 1],[Inf Inf 44931]); it takes the command as the start time is from the start.
But what should i write if i want cut the time from somewhere middle?
I tried to define index,
u=ncread(ncfile,'UCUR',[1 1 ind],[Inf Inf 44931]);
But it is not working. Any helpful suggestion please.
Find more on Weather and Atmospheric Science in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!