Re: Problem with plotting vectors over a particular domain

From: David Brown <dbrown_at_nyahnyahspammersnyahnyah>
Date: Wed Nov 30 2011 - 14:43:53 MST

Because you have trDoNDCOverlay set to True, you are simply fitting the whole data set into the plotting area. And you are right that the projection is different for your north american domain. That is because you have mpRelativeCenterLat set to True. That turns the projection into a rotated lat/lon projection. A standard lat/lon projection must have the center lat set to 0. (However, it is fine in this case to set mpRelativeCenterLon to True.)
As long as you have 1D coordinate areas, you should be able to get a correct plot by changing trDoNDCOverlay to False and not setting mpRelativeCenterLat.
Another possibility that would actually plot more efficiently would be to set trDoNDCOverlay to True and then use coordinate subscripting to pass only the relevant subsets of the U and V data to the gsn routine, i.e.:

 plot1 =gsn_csm_vector_map_ce(wks,vhqh_s({10:80},{190:310}),uhqh_s({10:80},{190:310}),res)

(You may have to use lonFlip if your longitude array goes from -180 - 180.)

On Nov 30, 2011, at 1:36 PM, Soumik Basu wrote:

> Hi,
> I am trying to plot a vector for a particular domain. But when I am
> plotting the vector for my domain the values getting shifted. For example
> I plotted seasonal moisture Flux for DJF on the whole world and I can see
> the storm tracks with higher values and looks correct. But when I am
> plotting for a small domain like North America the values are shifted. I
> am attaching the vector plot for the whole world and North America if you
> compare those two you can see the values have shifted and looks like the
> map projection changed too. So I plotted the domain only based on my
> criteria and it did correctly but if I put vector on that it's getting
> changed. My dataset is CAM 3.1 output.
> I have also tried overlaying the vector plot on the top of the map of my
> domain.But it didn't worked.
> Can anybody please give me some suggestion regarding this problem?
> Thanks,
> --
> "Numbing the pain for a while will make it worse when you finally feel it.
> ~J.K. Rowling"
> *****************************************
> 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!"
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:

ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
Received on Wed Nov 30 14:44:02 2011

This archive was generated by hypermail 2.1.8 : Wed Nov 30 2011 - 19:52:47 MST