[ncl-talk] Fw: plot error
Toni Klemm
toni-klemm at tamu.edu
Thu Sep 13 06:43:46 MDT 2018
Elham,
You’re referencing the attribute “units”, not “long_name”:
> res at gsnRightString=data_hdf4 at units
But apparently your variable doesn’t have a “units” attribute. That’s what the error is saying:
> warning:Attempt to reference attribute (units) which is undefined
Try changing it to:
> res at gsnRightString=data_hdf4 at long_name
Depending on what you’re trying to reference, you also write it in you script manually:
> res at gsnRightString=“XYZ”
I hope that helps!
Toni
Toni Klemm, Ph.D.
Postdoctoral Research Associate
Department of Ecosystem Science and Management
College of Agriculture and Life Sciences
Texas A&M University, College Station, TX
Contributor to the Early Career Climate Forum
www.toni-klemm.de | @toniklemm
> On Sep 13, 2018, at 3:03 AM, Elham Ghasemifar <elham.ghasemifar at modares.ac.ir> wrote:
>
>
>
>
> From: Elham Ghasemifar
> Sent: Thursday, September 13, 2018 12:33 PM
> To: ncl-talk at ucar.edu
> Subject:
>
> Dear colleges
>
> hello
>
> i dont know why the error has occured, because i defined the long-name , could you please help me?
>
>
> res at gsnRightString=data_hdf4 at units
> warning:Attempt to reference attribute (units) which is undefined
> res at sfXArray = conform(data_plt, time, 1)
> res at sfYArray = lev(nbin_2B_GEOPROF|:,nray_2B_GEOPROF|:)
> res at trGridType = "Triangularmesh"
> plot=gsn_csm_contour(xwks, data_plt, res)
> warning:ContourPlotInitialize: no valid values in scalar field; ContourPlot not possible:[errno=1101]
> stop record
> quit
>
>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180913/994c8c22/attachment.html>
More information about the ncl-talk
mailing list