Fwd: Re: plotting correct depth/lat - not points

From: Michael Hemming <michael.hemming_at_nyahnyahspammersnyahnyah>
Date: Tue May 27 2014 - 07:40:51 MDT

Is it an attribute problem? (i.e. the fill value is missing?) I tried to
use:

a = getfilevaratts(data,"slp")

but it gave:

Variable: amoca
Type: string
Total Size: 8 bytes
             1 values
Number of Dimensions: 1
Dimensions and sizes: [1]
Coordinates:
Number Of Attributes: 1
   _FillValue : missing
(0) missing

-------- Original Message --------
Subject: Re: [ncl-talk] plotting correct depth/lat - not points
Date: Mon, 26 May 2014 15:19:24 +0200
From: Michael Hemming <michael.hemming@mpimet.mpg.de>
To: ncl-talk@ucar.edu Talk <ncl-talk@ucar.edu>

*I printed the variable:*
/
//Number of global attributes: 2//
//Number of Dimension: 3//
//Number of variables: 4/

*res looks like:*

/res = True//
//res@tiMainString = "Sea water potential temperature
(Deg C) with depth"//
////
//res@gsnSpreadColors = True//
//res@cnFillOn = True//
//res@cnLinesOn = False//
//res@trYReverse = True/

thanks,
Michael

On 26/05/2014 14:34, Dennis Shea wrote:
> ferret must be getting information from somewhere.
> There is too little information in your post to
> provide an answer.
>
> ---
>
> What meta data is associated with the variable 'a' ?
>
> printVarSummary(a)
>
> What does 'res' look like?
>
> ---
>
>
> On 5/26/14, 4:30 AM, Michael Hemming wrote:
>> Hey everyone,
>>
>> I have a netcdf file that looks like this:
>>
>> AMOC: j x k = 180 x 21 = lat x depth (curvilinear grid)
>>
>> I want to create a contour plot that shows AMOC values with depth,
>> however, when I try to do this, it plots lat as 1:180 and depth as 1:21.
>> When using Ferret, I get the correct lat and depth values automatically
>> shown.
>>
>> So my question is: how can I make ncl do what ferret does?
>>
>> after loading in the data and assigning the variable etc... I use:
>>
>>
>> /wks = gsn_open_wks("x11", "AMOC_plot")//
>> //gsn_define_colormap(wks,"B1WhRe")//
>> ////
>> //plot = gsn_csm_contour(wks,a,res)/
>>
>>
>>
>> thanks,
>> Michael
>>
>>
>>
>>
>> _______________________________________________
>> 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 Tue May 27 07:41:18 2014

This archive was generated by hypermail 2.1.8 : Tue May 27 2014 - 15:45:08 MDT