<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"> 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) ; 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=""> Copyright (C) 1995-2014 - All Rights Reserved<br style="" class=""> University Corporation for Atmospheric Research<br style="" class=""> NCAR Command Language Version 6.2.1<br style="" class=""> The use of this software is governed by a License Agreement.<br style="" class=""> 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: $NCARG_ROOT/lib/ncarg/data/cdf/test.nc<br style="" class="">Number of global attributes: 6<br style="" class="">Number of dimensions: 13<br style="" class="">Number of variables: 107<br style="" class=""><br style="" class="">Variable: GPM850<br style="" class="">Type: float<br style="" class="">Total Size: 260640 bytes<br style="" class=""> 65160 values<br style="" class="">Number of Dimensions: 2<br style="" class="">Dimensions and sizes: [lat_0 | 181] x [lon_0 | 360]<br style="" class="">Coordinates: <br style="" class=""> lat_0: [90..-90]<br style="" class=""> lon_0: [ 0..359]<br style="" class="">Number Of Attributes: 13<br style="" class=""> lv_ISBL0 : 85000<br style="" class=""> initial_time : 04/23/2015 (12:00)<br style="" class=""> forecast_time_units : hours<br style="" class=""> forecast_time : 0<br style="" class=""> level_type : Isobaric surface (Pa)<br style="" class=""> parameter_template_discipline_category_number : ( 0, 0, 3, 5 )<br style="" class=""> parameter_discipline_and_category : Meteorological products, Mass<br style="" class=""> grid_type : Latitude/longitude<br style="" class=""> _FillValue : 1e+20<br style="" class=""> units : gpm<br style="" class=""> long_name : Geopotential height<br style="" class=""> production_status : Operational products<br style="" class=""> center : 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=""> 65160 values<br style="" class="">Number of Dimensions: 2<br style="" class="">Dimensions and sizes: [lat_0 | 181] x [lon_0 | 360]<br style="" class="">Coordinates: <br style="" class=""> lat_0: [90..-90]<br style="" class=""> lon_0: [ 0..359]<br style="" class="">Number Of Attributes: 13<br style="" class=""> lv_ISBL0 : 85000<br style="" class=""> initial_time : 04/23/2015 (12:00)<br style="" class=""> forecast_time_units : hours<br style="" class=""> forecast_time : 0<br style="" class=""> level_type : Isobaric surface (Pa)<br style="" class=""> parameter_template_discipline_category_number : ( 0, 0, 2, 2 )<br style="" class=""> parameter_discipline_and_category : Meteorological products, Momentum<br style="" class=""> grid_type : Latitude/longitude<br style="" class=""> _FillValue : 1e+20<br style="" class=""> units : m s-1<br style="" class=""> long_name : U-component of wind<br style="" class=""> production_status : Operational products<br style="" class=""> center : 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=""> 65160 values<br style="" class="">Number of Dimensions: 2<br style="" class="">Dimensions and sizes: [lat_0 | 181] x [lon_0 | 360]<br style="" class="">Coordinates: <br style="" class=""> lat_0: [90..-90]<br style="" class=""> lon_0: [ 0..359]<br style="" class="">Number Of Attributes: 13<br style="" class=""> lv_ISBL0 : 85000<br style="" class=""> initial_time : 04/23/2015 (12:00)<br style="" class=""> forecast_time_units : hours<br style="" class=""> forecast_time : 0<br style="" class=""> level_type : Isobaric surface (Pa)<br style="" class=""> parameter_template_discipline_category_number : ( 0, 0, 2, 3 )<br style="" class=""> parameter_discipline_and_category : Meteorological products, Momentum<br style="" class=""> grid_type : Latitude/longitude<br style="" class=""> _FillValue : 1e+20<br style="" class=""> units : m s-1<br style="" class=""> long_name : V-component of wind<br style="" class=""> production_status : Operational products<br style="" class=""> center : 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. </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->HGT_P0_L100_GLL0(20,:,:)<br style="" class="">Uwnd850=a->UGRD_P0_L100_GLL0(20,:,:)<br style="" class="">Vwnd850=a->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") ; open a ps file<br style="" class="">gsn_define_colormap(wks,"BlAqGrYeOrRe") ; will open a coloured wks<br style="" class=""><br style="" class="">res = True<br style="" class="">;;; Contour resouces;;;;<br style="" class=""> res@cnFillOn = True ; turn on color fill<br style="" class=""> res@cnLinesOn = False ; turn of contour lines<br style="" class="">; res@cnLevelSpacingF = 20 ; contour spacing<br style="" class=""> res@cnLevelSelectionMode = "ManualLevels" ;manually set contour levels with following 3 resources<br style="" class=""> res@cnMinLevelValF = 1400 ; set the minimum contour level<br style="" class=""> res@cnMaxLevelValF = 1600 ; set the maximum contour level<br style="" class=""> res@cnLevelSpacingF = 20<br style="" class=""><br style="" class="">; Plotting data for a domain<br style="" class=""> res@mpMinLatF = 5.0 ; range to zoom in on<br style="" class=""> res@mpMaxLatF = 30.<br style="" class=""> res@mpMinLonF = 60.<br style="" class=""> res@mpMaxLonF = 120.<br style="" class=""> res@cnLevelSelectionMode = "ManualLevels" ; manually set the contour levels with the following 3 resources<br style="" class="">;<br style="" class="">; VECTOR RESOURCES<br style="" class=""><br style="" class=""> res@vcRefMagnitudeF = 4.0 ; define vector ref mag<br style="" class=""> res@vcRefLengthF = 0.045 ; define length of vec ref<br style="" class=""><br style="" class=""> res@vcRefAnnoOrthogonalPosF = -1.0 ; move ref vector<br style="" class=""> res@vcRefAnnoArrowLineColor = "black" ; change ref vector color<br style="" class=""> res@vcRefAnnoArrowUseVecColor = False ; don't use vec color for ref<br style="" class=""><br style="" class=""> plot = gsn_csm_vector_scalar_map_ce(wks,Uwnd850,Vwnd850,GPM850,res) ; 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>