Re: map tick mark problem

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Mon Oct 14 2013 - 15:35:53 MDT

Hi Nicole,

It's hard to debug a program this big without being able to run it, because I can't easily tell what graphical resources are being set.

I'm not sure why you are seeing the tick marks show up for the contour plot, but perhaps you can try turning the tickmarks off for the contour plot case.

Inside set_resnarr, or any place where you are setting "resnarr" values, add:

  resnarr@pmTickMarkDisplayMode = "Never"

Generally, I recommend people *not* use gsn_csm_vector_scalar_map, and instead use a combination of gsn_csm_contour_map and gsn_csm_vector, and then use "overlay" to overlay the vectors on top of the map.

For example, instead of:

    plotseasonmap(nruns+1) = gsn_csm_vector_scalar_map(wsseasonmap,vectmap(0,:,:),vectmap(1,:,:),narrseasonmap,resnarr)

you could try something like this:

    plotseasonmap(nruns+1) = gsn_csm_contour_map(wsseasonmap,narrseasonmap,resfill)

    vectorsonly(nruns+1) = gsn_csm_vector(wsseasonmap,vectmap(0,:,:),vectmap(1,:,:),resvect)

    overlay(plotseasonmap(nruns+1), vectorsonly(nruns+1))

"resfill" and "resvect" would come from splitting up "resnarr" into contour/map resources for resfill, and just vector resources for rectvect.

See examples "lcnative_5.ncl" and "lcnative_overlay_5.ncl" at:

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

--Mary

On Oct 14, 2013, at 12:06 PM, "Gaynor, Nicole June Schiffer" <nschiff2@illinois.edu> wrote:

> You are correct in your interpretation of the "grid point number tick marks."
>
> What I am doing is plotting maps of a variable from several different data sets or times and then making them panels on a single figure. For each of the individual maps, I am using gsn_csm_vector_scalar_map or gsn_csm_contour_map.
>
> I have attached an example image and an example script. The relevant function starts at line 786 and ends at line 956. It plots the seasonal average of 700 hPa height and wind from three WRF runs and MERRA and NARR.
>
> Thanks,
> Nicole
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> * Nicole J S Gaynor
> * Department of Atmospheric Sciences
> * University of Illinois, Urbana-Champaign
> * Email: nschiff2 [at] illinois [dot] edu
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ________________________________________
> From: Mary Haley [haley@ucar.edu]
> Sent: Monday, October 14, 2013 9:40 AM
> To: Gaynor, Nicole June Schiffer
> Cc: ncl-talk@ucar.edu
> Subject: Re: map tick mark problem
>
> Hi Nicole,
>
> There's not enough information here. It would help if you could include an image and/or some code.
>
> By "grid point number tick marks" it sounds like you mean tick marks that are labeled with index values, rather than actual coordinate values?
>
> If you are seeing both these *and* map tick marks, then this leads me to believe that two plots are being drawn on top of each other, and you are seeing the tick marks from both of them.
>
> Usually, if you are drawing two plots on top of each other, you want to use the "overlay" procedure. This procedure will take care of removing all the tick marks from the plot that is being drawn on top of the other plot.
>
> Again, it would help to see some code and or an image.
>
> Thanks,
>
> --Mary
>
> On Oct 13, 2013, at 10:52 AM, "Gaynor, Nicole June Schiffer" <nschiff2@illinois.edu> wrote:
>
>> I think my map plot tick marks changed with a newer version of NCL. My plots used to only show the lat-lon tick marks. Now they're showing the lat-lon tick marks *and* the grid point number tick marks. How do I make the grid point tick marks go away again?
>>
>> Thanks,
>> Nicole
>>
>>
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> * Nicole J S Gaynor
>> * Department of Atmospheric Sciences
>> * University of Illinois, Urbana-Champaign
>> * Email: nschiff2 [at] illinois [dot] edu
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> _______________________________________________
>> ncl-talk mailing list
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
> <seasonmap_700_2004.ps><plot.700.cycles.ncl>

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Oct 14 15:36:01 2013

This archive was generated by hypermail 2.1.8 : Tue Oct 22 2013 - 10:35:27 MDT