<div dir="ltr">Geeta,<div><br></div><div>I don't see an error here. A "warning" is just letting you know that something *might* be wrong. An error means the file wasn't produced. What does your output look like? From what I can see in a quick look, there's nothing wrong with your script and the file should be produced correctly. If not, send us the file and any actual errors (usually starting with "fatal:"</div><div><br></div><div>Also, if you are new to NCL, please refer more to the NCL documentation:</div><div><br></div><div><a href="http://www.ncl.ucar.edu/Document/" target="_blank">http://www.ncl.ucar.edu/Document/</a><br></div><div><br></div><div>and especially the first link, the reference manual.</div><div><br></div><div>However, you've been posting to ncl-talk for over a year and really should be developing some more of your own skills by now - we won't be able to help you with your code forever! Good luck!</div><div><br></div><div><br></div><div>Kyle</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr">----------------------------------------<div>Kyle S. Griffin</div><div>Department of Atmospheric and Oceanic Sciences</div><div>University of Wisconsin - Madison</div><div>Room 1421</div><div>1225 W Dayton St, Madison, WI 53706</div><div>Email: <a href="mailto:ksgriffin2@wisc.edu" target="_blank">ksgriffin2@wisc.edu</a></div></div></div></div>
<br><div class="gmail_quote">On Wed, May 27, 2015 at 2:26 PM, Geeta Geeta <span dir="ltr"><<a href="mailto:geetag54@yahoo.com" target="_blank">geetag54@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,Sans-Serif;font-size:16px"><div><span>I have to plot the GPM height, vector wind at 850 hpa. </span></div><div><div> for this i am using the <br></div><div dir="ltr">plot = gsn_csm_vector_scalar_map_ce(wks,Uwnd850,Vwnd850,GPM850,res) ; create a default plot<br></div><div><br></div><div>Following is the error. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<br></div><div dir="ltr">aditya@agniilap:~/geeta/ncl/myscripts_ncl$ ncl test.ncl<br> Copyright (C) 1995-2014 - All Rights Reserved<br> University Corporation for Atmospheric Research<br> NCAR Command Language Version 6.2.1<br> The use of this software is governed by a License Agreement.<br> See <a href="http://www.ncl.ucar.edu/" target="_blank">http://www.ncl.ucar.edu/</a> for more details.<br><br>Variable: a<br>Type: file<br>File path: $NCARG_ROOT/lib/ncarg/data/cdf/<a href="http://test.nc" target="_blank">test.nc</a><br>Number of global attributes: 6<br>Number of dimensions: 13<br>Number of variables: 107<br><br>Variable: GPM850<br>Type: float<br>Total Size: 260640 bytes<br> 65160 values<br>Number of Dimensions: 2<br>Dimensions and sizes: [lat_0 | 181] x [lon_0 | 360]<br>Coordinates: <br> lat_0: [90..-90]<br> lon_0: [ 0..359]<br>Number Of Attributes: 13<br> lv_ISBL0 : 85000<br> initial_time : 04/23/2015 (12:00)<br> forecast_time_units : hours<br> forecast_time : 0<br> level_type : Isobaric surface (Pa)<br> parameter_template_discipline_category_number : ( 0, 0, 3, 5 )<br> parameter_discipline_and_category : Meteorological products, Mass<br> grid_type : Latitude/longitude<br> _FillValue : 1e+20<br> units : gpm<br> long_name : Geopotential height<br> production_status : Operational products<br> center : US National Weather Service - NCEP (WMC)<br><br>Variable: Uwnd850<br>Type: float<br>Total Size: 260640 bytes<br> 65160 values<br>Number of Dimensions: 2<br>Dimensions and sizes: [lat_0 | 181] x [lon_0 | 360]<br>Coordinates: <br> lat_0: [90..-90]<br> lon_0: [ 0..359]<br>Number Of Attributes: 13<br> lv_ISBL0 : 85000<br> initial_time : 04/23/2015 (12:00)<br> forecast_time_units : hours<br> forecast_time : 0<br> level_type : Isobaric surface (Pa)<br> parameter_template_discipline_category_number : ( 0, 0, 2, 2 )<br> parameter_discipline_and_category : Meteorological products, Momentum<br> grid_type : Latitude/longitude<br> _FillValue : 1e+20<br> units : m s-1<br> long_name : U-component of wind<br> production_status : Operational products<br> center : US National Weather Service - NCEP (WMC)<br><br>Variable: Vwnd850<br>Type: float<br>Total Size: 260640 bytes<br> 65160 values<br>Number of Dimensions: 2<br>Dimensions and sizes: [lat_0 | 181] x [lon_0 | 360]<br>Coordinates: <br> lat_0: [90..-90]<br> lon_0: [ 0..359]<br>Number Of Attributes: 13<br> lv_ISBL0 : 85000<br> initial_time : 04/23/2015 (12:00)<br> forecast_time_units : hours<br> forecast_time : 0<br> level_type : Isobaric surface (Pa)<br> parameter_template_discipline_category_number : ( 0, 0, 2, 3 )<br> parameter_discipline_and_category : Meteorological products, Momentum<br> grid_type : Latitude/longitude<br> _FillValue : 1e+20<br> units : m s-1<br> long_name : V-component of wind<br> production_status : Operational products<br> center : US National Weather Service - NCEP (WMC)<br>warning:cnFillOn is not a valid resource in ce_vector at this time<br>warning:cnLevelSelectionMode is not a valid resource in ce_vector at this time<br>warning:cnMinLevelValF is not a valid resource in ce_vector at this time<br>warning:cnMaxLevelValF is not a valid resource in ce_vector at this time<br>warning:cnLevelSpacingF is not a valid resource in ce_vector at this time<br>warning:cnLinesOn is not a valid resource in ce_vector at this time<br></div><div dir="ltr"><br></div><div dir="ltr"><br></div><div dir="ltr">I m a beginner with NCL. <br></div><div dir="ltr">Pls answer to my query. <br></div><div dir="ltr">I am attaching my script. </div><div dir="ltr">;************************************************<br>load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"<br>load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"<br>begin<br>a=addfile("$NCARG_ROOT/lib/ncarg/data/cdf/<a href="http://test.nc" target="_blank">test.nc</a>","r")<br>GPM850=a->HGT_P0_L100_GLL0(20,:,:)<br>Uwnd850=a->UGRD_P0_L100_GLL0(20,:,:)<br>Vwnd850=a->VGRD_P0_L100_GLL0(20,:,:)<br>printVarSummary(a)<br>printVarSummary(GPM850)<br>printVarSummary(Uwnd850)<br>printVarSummary(Vwnd850)<br>; create workstation;;;;<br>;<br>wks = gsn_open_wks("png","ce") ; open a ps file<br>gsn_define_colormap(wks,"BlAqGrYeOrRe") ; will open a coloured wks<br><br>res = True<br>;;; Contour resouces;;;;<br> res@cnFillOn = True ; turn on color fill<br> res@cnLinesOn = False ; turn of contour lines<br>; res@cnLevelSpacingF = 20 ; contour spacing<br> res@cnLevelSelectionMode = "ManualLevels" ;manually set contour levels with following 3 resources<br> res@cnMinLevelValF = 1400 ; set the minimum contour level<br> res@cnMaxLevelValF = 1600 ; set the maximum contour level<br> res@cnLevelSpacingF = 20<br><br>; Plotting data for a domain<br> res@mpMinLatF = 5.0 ; range to zoom in on<br> res@mpMaxLatF = 30.<br> res@mpMinLonF = 60.<br> res@mpMaxLonF = 120.<br> res@cnLevelSelectionMode = "ManualLevels" ; manually set the contour levels with the following 3 resources<br>;<br>; VECTOR RESOURCES<br><br> res@vcRefMagnitudeF = 4.0 ; define vector ref mag<br> res@vcRefLengthF = 0.045 ; define length of vec ref<br><br> res@vcRefAnnoOrthogonalPosF = -1.0 ; move ref vector<br> res@vcRefAnnoArrowLineColor = "black" ; change ref vector color<br> res@vcRefAnnoArrowUseVecColor = False ; don't use vec color for ref<br><br> plot = gsn_csm_vector_scalar_map_ce(wks,Uwnd850,Vwnd850,GPM850,res) ; create a default plot<br>end<span class="HOEnZb"><font color="#888888"><br><br></font></span></div><span class="HOEnZb"><font color="#888888"><div><br></div></font></span></div><span class="HOEnZb"><font color="#888888"><div><div>Geeta. </div></div></font></span></div></div><br>_______________________________________________<br>
ncl-talk mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>