[ncl-talk] problem with background on moving domain

Wang,Yu wangyu8722 at ufl.edu
Thu Feb 2 14:56:38 MST 2017


It worked perfectly. Thank you so much for your help.


Best,


Yu

________________________________
From: ncl-talk-bounces at ucar.edu <ncl-talk-bounces at ucar.edu> on behalf of Mary Haley <haley at ucar.edu>
Sent: Thursday, February 2, 2017 3:15:20 PM
To: Wang,Yu
Cc: ncl-talk at ucar.edu
Subject: Re: [ncl-talk] problem with background on moving domain

Yu,

To answer your question about the labels on the two Y axes:  this is due to the nature of your map. It may be slightly rotated, and hence the latitude values on the left side of the plot are not going to be the same latitude values on the right side of the plot.

I've attached two modified scripts for you to try.  I converted your code to use gsn_csm_contour_map. These scripts no longer use the native WRF map projection, but instead use the XLAT/XLONG read off the file to create the plot. This does make the script go a little slower, but this also allows you to get that moving domain.

I wasn't sure if you literally want a moving lat/lon domain for each plot, or whether you wanted a fixed lat/lon domain for all plots, so hence the two scripts.

The first one, wrf_dbz_mp_gsn_mods.ncl uses a moving domain, and the wrf_dbz_mp_gsn_mods_fixed_map.ncl uses a fixed domain.

I created a series of PNGs from all timesteps across all files, and converted the PNGs to both an animated GIF and an MPG file using ImageMagick's convert utility:

  convert -delay 10 *.png refl_panel.mpg
  convert -delay 10 *.png refl_panel.
​gif​

I attached the two images from the last timestep on the last file.  The animated GIF and MPG files are too large to attach here, but let me know if you want me to send one of them to you in an email offline.  They are about 3-6 MB each.

The labelbar labels may be too large. You can adjust them with the lbLabelFontHeightF resource that's in the code.

--Mary




On Wed, Feb 1, 2017 at 2:46 PM, Wang,Yu <wangyu8722 at ufl.edu<mailto:wangyu8722 at ufl.edu>> wrote:

Dear Mary,


Thank you so much for your help. I wondered if I could ask you another question. I have unmatching lat/lon on the left and right graphs(example attached) when I am using gsn_csm_xxxx to plot moving domains. What might be the problem for that?


Best,


Yu


From: Mary Haley <haley at ucar.edu<mailto:haley at ucar.edu>>
Sent: Wednesday, February 1, 2017 2:35:17 PM
To: Wang,Yu
Cc: ncl-talk at ucar.edu<mailto:ncl-talk at ucar.edu>
Subject: Re: [ncl-talk] problem with background on moving domain

Yu,

I'm looking into this and am writing a version of your script that follows the domain of your lat/lon data.

The basic issue is that each WRF output file has global attributes that define the map area of interest. This is a fixed area, that I assume is big enough to enclose the full boundary of your moving nest.

When you use wrf_xxxx plotting routines, they set the map projections based on the WRF global attributes on the file, and not based on the individual lat/lon domain.

Are you saying that you want the map to be redrawn such that the center of your storm is roughly in the center of the map? If so, then you probably don't want to use the wrf_xxxx routines for plotting.

I'm creating a version of your code that uses gsn_csm_xxxx to do the plotting and will report back when it's done.

--Mary


On Wed, Feb 1, 2017 at 8:24 AM, Wang,Yu <wangyu8722 at ufl.edu<mailto:wangyu8722 at ufl.edu>> wrote:

Hello,


I am trying to make some dbz plots with multiple files of a moving domain. The contour line  seems right and moving centered on the storm but all the graphs that I created have exact same background which is not right since my domain is a moving one. What should I do I am dealing with a moving domain? Is there a certain function I should or should use? I have attached my script, hope some one could give me some help.


Thank you so much for your help.


Best,


Yu



_______________________________________________
ncl-talk mailing list
ncl-talk at ucar.edu<mailto: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/20170202/441f6dd7/attachment.html 


More information about the ncl-talk mailing list