Format for high and low center value

From: Li, Yongzuo <yongzuo.li_at_nyahnyahspammersnyahnyah>
Date: Mon May 02 2011 - 20:31:39 MDT

Mary,

Thanks for your help.

The tickmark labels format works for cnHighLabelFormat well.

Yongzuo
________________________________________
From: ncl-talk-bounces@ucar.edu [ncl-talk-bounces@ucar.edu] on behalf of ncl-talk-request@ucar.edu [ncl-talk-request@ucar.edu]
Sent: Monday, May 02, 2011 1:00 PM
To: ncl-talk@ucar.edu
Subject: ncl-talk Digest, Vol 90, Issue 2

Send ncl-talk mailing list submissions to
        ncl-talk@ucar.edu

To subscribe or unsubscribe via the World Wide Web, visit
        http://mailman.ucar.edu/mailman/listinfo/ncl-talk
or, via email, send a message with subject or body 'help' to
        ncl-talk-request@ucar.edu

You can reach the person managing the list at
        ncl-talk-owner@ucar.edu

When replying, please edit your Subject line so it is more specific
than "Re: Contents of ncl-talk digest..."

Today's Topics:

   1. Re: high and low center value (Mary Haley)
   2. Re: How -to merge a shapefile map on a contour plot? (Mary Haley)
   3. Re: How to remove the border of reference vector label with
      wmsetp? (Mary Haley)
   4. Re: NCL Error message (Mary Haley)
   5. how to print the document in your web. (Namba Takaya)
   6. Re: How to remove the border of reference vector label with
      wmsetp? (xiaoming Hu)
   7. NCL source code (Cristiana Stan)
   8. Re: how to print the document in your web. (Rick Brownrigg)
   9. Re: NCL source code (Rick Brownrigg)
  10. Meridonal Temperature Gradient (sbasu@iarc.uaf.edu)
  11. Meridonal Temperature Gradient (sbasu@iarc.uaf.edu)

----------------------------------------------------------------------

Message: 1
Date: Mon, 2 May 2011 13:30:14 +1000
From: Mary Haley <haley@ucar.edu>
Subject: Re: high and low center value
To: "Li, Yongzuo" <yongzuo.li@ou.edu>
Cc: "ncl-talk@ucar.edu" <ncl-talk@ucar.edu>
Message-ID: <22FFD677-6CFD-4876-8759-95F8298DD842@ucar.edu>
Content-Type: text/plain; charset="us-ascii"

Hi Yongzuo,

My apologies if this has already been answered.

Try this resource:

http://www.ncl.ucar.edu/Document/Graphics/Resources/cn.shtml#cnHighLabelFormat

You can see how to set the format via example 8 on the tickmarks page:

http://www.ncl.ucar.edu/Applications/tickmarks.shtml#ex8

Even though this information is for tickmark labels, the same applies for any XXXXFormat resource.

--Mary

On Apr 21, 2011, at 8:07 AM, Li, Yongzuo wrote:

> Hi,
>
> Do you know how to define High/Low value
> in contour line plot with 1 point for decimal?
>
> 0.5 not 0.51
>
> Yongzuo
> _______________________________________________
> ncl-talk mailing list
> 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/20110502/9f0f8359/attachment.html

------------------------------

Message: 2
Date: Mon, 2 May 2011 13:31:50 +1000
From: Mary Haley <haley@ucar.edu>
Subject: Re: How -to merge a shapefile map on a contour
        plot?
To: ugo merlini <ugomerlini@hotmail.com>
Cc: ncl-talk@ucar.edu
Message-ID: <3FAD1013-9D45-470E-82D9-80D8E969EC56@ucar.edu>
Content-Type: text/plain; charset="us-ascii"

Did you see our shapefile page at:

http://www.ncl.ucar.edu/Applications/shapefiles.shtml

This is the only set of examples that we have for reading shapefiles. Example 4 uses shapefiles with a contour plot.

--Mary

On Apr 28, 2011, at 5:16 AM, ugo merlini wrote:

> Hi
>
> can someno point me on the right reads on how use a map (made with the shapefile technique) in a contour map?
>
> Regards
>
> Ugo
> _______________________________________________
> ncl-talk mailing list
> 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/20110502/85ece09a/attachment.html

------------------------------

Message: 3
Date: Mon, 2 May 2011 13:42:43 +1000
From: Mary Haley <haley@ucar.edu>
Subject: Re: How to remove the border of reference vector
        label with wmsetp?
To: xiaoming Hu <yuanfangcan@hotmail.com>
Cc: ncl-talk@ucar.edu
Message-ID: <974360DD-1B75-413A-BD0D-CD36E49C9F2D@ucar.edu>
Content-Type: text/plain; charset="us-ascii"

