Re: zooming and picture quality

From: Mittal, Moti <mmittal_at_nyahnyahspammersnyahnyah>
Date: Wed, 20 May 2009 14:46:48 -0400

Adam,

Thank you.
Your suggestion was helpful. I could do what I wanted.

Moti
Professor, Department of Environment and Occupational Health
College of Public Health
University of South Florida
13201 Bruce B. Downs Blvd., MDC56
Tampa, Fl 33612-3805

Tel: (813) 974-9571
Fax: (813) 974-4986
Email: mmittal_at_health.usf.edu
________________________________________
From: Adam Phillips [asphilli_at_cgd.ucar.edu]
Sent: Monday, May 18, 2009 5:20 PM
To: Mittal, Moti
Cc: ncl-talk_at_ucar.edu
Subject: Re: zooming and picture quality

Hi Moti,
Looking at your script:

   vcres_at_mpMinLatF = 12.5
   vcres_at_mpMaxLatF = 13.5
   vcres_at_mpMinLonF = 79.5
   vcres_at_mpMaxLonF = 80.5
; x_at_lat2d = lat2d
; x_at_lon2d = lon2d
;plot1 = gsn_csm_vector_map(wks,u, v, vcres)
  plot1 = gsn_csm_vector(wks,u, v, vcres)
overlay(plot2,plot1)

I am not sure that the mp resources will work with gsn_csm_vector. If
you want to zoom in on the plot by specifying mpMinLatF,mpMaxLatF, etc,
then you have to use gsn_csm_vector_map.

As you've likely already figured out though, you cannot use a plot
created via gsn_csm_vector_map as the 2nd input of the overlay
procedure. So, if you want to see the vector plot (and only the vector
plot) zoomed in:

plot0 = gsn_csm_vector_map(wks,u,v,vcres) ; zoom in on vector field
vcres_at_gsnDraw = False
vcres_at_gsnFrame = False
delete(vcres_at_mpMinLatF)
delete(vcres_at_mpMaxLatF)
delete(vcres_at_mpMinLonF)
delete(vcres_at_mpMaxLonF)
plot1 = gsn_csm_vector(wks,u, v, vcres) ; create plot for use in overlay
overlay(plot2,plot1)

Adam
Mittal, Moti wrote:
> Hi all,
>
> I have two questions.
>
> 1. In my attached script Moti3.ncl, I have two plots and am trying to overlay plot1 on plot2.
> I can zoom plot2 but can not zoom plot1. However, I can overlay plot1 on plot2.
> If somebody has similar problem and knows the resolution, I will appreciate the help.
>
> 2. I am using Imagemagick (convert command)
> convert -density 300 -resolution 800 X 600 wind.ps wind.png
> but it says convert does not have the resolution option.
> Is there another way to specify the resolution?
>
> Thank you.
>
> Moti
> Professor, Department of Environment and Occupational Health
> College of Public Health
> University of South Florida
> 13201 Bruce B. Downs Blvd., MDC56
> Tampa, Fl 33612-3805
>
> Tel: (813) 974-9571
> Fax: (813) 974-4986
> Email: mmittal_at_health.usf.edu
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> 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
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed May 20 2009 - 12:46:48 MDT

This archive was generated by hypermail 2.2.0 : Thu May 21 2009 - 16:54:57 MDT