Re: plotting stageIV precipitaton data

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Thu Dec 10 2009 - 17:33:45 MST

Generally, the " res@tfDoNDCOverlay=True " should be used for the full
map only.
It is fast.

==
If you want to zoom-in on an area...

  res@tiMainString = fname

  plot = gsn_csm_contour_map(wks,pcp,res) ; res@tfDoNDCOverlay=True

;************************************************
; Zoom on user specified subregion
;************************************************

  delete( res@tfDoNDCOverlay ) ; only use for full map

  res@mpLimitMode ="LatLon"
  res@mpMinLatF = 30 ; range to zoom in on
  res@mpMaxLatF = 45.
  res@mpMinLonF = -95.
  res@mpMaxLonF = -80.
  res@mpCenterLonF = (res@mpMinLonF + res@mpMaxLonF)*0.5

  pcp@lat2d = lat2d
  pcp@lon2d = lon2d
  plot = gsn_csm_contour_map(wks,pcp,res)

Good luck
D

p s wrote:
>
> Now that I can make the plots, I tried to zoom the plot setting
> mpLimitMode as LatLon, but on doing so,
> the map is only concatenated , not the precipitation, which is
> displaced. How do I correct it?
> Regards,
> Prabhakar
>
> On Thu, Dec 10, 2009 at 7:41 PM, Dennis Shea <shea@ucar.edu
> <mailto:shea@ucar.edu>> wrote:
>
>
> It is always suggested that the file be looked at prior to use.
> The .grb is added to the file so NCL knows how to read it.
> (The .grb need *not* be part of the actual file name.)
>
> %> ncl_filedump ST4.2009103112.24h.grb | less
>
> All the information Evelyn used can be extracted from this.
>
>
>
> Evelyn Grell wrote:
>
> Prabhakar,
> I am attaching a simple script that I have used for plotting
> Stage IV data.
> Hope it helps you,
> Evelyn
>
> p s wrote:
>
> Hi
> Could someone help me with plotting the stageIV
> precipitation data which is in polar stereographic
> projection as it suggests.
> When using gsn_csm_contour_map_polar, I get warning
> message saying :
> (0) get_polar_type: Warning: No polar projection has
> been selected. Defaulting to northern hemisphere.
> (0) check_for_y_lat_coord: Warning: Data either does
> not contain a valid latitude coordinate array or doesn't
> contain one at all.
> (0) A valid latitude coordinate array should have a
> 'units' attribute equal to one of the following values:
> (0) 'degrees_north' 'degrees-north' 'degree_north'
> 'degrees north' 'degrees_N' 'Degrees_north' 'degree_N'
> 'degreeN' 'degreesN' 'deg north'
> (0) check_for_lon_coord: Warning: Data either does not
> contain a valid longitude coordinate array or doesn't
> contain one at all.
> (0) A valid longitude coordinate array should have a
> 'units' attribute equal to one of the following values:
> (0) 'degrees_east' 'degrees-east' 'degree_east'
> 'degrees east' 'degrees_E' 'Degrees_east' 'degree_E'
> 'degreeE' 'degreesE' 'deg east'
> fatal:syntax error: line 47 in file stageIV.ncl before or
> near end
> end
> Cheers
> prabhakar
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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
>
>
>
> --
> ======================================================
> Dennis J. Shea tel: 303-497-1361 |
> P.O. Box 3000 fax: 303-497-1333 |
> Climate Analysis Section |
> Climate & Global Dynamics Div. |
> National Center for Atmospheric Research |
> Boulder, CO 80307 |
> USA email: shea 'at' ucar.edu
> <http://ucar.edu> |
> ======================================================
>
>

-- 
======================================================
Dennis J. Shea                  tel: 303-497-1361    |
P.O. Box 3000                   fax: 303-497-1333    |
Climate Analysis Section                             |
Climate & Global Dynamics Div.                       |
National Center for Atmospheric Research             |
Boulder, CO  80307                                   |
USA                        email: shea 'at' ucar.edu |
======================================================
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Dec 10 17:34:46 2009

This archive was generated by hypermail 2.1.8 : Thu Dec 17 2009 - 17:15:52 MST