Try

  res@vcRefPerimOn = False

--Mary

On May 1, 2011, at 11:46 PM, xiaoming Hu wrote:

> Hello
>
> How can I remove the border of vector label with wmsetp in the attached figure?
>
> I just found the parameters for vector label background (vlb) and vector label foreground (vlf). But I don't find a parameter for border of reference vector label.
>
> Thanks
>
> Xiaoming
> <1999Kwajalein_O3_Vector_combined_0.jpg>_______________________________________________
> ncl-talk mailing list
> 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/20110502/b085334f/attachment.html

------------------------------

Message: 4
Date: Mon, 2 May 2011 13:44:37 +1000
From: Mary Haley <haley@ucar.edu>
Subject: Re: NCL Error message
To: Rick Brownrigg <brownrig@ucar.edu>
Cc: "ncl-talk@ucar.edu" <ncl-talk@ucar.edu>
Message-ID: <298338F2-177A-4A72-BD5F-92EF9369A8B4@ucar.edu>
Content-Type: text/plain; charset="us-ascii"

Sorry to keep bothering you Rick! I appreciate that you've answered so many questions in our absence.

This one is probably because his DISPLAY environment variable is not set, or is set incorrectly.

--Mary

On Apr 28, 2011, at 12:46 AM, Rick Brownrigg wrote:

> Hi,
>
> It sounds like for whatever reason, the X11 environment is not able to start up. Is it installed? (check Applications/Utilities folder). If so, can you launch it? Are you able to run with some other workstation type, such as "ps", "pdf", "png"?
>
> Rick
>
> On Apr 27, 2011, at 8:40 AM, Idowu, Oluseun S. (UMKC-Student) wrote:
>
>> Hello,
>> I have just installed NCL version 6.0.0-beta on my Mac system but when trying to practice some example plotting I have the following error message. Your quick help will be appreciated.
>>
>> [KC-GSCI-W80392Z1AGZ:~/PhD/WRFV3] oluseunidowu% ncl
>> Copyright (C) 1995-2011 - All Rights Reserved
>> University Corporation for Atmospheric Research
>> NCAR Command Language Version 6.0.0-beta
>> The use of this software is governed by a License Agreement.
>> See http://www.ncl.ucar.edu/ for more details.
>> ncl 0> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
>> ncl 1> x = new(9, float)
>> ncl 2> y = new(9, float)
>> ncl 3> x = (/10.,20.,30.,40.,50.,60.,70.,80.,90./)
>> ncl 4> y = (/0.,0.71,1.,0.7,0.002,-0.71,-1.,-0.71,-0.003/)
>> ncl 5> wks = gsn_open_wks("x11", "gsun01n")
>> warning:GKS:GOPWK: --X driver error: error opening display
>> warning:GKS:GESC: --SPECIFIED WORKSTATION IS NOT OPEN
>> fatal:Workstation with PID#8 is not open
>> fatal:Unable to open Workstation-Can't Create
>> fatal:Unable to access object with id:-4
>> ncl 6>
>>
>> Thanks
>> _______________________________________________
>> 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20110502/db5eac58/attachment.html

------------------------------

Message: 5
Date: Mon, 2 May 2011 05:59:29 +0000
From: Namba Takaya <takayanamba@hotmail.com>
Subject: how to print the document in your web.
To: <ncl-talk@ucar.edu>
Message-ID: <BAY166-w51BF109A653C838D4DF517A99F0@phx.gbl>
Content-Type: text/plain; charset="iso-2022-jp"

Dear Sir
Whenever I tried to print out the documents in your web site, I could not printed out the document but the bars of contents. For example, I go to the support>FAQ from main menu of the top, I wish to print out all the document of FAQ, but I can print the top menu (NCL, Example, Function, Resources, etc....) only.
Could you tell me how I print it as I wish?
Best Regards,
Takaya Namba
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20110502/3185e53e/attachment.html

------------------------------

Message: 6
Date: Mon, 2 May 2011 13:31:02 +0000
From: xiaoming Hu <yuanfangcan@hotmail.com>
Subject: Re: How to remove the border of reference vector
        label with wmsetp?
To: <haley@ucar.edu>
Cc: ncl-talk@ucar.edu
Message-ID: <BAY156-w59A0DC0161CA88164DC2F6AE9F0@phx.gbl>
Content-Type: text/plain; charset="iso-8859-1"

Hello Mary

I added the resource you suggested. Seems my NCl doesn't recognize it. My version is 5.2.1

