From: Ali Mirzaei on
I am attempting to extract some data from a netcdf file and save them in ascii file to input them to SWAN(wave model). The data I have is downloaded from NOAA website which are u and v components of wind (uwnd.nc, vwnd.nc). I open the netcdf file by getnc as:

x.change_miss=1
Uwind=getnc('uwnd.nc','uwnd',x);
Vwind=getnc('vwnd.nc','vwnd',x);

Then when I want to save them in ascii format I get this error:

Warning: Attempt to write an unsupported data type to an ASCII file.
Variable 'Uwind' not written to file.
and also ;

Warning: Attempt to write an unsupported data type to an ASCII file.
Variable 'Vwind' not written to file.

any recommendation is highly appreciated.

Thanks
From: Ashish Uthama on
On Mon, 04 Jan 2010 05:03:03 -0500, Ali Mirzaei <mirzaee1802(a)gmail.com>
wrote:

> I am attempting to extract some data from a netcdf file and save them in
> ascii file to input them to SWAN(wave model). The data I have is
> downloaded from NOAA website which are u and v components of wind
> (uwnd.nc, vwnd.nc). I open the netcdf file by getnc as:
>
> x.change_miss=1
> Uwind=getnc('uwnd.nc','uwnd',x);
> Vwind=getnc('vwnd.nc','vwnd',x);
>
> Then when I want to save them in ascii format I get this error:
>
> Warning: Attempt to write an unsupported data type to an ASCII file.
> Variable 'Uwind' not written to file. and also ;
>
> Warning: Attempt to write an unsupported data type to an ASCII file.
> Variable 'Vwind' not written to file. any recommendation is highly
> appreciated.
>
> Thanks

What are Uwind and Vwind? I am guessing they are structures. Inspect these
two variables and save only the numerical part directly (help save).
 | 
Pages: 1
Prev: Pre-emphasis FIR filter!
Next: CRLB