From e98dbc0bcb712e3c53d8674ce77ccbadde57b304 Mon Sep 17 00:00:00 2001 From: Jacques Grelet <jacques.grelet@ird.fr> Date: Mon, 14 Jan 2008 16:50:09 +0000 Subject: [PATCH] test de mise a dispo des variables et attributs NetCDF dans le workspace --- tsg_io/readTsgDataNetCDF.m | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tsg_io/readTsgDataNetCDF.m b/tsg_io/readTsgDataNetCDF.m index 48f56c8..83cdabd 100644 --- a/tsg_io/readTsgDataNetCDF.m +++ b/tsg_io/readTsgDataNetCDF.m @@ -166,6 +166,15 @@ tsg.SSPS_WS_QC = nc{'SSPS_WS_QC'}(:); tsg.SSPS_WS_ANALDATE = nc{'SSPS_WS_ANALDATE'}(:,:); tsg.SSPS_WS_BOTTLE = nc{'SSPS_WS_BOTTLE'}(:,:); +v=var(nc); +for i=1:length(v) + assignin('base',char(ncnames(v{i})),nc{char(ncnames(v{i}))}(:)); +end + +a=att(nc); +for i=1:length(a) + assignin('base',char(ncnames(a{i})),nc{char(ncnames(a{i}))}(:)); +end % Save the data in the application GUI % ------------------------------------ -- GitLab