It says "warning:vcRefPerimOn is not a valid resource"

Here is part of my script
"
  u =Data_to_plot*(- sin (WDR*pi/180))
  v =Data_to_plot*(- cos(WDR*pi/180))
  res1@xyLineThicknessF = 2
  res1@xyMarkLineModes = (/"Lines","Markers","Markers","Markers","Markers","Markers" /)
  res1@tmYLLabelsOn = False
   res1@vcRefPerimOn = False
  plot(ivar) = gsn_csm_xy (wks,Time,Time*0,res1) ; create plot
  res1@tmYLLabelsOn = True
  res1@xyLineThicknessF = 5
  res1@xyMarkLineModes = (/"Markers","Markers","Markers","Markers","Markers","Markers" /)
  wmsetp("vrs - reference vector size",12.9)
  wmsetp("vrn - NDC size of a reference vector size",0.09)
  wmsetp("vcc - vector color",1)
  wmsetp("vcw - vector linewidth scale factor",1.)
  wmsetp("vch - arrow head size",0.005)
  wmvect(wks, Time(::9), Time(::9)*0, u(::9), v(::9) )
  gsres = True ; Indicate you want to set some resources.
  gsres@gsMarkerColor = 3 ; Change marker color.
  gsres@gsMarkerSizeF = 20. ; Increase marker size by a factor of 20.
  wmvlbl(wks, 0.63 ,0.59)
  draw(plot(ivar))

"

Subject: Re: How to remove the border of reference vector label with wmsetp?
From: haley@ucar.edu
Date: Mon, 2 May 2011 13:42:43 +1000
CC: ncl-talk@ucar.edu
To: yuanfangcan@hotmail.com

Try
  res@vcRefPerimOn = False
--Mary

On May 1, 2011, at 11:46 PM, xiaoming Hu wrote:Hello

How can I remove the border of vector label with wmsetp in the attached figure?

I just found the parameters for vector label background (vlb) and vector label foreground (vlf). But I don't find a parameter for border of reference vector label.

Thanks

Xiaoming
<1999Kwajalein_O3_Vector_combined_0.jpg>_______________________________________________
ncl-talk mailing list
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/20110502/a222122b/attachment.html

------------------------------

Message: 7
Date: Mon, 2 May 2011 10:27:04 -0400
From: Cristiana Stan <stan@cola.iges.org>
Subject: NCL source code
To: ncl-talk@ucar.edu
Message-ID: <3362047C-4041-48B7-A866-A3A87972363A@cola.iges.org>
Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes

Hi - I would like to install NCL on my machine and "http://www.earthsystemgrid.org/
" is not responding. Please let me know if there is another way to
access the source code. Thank you. --Cristiana

------------------------------

Message: 8
Date: Mon, 2 May 2011 09:34:17 -0600
From: Rick Brownrigg <brownrig@ucar.edu>
Subject: Re: how to print the document in your web.
To: Namba Takaya <takayanamba@hotmail.com>
Cc: ncl-talk@ucar.edu
Message-ID: <CBF0DB3F-3F45-4028-AA29-7AA0BCEFDFBF@ucar.edu>
Content-Type: text/plain; charset="us-ascii"

Hi,

I am able to print the FAQ just fine, using Firefox on a Linux machine. I'm not sure what the issue could be in your case.

FWIW...
Rick

On May 1, 2011, at 11:59 PM, Namba Takaya wrote:

> Dear Sir
>
> Whenever I tried to print out the documents in your web site, I could not printed out the document but the bars of contents. For example, I go to the support>FAQ from main menu of the top, I wish to print out all the document of FAQ, but I can print the top menu (NCL, Example, Function, Resources, etc....) only.
>
> Could you tell me how I print it as I wish?
>
> Best Regards,
>
> Takaya Namba
> _______________________________________________
> ncl-talk mailing list
> 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/20110502/bd3b4539/attachment.html

------------------------------

Message: 9
Date: Mon, 2 May 2011 09:42:30 -0600
From: Rick Brownrigg <brownrig@ucar.edu>
Subject: Re: NCL source code
To: Cristiana Stan <stan@cola.iges.org>
Cc: ncl-talk@ucar.edu
Message-ID: <06896D74-7317-4E32-8DAB-8AF5EA0C548F@ucar.edu>
Content-Type: text/plain; charset=us-ascii

Hi,

You might try again now -- I think the outage was only temporary.

RB

On May 2, 2011, at 8:27 AM, Cristiana Stan wrote:

>
>
> Hi - I would like to install NCL on my machine and "http://www.earthsystemgrid.org/
> " is not responding. Please let me know if there is another way to
> access the source code. Thank you. --Cristiana
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

