From f5b7fc4476b7598cf1fb16101b27d12910f360ff Mon Sep 17 00:00:00 2001 From: habasque <jeremie.habasque@gmail.com> Date: Thu, 4 May 2017 15:07:52 +0200 Subject: [PATCH] modif --- template_combine_adcp_up_and_down.m | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/template_combine_adcp_up_and_down.m b/template_combine_adcp_up_and_down.m index 63fe098..09b3430 100644 --- a/template_combine_adcp_up_and_down.m +++ b/template_combine_adcp_up_and_down.m @@ -124,14 +124,14 @@ rmpath('.\moored_adcp_proc'); clear all; close all; %% Write netcdf file -[yr_start , ~, ~] = gregorian(inttim(1)); -[yr_end, ~, ~] = gregorian(inttim(length(inttim))); +[yr_start , ~, ~] = gregorian(down_time(1)); +[yr_end, ~, ~] = gregorian(down_time(length(down_time))); ncid=netcdf.create([fpath_output,'ADCP_',mooring.name, '_',num2str(yr_start),'_',num2str(yr_end),'_1d.nc'],'NC_WRITE'); %create dimension -dimidt = netcdf.defDim(ncid,'time',length(inttim)); -dimidz = netcdf.defDim(ncid,'depth',length(Z)); +dimidt = netcdf.defDim(ncid,'time',length(down_time)); +dimidz = netcdf.defDim(ncid,'depth',length(z_final)); %Define IDs for the dimension variables (pressure,time,latitude,...) time_ID=netcdf.defVar(ncid,'time','double',dimidt); depth_ID=netcdf.defVar(ncid,'depth','double',dimidz); -- GitLab