Re: Problem with procedure write_table

From: Wei Huang <huangwei_at_nyahnyahspammersnyahnyah>
Date: Sun Oct 13 2013 - 19:12:43 MDT

Sven,

Please read the NCL document carefully, and check the example:
http://www.ncl.ucar.edu/Document/Functions/Built-in/write_table.shtml

It clearly tells you that there is a type mismatch, and argument 2 should
be the "w" for write (create a file), to "a" for append (to an existing file).

Wei

huangwei@ucar.edu
VETS/CISL
National Center for Atmospheric Research
P.O. Box 3000 (1850 Table Mesa Dr.)
Boulder, CO 80307-3000 USA
(303) 497-8924

On Oct 13, 2013, at 4:41 AM, Sven Eiermann <sven.eiermann@gmail.com> wrote:

> Hello everyone,
>
> when trying to write a string variable to a file with write_table I always get this error:
>
> >> fatal:Argument type mismatch on argument (2) of (write_table) can not coerce <<
>
> I think its occurring because the variable I try to write has to much metadata.
> Here is the output of printVarSummary(soil_moisture_string) where "soil_moisture_string" is the variable I want to write to a file with write_table:
>
> >> Variable: soil_moisture_string
> Type: string
> Total Size: 4 bytes
> 1 values
> Number of Dimensions: 1
> Dimensions and sizes: [1]
> Coordinates:
> Number Of Attributes: 0 <<
>
> I guess the error I mentioned above is because of the "Number of Attributes: 0" in the metadata of the variable(?).
>
> Is there a way to avoid this error by deleting this kind of metadata or something similar?
>
> Any help is much appreciated!
> Thank you in advance!
>
> Sven
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Sun Oct 13 19:12:52 2013

This archive was generated by hypermail 2.1.8 : Tue Oct 22 2013 - 10:35:27 MDT