------------------------------

Message: 10
Date: Mon, 2 May 2011 09:58:00 -0800 (AKDT)
From: sbasu@iarc.uaf.edu
Subject: Meridonal Temperature Gradient
To: ncl-talk@ucar.edu
Message-ID:
        <e46483e61c069bf35f91ef6ad993f9b6.squirrel@arthur.iarc.uaf.edu>
Content-Type: text/plain;charset=utf-8

Hi,

I am trying to use canter_finite _difference_n function to calculate
meridional temperature gradient.
 But I am getting an error saying

"Invalid dimension index for calculating the center finite difference"

Here is the portion of my script where I am doing this:

  nlat = 128
  nlon =256
  dlon = (lon(2)-lon(1))*0.0174533 ; convert to radians
                                    ; pre-allocate space
  dLon = dble2flt(dlon)
  Lon = dble2flt(lon)

  dTdY = new((/124,15,nlat,nlon/),typeof(tempm))

   do nl =0,nlon-1 ; loop over each longitude
      dY = 6378388.*cos(0.0174533*Lon(nl))*dLon ; constant at this latitude
 printVarSummary(dY)
      dTdY(:,:,:,nl)= center_finite_diff_n (tempm(:,:,:,nl),dY,True,0,3)
  end do

  dtdy = flt2dble(dTdY)
  printVarSummary(dtdy)
  printMinMax(dtdy, True)
  printMinMax(dTdY, True)

Also in the example 6 of documentation of "center_finite_difference_n"
there are typeo in this line:

dTdX(:,:,nl,:) = center_finite_diff_n (T(:,:,nl;,:), dX , True,0,0)
it should be I think
dTdX(:,:,nl,:) = center_finite_diff_n (T(:,:,nl,:), dX , True,0,2)

Thanks,

--
*************************************
Soumik Basu
Graduate Student, Research Assistant
International Arctic Research Center
University of Alaska Fairbanks
Fairbanks,Alaska,USA
**************************************
-----------------------------------------
This email was sent using SquirrelMail.
   "Webmail for nuts!"
http://squirrelmail.org/
------------------------------
Message: 11
Date: Mon, 2 May 2011 09:59:40 -0800 (AKDT)
From: sbasu@iarc.uaf.edu
Subject: Meridonal Temperature Gradient
To: ncl-talk@ucar.edu
Message-ID:
        <fbf044dd4651b02c7d6e55fe065b5ae6.squirrel@arthur.iarc.uaf.edu>
Content-Type: text/plain;charset=utf-8
Hi,
I am trying to use canter_finite _difference_n function to calculate
meridional temperature gradient.
 But I am getting an error saying
"Invalid dimension index for calculating the center finite difference"
Can anybody please give me some suggestion why it is not working when I am
trying to differentiate over longitude.
Here is the portion of my script where I am doing this:
  nlat = 128
  nlon =256
  dlon = (lon(2)-lon(1))*0.0174533 ; convert to radians
                                    ; pre-allocate space
  dLon = dble2flt(dlon)
  Lon = dble2flt(lon)
  dTdY = new((/124,15,nlat,nlon/),typeof(tempm))
   do nl =0,nlon-1         ; loop over each longitude
      dY = 6378388.*cos(0.0174533*Lon(nl))*dLon ; constant at this latitude
 printVarSummary(dY)
      dTdY(:,:,:,nl)= center_finite_diff_n (tempm(:,:,:,nl),dY,True,0,3)
  end do
  dtdy = flt2dble(dTdY)
  printVarSummary(dtdy)
  printMinMax(dtdy, True)
  printMinMax(dTdY, True)
Also in the example 6 of documentation page of
"center_finite_difference_n" there are typeo in this line:
dTdX(:,:,nl,:) = center_finite_diff_n (T(:,:,nl;,:), dX , True,0,0)
it should be I think
dTdX(:,:,nl,:) = center_finite_diff_n (T(:,:,nl,:), dX , True,0,2)
Thanks,
--
*************************************
Soumik Basu
Graduate Student, Research Assistant
International Arctic Research Center
University of Alaska Fairbanks
Fairbanks,Alaska,USA
**************************************
-----------------------------------------
This email was sent using SquirrelMail.
   "Webmail for nuts!"
http://squirrelmail.org/
------------------------------
_______________________________________________
ncl-talk mailing list
ncl-talk@ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
End of ncl-talk Digest, Vol 90, Issue 2
***************************************
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon May 2 20:31:53 2011

This archive was generated by hypermail 2.1.8 : Tue May 03 2011 - 14:47:34 MDT