[ncl-talk] questions about Lambert Conformal projection

Mary Haley haley at ucar.edu
Wed Jun 22 14:53:29 MDT 2016


Noelia,

You should be able to set the four values with:

  res at mpMinLatF             = 30
  res at mpMaxLatF             = 65

  res at mpMinLonF             = -15
  res at mpMaxLonF             = 30

Here's a small code that creates just the map:

  wks = gsn_open_wks("x11","lcmask")

  res                       = True
  res at gsnMaximize           = True

  res at mpProjection          = "LambertConformal"
  res at mpMinLatF             = 30
  res at mpMaxLatF             = 65
  res at mpMinLonF             = -15
  res at mpMaxLonF             =  30

  res at gsnMaskLambertConformal = True
  res at mpGridAndLimbOn         = True

  plot  = gsn_csm_map(wks,res)


On Mon, Jun 20, 2016 at 4:55 AM, Noelia otero <noeli1680 at gmail.com> wrote:

> Hi,
>
> I am doing a panel plot from datasets with regular grid, and so far I was
> using mercator projection.
> I was trying to change the projection to lambert conformal projection, but
> I'm having some problems to make ir rigth (I was wondering if it's possible
> to change the projection).
> Besides, my plot also shows significant levels, so I am defining two plots:
>
>     ;Defining plots attributes
>       res                = True
>       res at gsnAddCyclic   = False
>       res at gsnMaximize    = True
>       res at gsnDraw        = False
>       res at gsnFrame       = False
>       res at lbLabelBarOn   = False
>
>      ; Try with LamConf proj.
>        res at mpProjection           = "LambertConformal"; choose projection
>        res at mpFillOn                 = False             ; turn off map
> fill
>        res at mpMinLatF              = min(lat)                ; min lat to
> mask
>        res at mpMaxLatF             = max(lat)               ; max lat to
> mask
>
>        res at mpMinLonF             = min(lon)               ; min lon to
> mask
>        res at mpMaxLonF            = max(lon)               ; max lon to mask
>
>        res at gsnMaskLambertConformal = True            ; turn on lc masking
>        res at gsnMaskLambertConformalOutlineOn  = False ; turns off outline
>
>
>  ;Significant plot
>
>        res2 = True
>        res2 at gsnAddCyclic = False
>        res2 at gsnDraw = False
>        res2 at gsnFrame = False
>        res2 at cnLevelSelectionMode = "ManualLevels"
>        res2 at cnMinLevelValF = 0.00
>        res2 at cnMaxLevelValF = 1.05
>        res2 at cnLevelSpacingF = 0.01
>        res2 at cnFillOn      = False
>        res2 at cnInfoLabelOn = False
>        res2 at cnLinesOn      = False     ; do not draw contour lines
>        res2 at cnLineLabelsOn = False
>
>      ;defining also projection???
>      ; res2 at mpProjection          = "LambertConformal"; choose projection
>      ; res2 at gsnMaskLambertConformal = True            ; turn on lc masking
>      ; res2 at gsnMaskLambertConformalOutlineOn  = False ; turns off outline
>
>
>        opt = True
>        opt at gsnShadeFillType = "pattern"
>        opt at gsnShadeLow = 7
>        plot2 = gsn_csm_contour(wks,prob,res2)
>        plot2= gsn_contour_shade(plot2,0.05,-999,opt)
>        plot = gsn_csm_contour_map_ce(wks,ave_diff({20:80},{-30:40}),res)
>
>         overlay(plot,plot2)
>
>
>
> My main questions are:
>
> - Let's say that my grid is defined from -15W,30E and 30N, 65N. How should
> I define the properties in the main plot res?? Because I am having
> problemswhen using:
>        res at mpMinLatF             = min(lat)                ; min lat to
> mask
>        res at mpMaxLatF            = max(lat)               ; max lat to mask
>
>   Instead, I tried with higher values..but I am not sure actually, how
> it's working.
>
> -Secondly, for the significant plot (res2), do I have to define mpMinLatF,
> mpMaxLatF...etc..as well??
>
> I would appreciate any suggestion.
> Many thanks in advance
>
>  Noelia
>
>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160622/d420ffa5/attachment.html 


More information about the ncl-talk mailing list