Re: ncl-talk Digest, Vol 93, Issue 54

From: Manoharan, Vani Starry <vmanoharan_at_nyahnyahspammersnyahnyah>
Date: Wed Aug 31 2011 - 10:21:49 MDT

Hi Dennis,

I have put my ncl code and the HDF file I am using in the code in the incoming ftp directory.

Thanks.
Vani.
________________________________________
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: Wednesday, August 31, 2011 11:02 AM
To: ncl-talk@ucar.edu
Subject: ncl-talk Digest, Vol 93, Issue 54

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: Overlapping Strings (Dennis Shea)
   2. CALIPSO 532nm extinction coefficient plot in ncl
      (Manoharan, Vani Starry)

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

Message: 1
Date: Tue, 30 Aug 2011 18:41:19 -0600
From: Dennis Shea <shea@ucar.edu>
Subject: Re: Overlapping Strings
To: ncl-talk@ucar.edu
Message-ID: <4E5D832F.904@ucar.edu>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

As noted
   http://www.ncl.ucar.edu/Applications/text.shtml#ex10
which removes overlapping strings is not what you want.
So, I think some form of manual, movement is required.
See untested change below. You will likely have to play
with the dlat and dlon offsets.

Good Luck

On 8/30/11 6:06 PM, Clark, Brandi Lynn wrote:
> I am adding stations and their identifications on a map, but some of
> them overlap. I do not want to remove the overlapping station names, but
> rather I want to change their position so that they are no longer
> overlapping. Is there a way to do this? The only script I have found on
> the website removes the overlapping strings.
>
> This is the way I have set it up:
>
> fname = "COOP_2010_Mean.dat" ; ascii file path
> lines = asciiread(fname,-1,"string") ; read ascii file
>
> lat = stringtofloat(str_get_field(lines(1:),2," "))
> lon = stringtofloat(str_get_field(lines(1:),3," "))
> pwv = stringtofloat(str_get_field(lines(1:),4," "))
> stations = str_get_cols(lines(1:),0,7)

   nsta = dimsizes(stations)
   dlat = new(nsta, "float","No_FillValue") ; lat offset
   dlon = new(nsta, "float","No_FillValue") ; lon offset
   dlat = 0.0 ; default is no offset
   dlon = 0.0

   do ns=0,nsta-1
      if (stations(ns).eq."413284") then
          dlat(ns) = -0.005 ; move down some small distance
          dlon(ns) = 0.0 ; no change
      end if
      if (stations(ns).eq."413285") then
          dlat(ns) = 0.005 ; move up some small distance
          dlon(ns) = 0.005
      end if
   end do

>
> txres = True ; turn on text resources
> txres@txJust = "CenterRight" ; station labels to right of marker
> txres@txFontHeightF = 0.01 ; font size
>
> gsn_text(wks,map," " + station1,lon,lat,txres)

Change above to:

   gsn_text(wks,map," " + station1,(lon+dlon),(lat+dlat),txres)
>
> I have attached a copy of the map so you can see the issue. I just need
> to justify the overlapping station names differently than the rest.
>
> Thank you,
>
> Brandi Clark
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

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

Message: 2
Date: Wed, 31 Aug 2011 11:01:54 -0500
From: "Manoharan, Vani Starry" <vmanoharan@anl.gov>
Subject: CALIPSO 532nm extinction coefficient plot in ncl
To: "ncl-talk@ucar.edu" <ncl-talk@ucar.edu>
Message-ID: <53A26D9080464E46A38E98BDF7C99AB046897AEBE9@OZZY.anl.gov>
Content-Type: text/plain; charset="us-ascii"

Hi,

I am new in using NCL scripts. I am trying to plot total attenuated backscatter from CALIPSO data using NCL. I want to plot similar to the CALIPSO browse images (Please see the attached image). Could somebody help me in this. That will very great.

Thanks.
Vani.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 2008-01-15_19-51-10_V3.01_2_1.png
Type: image/png
Size: 644814 bytes
Desc: 2008-01-15_19-51-10_V3.01_2_1.png
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20110831/7a48bc54/attachment.png

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

_______________________________________________
ncl-talk mailing list
ncl-talk@ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk

End of ncl-talk Digest, Vol 93, Issue 54
****************************************
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed Aug 31 10:22:09 2011

This archive was generated by hypermail 2.1.8 : Wed Sep 07 2011 - 10:58:58 MDT