<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif;font-size:16px"><div id="yui_3_16_0_1_1432748405764_72550"><span id="yui_3_16_0_1_1432748405764_72598">I have to plot the GPM height, vector wind at 850 hpa. </span></div><div id="yui_3_16_0_1_1432748405764_72548"><div id="yui_3_16_0_1_1432748405764_72654">&nbsp;for this i am using the <br></div><div id="yui_3_16_0_1_1432748405764_72653" dir="ltr">plot = gsn_csm_vector_scalar_map_ce(wks,Uwnd850,Vwnd850,GPM850,res)&nbsp;&nbsp;&nbsp;&nbsp; ; create a default plot<br></div><div id="yui_3_16_0_1_1432748405764_72652" style="" class=""><br></div><div id="yui_3_16_0_1_1432748405764_72656" style="" class="">Following is the error. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<br></div><div dir="ltr" id="yui_3_16_0_1_1432748405764_72657" style="" class="">aditya@agniilap:~/geeta/ncl/myscripts_ncl$ ncl test.ncl<br style="" class="">&nbsp;Copyright (C) 1995-2014 - All Rights Reserved<br style="" class="">&nbsp;University Corporation for Atmospheric Research<br style="" class="">&nbsp;NCAR Command Language Version 6.2.1<br style="" class="">&nbsp;The use of this software is governed by a License Agreement.<br style="" class="">&nbsp;See http://www.ncl.ucar.edu/ for more details.<br style="" class=""><br style="" class="">Variable: a<br style="" class="">Type: file<br style="" class="">File path:&nbsp;&nbsp;&nbsp; $NCARG_ROOT/lib/ncarg/data/cdf/test.nc<br style="" class="">Number of global attributes:&nbsp;&nbsp;&nbsp; &nbsp;6<br style="" class="">Number of dimensions:&nbsp;&nbsp;&nbsp; &nbsp;13<br style="" class="">Number of variables:&nbsp;&nbsp;&nbsp; &nbsp;107<br style="" class=""><br style="" class="">Variable: GPM850<br style="" class="">Type: float<br style="" class="">Total Size: 260640 bytes<br style="" class="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 65160 values<br style="" class="">Number of Dimensions: 2<br style="" class="">Dimensions and sizes:&nbsp;&nbsp;&nbsp; [lat_0 | 181] x [lon_0 | 360]<br style="" class="">Coordinates: <br style="" class="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lat_0: [90..-90]<br style="" class="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lon_0: [ 0..359]<br style="" class="">Number Of Attributes: 13<br style="" class="">&nbsp; lv_ISBL0 :&nbsp;&nbsp;&nbsp; 85000<br style="" class="">&nbsp; initial_time :&nbsp;&nbsp;&nbsp; 04/23/2015 (12:00)<br style="" class="">&nbsp; forecast_time_units :&nbsp;&nbsp;&nbsp; hours<br style="" class="">&nbsp; forecast_time :&nbsp;&nbsp;&nbsp; 0<br style="" class="">&nbsp; level_type :&nbsp;&nbsp;&nbsp; Isobaric surface (Pa)<br style="" class="">&nbsp; parameter_template_discipline_category_number :&nbsp;&nbsp;&nbsp; ( 0, 0, 3, 5 )<br style="" class="">&nbsp; parameter_discipline_and_category :&nbsp;&nbsp;&nbsp; Meteorological products, Mass<br style="" class="">&nbsp; grid_type :&nbsp;&nbsp;&nbsp; Latitude/longitude<br style="" class="">&nbsp; _FillValue :&nbsp;&nbsp;&nbsp; 1e+20<br style="" class="">&nbsp; units :&nbsp;&nbsp;&nbsp; gpm<br style="" class="">&nbsp; long_name :&nbsp;&nbsp;&nbsp; Geopotential height<br style="" class="">&nbsp; production_status :&nbsp;&nbsp;&nbsp; Operational products<br style="" class="">&nbsp; center :&nbsp;&nbsp;&nbsp; US National Weather Service - NCEP (WMC)<br style="" class=""><br style="" class="">Variable: Uwnd850<br style="" class="">Type: float<br style="" class="">Total Size: 260640 bytes<br style="" class="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 65160 values<br style="" class="">Number of Dimensions: 2<br style="" class="">Dimensions and sizes:&nbsp;&nbsp;&nbsp; [lat_0 | 181] x [lon_0 | 360]<br style="" class="">Coordinates: <br style="" class="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lat_0: [90..-90]<br style="" class="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lon_0: [ 0..359]<br style="" class="">Number Of Attributes: 13<br style="" class="">&nbsp; lv_ISBL0 :&nbsp;&nbsp;&nbsp; 85000<br style="" class="">&nbsp; initial_time :&nbsp;&nbsp;&nbsp; 04/23/2015 (12:00)<br style="" class="">&nbsp; forecast_time_units :&nbsp;&nbsp;&nbsp; hours<br style="" class="">&nbsp; forecast_time :&nbsp;&nbsp;&nbsp; 0<br style="" class="">&nbsp; level_type :&nbsp;&nbsp;&nbsp; Isobaric surface (Pa)<br style="" class="">&nbsp; parameter_template_discipline_category_number :&nbsp;&nbsp;&nbsp; ( 0, 0, 2, 2 )<br style="" class="">&nbsp; parameter_discipline_and_category :&nbsp;&nbsp;&nbsp; Meteorological products, Momentum<br style="" class="">&nbsp; grid_type :&nbsp;&nbsp;&nbsp; Latitude/longitude<br style="" class="">&nbsp; _FillValue :&nbsp;&nbsp;&nbsp; 1e+20<br style="" class="">&nbsp; units :&nbsp;&nbsp;&nbsp; m s-1<br style="" class="">&nbsp; long_name :&nbsp;&nbsp;&nbsp; U-component of wind<br style="" class="">&nbsp; production_status :&nbsp;&nbsp;&nbsp; Operational products<br style="" class="">&nbsp; center :&nbsp;&nbsp;&nbsp; US National Weather Service - NCEP (WMC)<br style="" class=""><br style="" class="">Variable: Vwnd850<br style="" class="">Type: float<br style="" class="">Total Size: 260640 bytes<br style="" class="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 65160 values<br style="" class="">Number of Dimensions: 2<br style="" class="">Dimensions and sizes:&nbsp;&nbsp;&nbsp; [lat_0 | 181] x [lon_0 | 360]<br style="" class="">Coordinates: <br style="" class="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lat_0: [90..-90]<br style="" class="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lon_0: [ 0..359]<br style="" class="">Number Of Attributes: 13<br style="" class="">&nbsp; lv_ISBL0 :&nbsp;&nbsp;&nbsp; 85000<br style="" class="">&nbsp; initial_time :&nbsp;&nbsp;&nbsp; 04/23/2015 (12:00)<br style="" class="">&nbsp; forecast_time_units :&nbsp;&nbsp;&nbsp; hours<br style="" class="">&nbsp; forecast_time :&nbsp;&nbsp;&nbsp; 0<br style="" class="">&nbsp; level_type :&nbsp;&nbsp;&nbsp; Isobaric surface (Pa)<br style="" class="">&nbsp; parameter_template_discipline_category_number :&nbsp;&nbsp;&nbsp; ( 0, 0, 2, 3 )<br style="" class="">&nbsp; parameter_discipline_and_category :&nbsp;&nbsp;&nbsp; Meteorological products, Momentum<br style="" class="">&nbsp; grid_type :&nbsp;&nbsp;&nbsp; Latitude/longitude<br style="" class="">&nbsp; _FillValue :&nbsp;&nbsp;&nbsp; 1e+20<br style="" class="">&nbsp; units :&nbsp;&nbsp;&nbsp; m s-1<br style="" class="">&nbsp; long_name :&nbsp;&nbsp;&nbsp; V-component of wind<br style="" class="">&nbsp; production_status :&nbsp;&nbsp;&nbsp; Operational products<br style="" class="">&nbsp; center :&nbsp;&nbsp;&nbsp; US National Weather Service - NCEP (WMC)<br style="" class="">warning:cnFillOn is not a valid resource in ce_vector at this time<br style="" class="">warning:cnLevelSelectionMode is not a valid resource in ce_vector at this time<br style="" class="">warning:cnMinLevelValF is not a valid resource in ce_vector at this time<br style="" class="">warning:cnMaxLevelValF is not a valid resource in ce_vector at this time<br style="" class="">warning:cnLevelSpacingF is not a valid resource in ce_vector at this time<br style="" class="">warning:cnLinesOn is not a valid resource in ce_vector at this time<br style="" class=""></div><div id="yui_3_16_0_1_1432748405764_72766" dir="ltr" style="" class=""><br></div><div id="yui_3_16_0_1_1432748405764_72864" dir="ltr" style="" class=""><br></div><div id="yui_3_16_0_1_1432748405764_72789" dir="ltr" style="" class="">I m a beginner with NCL. <br></div><div id="yui_3_16_0_1_1432748405764_72791" dir="ltr" style="" class="">Pls answer to my query. <br></div><div id="yui_3_16_0_1_1432748405764_72793" dir="ltr" style="" class="">I am attaching my script.&nbsp;</div><div id="yui_3_16_0_1_1432748405764_72870" dir="ltr" style="" class="">;************************************************<br style="" class="">load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"<br style="" class="">load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"<br style="" class="">begin<br style="" class="">a=addfile("$NCARG_ROOT/lib/ncarg/data/cdf/test.nc","r")<br style="" class="">GPM850=a-&gt;HGT_P0_L100_GLL0(20,:,:)<br style="" class="">Uwnd850=a-&gt;UGRD_P0_L100_GLL0(20,:,:)<br style="" class="">Vwnd850=a-&gt;VGRD_P0_L100_GLL0(20,:,:)<br style="" class="">printVarSummary(a)<br style="" class="">printVarSummary(GPM850)<br style="" class="">printVarSummary(Uwnd850)<br style="" class="">printVarSummary(Vwnd850)<br style="" class="">; create workstation;;;;<br style="" class="">;<br style="" class="">wks = gsn_open_wks("png","ce")&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ; open a ps file<br style="" class="">gsn_define_colormap(wks,"BlAqGrYeOrRe")&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ; will open a coloured wks<br style="" class=""><br style="" class="">res&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = True<br style="" class="">;;; Contour resouces;;;;<br style="" class="">&nbsp; res@cnFillOn&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = True&nbsp;&nbsp;&nbsp;&nbsp; ; turn on color fill<br style="" class="">&nbsp; res@cnLinesOn&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = False&nbsp;&nbsp;&nbsp; ; turn of contour lines<br style="" class="">;&nbsp; res@cnLevelSpacingF&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 20&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ; contour spacing<br style="" class="">&nbsp; res@cnLevelSelectionMode = "ManualLevels" ;manually set contour levels with following 3 resources<br style="" class="">&nbsp; res@cnMinLevelValF&nbsp; = 1400&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ; set the minimum contour level<br style="" class="">&nbsp; res@cnMaxLevelValF&nbsp; = 1600&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ; set the maximum contour level<br style="" class="">&nbsp; res@cnLevelSpacingF = 20<br style="" class=""><br style="" class="">; Plotting data for a domain<br style="" class="">&nbsp; res@mpMinLatF&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 5.0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ; range to zoom in on<br style="" class="">&nbsp; res@mpMaxLatF&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =&nbsp; 30.<br style="" class="">&nbsp; res@mpMinLonF&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =&nbsp; 60.<br style="" class="">&nbsp; res@mpMaxLonF&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 120.<br style="" class="">&nbsp; res@cnLevelSelectionMode = "ManualLevels"&nbsp;&nbsp;&nbsp;&nbsp; ; manually set the contour levels with the following 3 resources<br style="" class="">;<br style="" class="">; VECTOR RESOURCES<br style="" class=""><br style="" class="">&nbsp; res@vcRefMagnitudeF&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 4.0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ; define vector ref mag<br style="" class="">&nbsp; res@vcRefLengthF&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 0.045&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ; define length of vec ref<br style="" class=""><br style="" class="">&nbsp; res@vcRefAnnoOrthogonalPosF&nbsp;&nbsp; = -1.0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ; move ref vector<br style="" class="">&nbsp; res@vcRefAnnoArrowLineColor&nbsp;&nbsp; = "black"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ; change ref vector color<br style="" class="">&nbsp; res@vcRefAnnoArrowUseVecColor = False&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ; don't use vec color for ref<br style="" class=""><br style="" class="">&nbsp; plot = gsn_csm_vector_scalar_map_ce(wks,Uwnd850,Vwnd850,GPM850,res)&nbsp;&nbsp;&nbsp;&nbsp; ; create a default plot<br style="" class="">end<br style="" class=""><br style="" class=""></div><div id="yui_3_16_0_1_1432748405764_72657" style="" class=""><br style="" class=""></div></div><div id="yui_3_16_0_1_1432748405764_72546"><div id="yui_3_16_0_1_1432748405764_72545">Geeta. </div></div></div></body></html>