Please someone correct me if I am wrong because I am no expert, but I
don't believe strings are a data type supported by netCDF files. This
dates back to FORTRAN not accepting variable-length character strings.
What you need to do is translate the string into an array of character
values and then output that array to the netCDF file.
Hope this helps,
Kyle Wilcox
kyle.wilcox_at_noaa.gov
Jax (Guangxia) Cao wrote:
> Hi,
>
> I have used the following to write numerical arrays to netcdf and was
> successful,
> ......
> a=addfile(fname, "c")
> a->lwu10m = w10
> a->lwulow = wlw
> ....
>
> I tried similiar to write string arrays to the netcdf output
> but failed and I approached other ways but not successful. I would
> appreciate any suggestion.
>
> Thanks.
>
> Jax
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk_at_ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed Jul 12 2006 - 06:43:21 MDT
This archive was generated by hypermail 2.2.0 : Thu Jul 13 2006 - 09:59:49 MDT