Re: Plotting CCSM3 data on a map subset

From: <asphilli_at_nyahnyahspammersnyahnyah>
Date: Mon, 12 Jan 2009 13:23:31 -0700 (MST)

Hi James,

> Hi all-
> I couldn't find anything which stated what mp resource variables need to
> be
> set or associated in order to plot ccsm data on a map which is not global.
> Global works fine but comes associated with a host of error message
> related
> to "no coordinate variables associated".
>
> I fixed one error by using copy_VarCoords, but in subsetting one of the
> CCSM
> variables a dimension mismatch prevents me from doing the same for the
> last
> variable. How does one set the coordinate variables for the derived
> variable:
>
> Ccsm derived
> TREFHT(1200,128,256) var(120,128,256)

var = TREFHT(:119,:,:)
var = (/ however you created the var array originally /)

For instance, I just did this for a trend calculation:
oz_ll_asond = oz_zmAnom5(:,:,0) ; oz_zmAnom5 dimensioned lev,lat,time
oz_ll_asond = (/ onedtond(tttt_at_slope,(/20,64/))*51. /)

>
> Once I do this, how can I limit the map area on the plot so that it is
> regional?
> I tried using the var({17:59},{60:120}) notation for a 2d variable in
> lat-lon coordinates but the map still is global.

You need to set some mp resources:
http://www.ncl.ucar.edu/Document/Graphics/Resources/mp.shtml#mpMinLatF
http://www.ncl.ucar.edu/Document/Graphics/Resources/mp.shtml#mpMaxLatF
http://www.ncl.ucar.edu/Document/Graphics/Resources/mp.shtml#mpMinLonF
http://www.ncl.ucar.edu/Document/Graphics/Resources/mp.shtml#mpMaxLonF
Adam

>
> Thanks
>
>
>
> James Correia Jr., PhD
> Climate Physics Group
> Post. Doc.
> Pacific Northwest National Lab
>
> "Wisdom. Strength. Courage. Generosity. Each of us are born with one of
> these. It is up to us to find the other three inside of us."
> -Into the West
>
>
> _______________________________________________
> 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 Mon Jan 12 2009 - 13:23:31 MST

This archive was generated by hypermail 2.2.0 : Fri Jan 16 2009 - 14:05:56 MST