Fwd: SkewT Plot Error

From: Phillip Stauffer <phillip.stauffer_at_nyahnyahspammersnyahnyah>
Date: Fri Dec 14 2012 - 11:00:29 MST

Forgot to add to the list

---------- Forwarded message ----------
From: Phillip Stauffer <phillip.stauffer@gmail.com>
Date: Fri, Dec 14, 2012 at 10:57 AM
Subject: Re: SkewT Plot Error
To: Tracy Emerson <temerson@ucar.edu>

Hi Tracy,

The skewty() function is looking for a variable type of float. Your data is
double.

You can use tofloat() to change them:

  p = tofloat(f->air_pressure) ;hPa
  t = tofloat(f->air_temperature) ;C
  td = tofloat(f->dew_point_temperature) ;C
  z = tofloat(f->altitude) ;m

Hope that helps,

Phillip

On Fri, Dec 14, 2012 at 10:24 AM, Tracy Emerson <temerson@ucar.edu> wrote:

> Hello,
>
> I am trying to plot a single sounding and I am stuck on an error that I
> can't figure out. (I've plotted a sounding from wrf output that worked just
> fine, but now I am trying to plot the observed sounding)
>
> The error:
> fatal:Argument type mismatch on argument (0) of (skewty) can not coerce
> fatal:Execute: Error occurred at or near line 762 in file
> $NCARG_ROOT/lib/ncarg/**nclscripts/csm/skewt_func.ncl
>
> Looking at the line in the skewt_func.ncl where the error occurs didn't
> help me.
>
> Attached is a simple ncl script and the data can be found here if needed
> ftp://ftp.eol.ucar.edu/pub/**temp/users/temerson/<ftp://ftp.eol.ucar.edu/pub/temp/users/temerson/>
>
> Thanks,
> Tracy
>
> _______________________________________________
> 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 Fri Dec 14 11:00:41 2012

This archive was generated by hypermail 2.1.8 : Fri Dec 21 2012 - 10:43:23 MST