[ncl-talk] gsn_csm_vector_scalar_map

Karin Meier-Fleischer meier-fleischer at dkrz.de
Sun Feb 7 06:52:57 MST 2016


Sorry, it has to be  min(pi(i,:,:)) and max(p(i,:,:)).


> Am 07.02.2016 um 14:42 schrieb Karin Meier-Fleischer <meier-fleischer at dkrz.de>:
> 
> What does min(p(i)) and max(p(i)) return?
> 
> 
>> Am 05.02.2016 um 21:21 schrieb alesall <alesall at iri.columbia.edu <mailto:alesall at iri.columbia.edu>>:
>> 
>> Hi, is it complaining that the spacing is too fine compared to the wide range between min and max values, and reverting to doing what it thinks best?
>> 
>> 
>> 
>> -- 
>> Alessandra Giannini
>> IRI for Climate and Society - The Earth Institute at Columbia University
>> P.O. Box 1000, Palisades NY 10964-8000
>> phone/fax: +1 845 680-4473/4864 - email: alesall at iri.columbia.edu <mailto:alesall at iri.columbia.edu>
>>> On Feb 5, 2016, at 3:19 PM, Xi Chang <xi.chang01 at gmail.com <mailto:xi.chang01 at gmail.com>> wrote:
>>> 
>>> Hi Karin,,
>>> 
>>> I did, but it doesnt work for gsn_csm_vector_scalar_map, no idea why..
>>> 
>>> Chang.
>>> 
>>> On Fri, Feb 5, 2016 at 7:53 PM, Karin Meier-Fleischer <meier-fleischer at dkrz.de <mailto:meier-fleischer at dkrz.de>> wrote:
>>> Hi Xi,
>>> 
>>> have you taken a look at the first example of the vector examples page
>>>     http://ncl.ucar.edu/Applications/Scripts/vector_1.ncl <http://ncl.ucar.edu/Applications/Scripts/vector_1.ncl>
>>> 
>>> When you want to control the minimum/maximum and interval of the contour lines use
>>>   res at cnLevelSelectionMode = "ManualLevels"     ; set manual contour levels
>>>   res at cnMinLevelValF       = 24.0               ; set min contour level
>>>   res at cnMaxLevelValF       = 29                 ; set max contour level
>>>   res at cnLevelSpacingF      = 0.10               ; set contour spacing
>>> Bye,
>>> Karin
>>> 
>>> Am 05.02.16 um 19:00 schrieb Xi Chang:
>>>> Hello...
>>>> 
>>>> Could you please tell me how to control the contour interval for color shading once im using this function  gsn_csm_vector_scalar_map.
>>>> 
>>>> ;===========PLOT=================
>>>> 
>>>>   wks = gsn_open_wks("png","overlay")
>>>> 
>>>>   res                       = True              ; plot mods desired
>>>>   plot = new(16,graphic)
>>>> 
>>>>   res at gsnDraw             = False           ; don't draw
>>>>   res at gsnFrame            = False           ; don't advance frame
>>>> 
>>>> ; vector rescoures
>>>>   res at vcRefLengthF             = 0.045
>>>>   res at vcRefMagnitudeF          = 20.0
>>>>   res at vcRefAnnoOrthogonalPosF  = -0.12
>>>>   res at vcRefAnnoParallelPosF    =  0.997
>>>>   res at vcRefAnnoFontHeightF     = 0.015
>>>>   res at vcMinDistanceF          = 0.03
>>>>   res at lbLabelBarOn        = False    
>>>> 
>>>>   res at mpProjection   = "AzimuthalEquidistant"  ; choose map projection
>>>>   res at mpLimitMode    = "LatLon"          ; use lat/lon coordinates to limit area
>>>>   res at mpMinLatF      = 25.
>>>>   res at mpMaxLatF      = 75.
>>>>   res at mpMinLonF      = -80.
>>>>   res at mpMaxLonF      = 20.
>>>>   res at gsnMaximize           = True   
>>>> 
>>>>   res at gsnScalarContour        = True
>>>>   res at cnFillOn                = True
>>>>   res at cnFillPalette           = "gui_default"     ; set color map
>>>>   res at cnLinesOn               = False             ; turn off contour lines
>>>> 
>>>> 
>>>> 
>>>>   do i=0,15
>>>>   plot(i)  = gsn_csm_vector_scalar_map(wks,u(i,:,:),v(i,:,:), \
>>>>                                    p(i,:,:),res)
>>>>   end do
>>>> 
>>>>   resP                     = True                ; modify the panel plot
>>>>   resP at gsnMaximize           = True   
>>>>   gsn_panel(wks,plot,(/4,4/),resP)               ; now draw as one plot
>>>> 
>>>> 
>>>> end
>>>> 
>>>> 
>>>> 
>>>> 
>>>> _______________________________________________
>>>> 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 <http://mailman.ucar.edu/mailman/listinfo/ncl-talk>
>>> 
>>> 
>>> _______________________________________________
>>> 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 <http://mailman.ucar.edu/mailman/listinfo/ncl-talk>
>>> 
>>> 
>>> _______________________________________________
>>> 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 <http://mailman.ucar.edu/mailman/listinfo/ncl-talk>
>> 
>> _______________________________________________
>> 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
> 
> ____________________________________
> Dipl. Geophys. Karin Meier-Fleischer
> Visualisierung
> Abteilung Anwendungen
> 
> Deutsches Klimarechenzentrum GmbH (DKRZ)
> Bundesstrasse 45a * D-20146 Hamburg                          
> Germany                                
> 
> Phone:	+49 (0)40 460094 126
> Fax:	+49 (0)40 460094 270
> E-Mail:	meier-fleischer at dkrz.de <mailto:meier-fleischer at dkrz.de>
> URL:	http://www.dkrz.de/ <http://www.dkrz.de/>
> 
> Geschäftsführer: Prof. Dr. Thomas Ludwig
> Sitz der Gesellschaft: Hamburg
> Amtsgericht Hamburg HRB 39784
> 
> 
> 
> 
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

____________________________________
Dipl. Geophys. Karin Meier-Fleischer
Visualisierung
Abteilung Anwendungen

Deutsches Klimarechenzentrum GmbH (DKRZ)
Bundesstrasse 45a * D-20146 Hamburg                          
Germany                                

Phone:	+49 (0)40 460094 126
Fax:	+49 (0)40 460094 270
E-Mail:	meier-fleischer at dkrz.de
URL:	http://www.dkrz.de/

Geschäftsführer: Prof. Dr. Thomas Ludwig
Sitz der Gesellschaft: Hamburg
Amtsgericht Hamburg HRB 39784




-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160207/8b59dfc6/attachment.html 


More information about the ncl-talk mailing list