mask the ocean out in overlay plot

From: astroqing <astroqing_at_nyahnyahspammersnyahnyah>
Date: Fri Nov 09 2012 - 15:25:16 MST

Hi,

I want to draw a figure with shading, contour line, wind vectors and map overlaid together. Besides I still want to mask the ocean out.
I tried as follows, but it failed and returned a empty figure. So I am writing for help! Thanks a lot.

    mpres@mpOutlineSpecifiers = (/"China:states","India","Nepal","Bhutan","Bangladesh","Myanmar", \
                                    "Thailand","Cambodia","Vietnam","Taiwan"/)
    mpres@mpFillDrawOrder = "Postdraw"

    rvres@cnFillDrawOrder = "Predraw"

    resV@vcVectorDrawOrder = "Draw"

   rv_cl = gsn_csm_contour(wks_cl,rvox(:,:),rvres)
   rv_bw = gsn_csm_contour(wks_bw,rvox(:,:),rvres)

  v_cl = gsn_csm_vector(wks_cl,ux(:,:),vx(:,:),resV)
  v_bw = gsn_csm_vector(wks_bw,ux(:,:),vx(:,:),resV)

  plot_cl = gsn_csm_map(wks_cl,mpres)
  plot_bw = gsn_csm_map(wks_bw,mpres)

  overlay(plot_bw,v_bw)
  overlay(plot_cl,v_cl)
  overlay(plot_bw,rv_bw)
  overlay(plot_cl,rv_cl)

2012-11-10

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Fri Nov 9 15:23:19 2012

This archive was generated by hypermail 2.1.8 : Tue Nov 13 2012 - 14:27:24 MST