Re: Using same contour interval for multiple inputs

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Thu Sep 09 2010 - 09:36:34 MDT

On Sep 3, 2010, at 12:18 PM, Hayes, Philip (GSFC-610.3)[NORTHROP GRUMMAN INFORMATION TECH] wrote:

> Hi,
>
> I am trying to automate a script that will create animation of certain variables produced by a WRF simulation. I want to be able to have each image contain the same contour interval. I realize that I can specify “Contourparameters”, but at the time of the animation I will not have the max, min, or interval to specify. Is there a simple way of doing this?

Hi Philip,

If you want each image to have the same interval, but you don't know that interval when you create the image, then you would need to go back to the original image you created, change the interval, and then draw it.

This is not simple to do with the wrf_xxx scripts, because after you call the wrf_map_overlays function, it removes the contour plot that was attached to it, and hence you can't change it.

I think there may be a way to "trick" the WRF functions so that they don't remove the contours after they have been created, but I don't recommend this method.

> Or do I need to write code to enter the WRF output data and determine the max/min for a given variable throughout the simulation window?

Yes, I think you will need to do something like this. Is your data rather large? That is, can you read the whole thing in at once so you can determine the min/max right away, and then set this before you create any plots? You can use the "nice_mnmxintvl" function to help you select some nice values for ContourParameters:

http://www.ncl.ucar.edu/Document/Functions/Built-in/nice_mnmxintvl.shtml

--Mary

>
>
> Thanks for your help,
>
> Philip Hayes
> _______________________________________________
> 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 Thu Sep 9 08:36:40 2010

This archive was generated by hypermail 2.1.8 : Thu Sep 16 2010 - 11:05:24 MDT