Hi Justin,
You can get much more complicated than this by trying to make this more
automated with respect to where the min/max are plotted on the
workstation, but something like this should work:
res = True
....
res_at_gsnFrame = False
plot = gsn_csm_contour_map_ce(wks,arr,res)
txres = True
txres_at_txJust = "CenterLeft"
txres_at_txFontColor = "red"
gsn_text_ndc(wks,"MAX="+sprintf("%6.2f",max(arr)),0.3,0.25,txres)
txres_at_txFontColor = "blue"
gsn_text_ndc(wks,"MIN="+sprintf("%6.2f",min(arr)),0.3,0.22,txres)
frame(wks)
You will need to set the X and Y NDC coordinates in the gsn_text_ndc
call appropriately. drawNDCGrid could be of assistance here in setting
the NDC coordinates:
http://www.ncl.ucar.edu/Document/Functions/Shea_util/drawNDCGrid.shtml
Good luck,
Adam
Justin Glisan wrote:
> Hello forum,
>
> I think this is probably a simple thing, but I couldn't find any leads in the
> forum archives. I would like to plot the min and max values for a given field
> beneath the actual plot...like the NCEP reanalysis example attached. Thanks,
>
> Justin
>
>
> ------------------------------------------------------------------------
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk_at_ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
-- -------------------------------------------------------------- Adam Phillips asphilli_at_ucar.edu National Center for Atmospheric Research tel: (303) 497-1726 ESSL/CGD/CAS fax: (303) 497-1333 P.O. Box 3000 Boulder, CO 80307-3000 http://www.cgd.ucar.edu/cas/asphilli _______________________________________________ ncl-talk mailing list ncl-talk_at_ucar.edu http://mailman.ucar.edu/mailman/listinfo/ncl-talkReceived on Thu Apr 10 2008 - 14:58:50 MDT
This archive was generated by hypermail 2.2.0 : Fri Apr 11 2008 - 11:01:26 MDT