Skip to content
Snippets Groups Projects
Commit f5b7fc44 authored by habasque's avatar habasque
Browse files

modif

parent 5418c0cd
No related branches found
No related tags found
No related merge requests found
...@@ -124,14 +124,14 @@ rmpath('.\moored_adcp_proc'); ...@@ -124,14 +124,14 @@ rmpath('.\moored_adcp_proc');
clear all; close all; clear all; close all;
%% Write netcdf file %% Write netcdf file
[yr_start , ~, ~] = gregorian(inttim(1)); [yr_start , ~, ~] = gregorian(down_time(1));
[yr_end, ~, ~] = gregorian(inttim(length(inttim))); [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'); ncid=netcdf.create([fpath_output,'ADCP_',mooring.name, '_',num2str(yr_start),'_',num2str(yr_end),'_1d.nc'],'NC_WRITE');
%create dimension %create dimension
dimidt = netcdf.defDim(ncid,'time',length(inttim)); dimidt = netcdf.defDim(ncid,'time',length(down_time));
dimidz = netcdf.defDim(ncid,'depth',length(Z)); dimidz = netcdf.defDim(ncid,'depth',length(z_final));
%Define IDs for the dimension variables (pressure,time,latitude,...) %Define IDs for the dimension variables (pressure,time,latitude,...)
time_ID=netcdf.defVar(ncid,'time','double',dimidt); time_ID=netcdf.defVar(ncid,'time','double',dimidt);
depth_ID=netcdf.defVar(ncid,'depth','double',dimidz); depth_ID=netcdf.defVar(ncid,'depth','double',dimidz);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment