<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:10pt;color:#2672EC;background-color:#FFFFFF;font-family:Arial,Helvetica,sans-serif;">
<p><br>
</p>
<p>Hi All,</p>
<p><br>
</p>
<p>I did following two modifications and this error was removed.</p>
<p><br>
</p>
<p><span>res@gsnAddCyclic = False</span></p>
<p><span><span>plot(i) = gsn_csm_contour_map(wks,var,res)</span><br>
</span></p>
<p><br>
<span></span></p>
<p><span style="color: rgb(255, 0, 0);">But now I'm getting 1st plots data in all the plots. It is displaying only data of 1st nc file in all the plots. It is not reading rest files.</span></p>
<p><span style="color: rgb(255, 0, 0);"><br>
</span></p>
<p><span style="color: rgb(255, 0, 0);">Please help me out. </span><br>
</p>
<p><br>
</p>
<div id="Signature"><br>
<div id="divtagdefaultwrapper" style="font-size:10pt; color:#2672EC; background-color:#FFFFFF; font-family:Arial,Helvetica,sans-serif">
<font style="font-size:16pt" face="Arial" color="#2672EC" size="4">
<div style="min-height:1em; font-family:'Times New Roman'">Regards</div>
<div style="min-height:1em; font-family:'Times New Roman'">Amit Kumar,</div>
</font>
<div><font style="font-size:16pt" face="Arial" color="#2672EC" size="4"></font></div>
</div>
</div>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> Amit Kumar <amitkumar.777@hotmail.com><br>
<b>Sent:</b> Thursday, July 7, 2016 10:52 AM<br>
<b>To:</b> ncl-talk@ucar.edu<br>
<b>Subject:</b> warning:ScalarFieldSetValues: 2d coordinate array sfYArray has an incorrect dimension size: defaulting sfYArray</font>
<div> </div>
</div>
<div>
<div id="divtagdefaultwrapper" style="font-size:10pt; color:#2672EC; background-color:#FFFFFF; font-family:Arial,Helvetica,sans-serif">
<p><span>Hi All,</span></p>
<p><span><br>
</span></p>
<p><span>I'm new to NCL, I'm trying to make a panel plot of HEM for a day. so i concatenated all the files into one file using cdo.</span></p>
<p><span><br>
</span></p>
<p><span></span>amit@amit-HP-xw6400-Workstation:~/Desktop/images/output/UK$ cdo infov out2.nc<br>
<span></span><span><br>
</span></p>
<p><span></span></p>
<div> -1 : Date Time Level Gridsize Miss : Minimum Mean Maximum : Parameter name<br>
1 : 2016-06-30 10:00:00 0 3124 0 : 0.0000 0.18826 28.871 : HEM <br>
2 : 2016-06-30 10:30:00 0 3124 0 : 0.0000 0.40692 41.558 : HEM <br>
3 : 2016-06-30 11:00:00 0 3124 0 : 0.0000 0.27961 39.316 : HEM <br>
4 : 2016-06-30 11:30:00 0 3124 0 : 0.0000 0.39080 54.272 : HEM <br>
5 : 2016-06-30 12:00:00 0 3124 0 : 0.0000 0.24352 21.233 : HEM <br>
6 : 2016-06-30 12:30:00 0 3124 0 : 0.0000 0.34891 26.116 : HEM <br>
7 : 2016-06-30 13:00:00 0 3124 0 : 0.0000 0.31744 20.495 : HEM <br>
8 : 2016-06-30 13:30:00 0 3124 0 : 0.0000 0.26712 15.045 : HEM <br>
9 : 2016-06-30 14:00:00 0 3124 0 : 0.0000 0.14747 16.468 : HEM <br>
10 : 2016-06-30 14:30:00 0 3124 0 : 0.0000 0.21267 46.071 : HEM <br>
11 : 2016-06-30 15:00:00 0 3124 0 : 0.0000 0.46982 65.314 : HEM <br>
12 : 2016-06-30 15:30:00 0 3124 0 : 0.0000 0.57988 103.28 : HEM <br>
13 : 2016-06-30 16:00:00 0 3124 0 : 0.0000 0.34465 232.33 : HEM <br>
14 : 2016-06-30 16:30:00 0 3124 0 : 0.0000 0.65428 84.749 : HEM <br>
15 : 2016-06-30 17:00:00 0 3124 0 : 0.0000 1.4974 132.02 : HEM <br>
16 : 2016-06-30 17:30:00 0 3124 0 : 0.0000 1.3078 121.53 : HEM <br>
17 : 2016-06-30 18:00:00 0 3124 0 : 0.0000 1.5186 116.90 : HEM <br>
18 : 2016-06-30 18:30:00 0 3124 0 : 0.0000 2.8212 139.77 : HEM <br>
19 : 2016-06-30 19:00:00 0 3124 0 : 0.0000 4.9052 283.62 : HEM <br>
20 : 2016-06-30 19:30:00 0 3124 0 : 0.0000 3.9615 161.71 : HEM <br>
21 : 2016-06-30 20:00:00 0 3124 0 : 0.0000 3.8913 144.44 : HEM <br>
22 : 2016-06-30 20:30:00 0 3124 0 : 0.0000 7.5982 232.91 : HEM <br>
23 : 2016-06-30 21:00:00 0 3124 0 : 0.0000 2.8257 94.449 : HEM <br>
24 : 2016-06-30 21:30:00 0 3124 0 : 0.0000 2.3140 122.16 : HEM <br>
25 : 2016-06-30 22:00:00 0 3124 0 : 0.0000 2.4510 107.22 : HEM <br>
26 : 2016-06-30 22:30:00 0 3124 0 : 0.0000 3.0760 114.25 : HEM <br>
27 : 2016-06-30 23:00:00 0 3124 0 : 0.0000 2.5792 92.298 : HEM <br>
28 : 2016-06-30 23:30:00 0 3124 0 : 0.0000 3.4650 120.34 : HEM <br>
cdo infon: Processed 87472 values from 1 variable over 28 timesteps ( 0.00s )<br>
</div>
<br>
<span>when i'm trying to plot this in a panel i'm getting this error, <span style="color:rgb(189,19,152)">
warning:ScalarFieldSetValues: 2d coordinate array sfYArray has an incorrect dimension size: defaulting sfYArray. and the plots are blank.</span></span>
<p></p>
<p><span><span style="color:rgb(189,19,152)"><br>
</span></span></p>
<p><span><span style="color:rgb(189,19,152)"><span style="color:rgb(0,111,201)">my ncl script is as follows:</span></span></span></p>
<p><span><span style="color:rgb(189,19,152)"><span style="color:rgb(0,111,201)"><br>
</span></span></span></p>
<p><span><span style="color:rgb(189,19,152)"><span style="color:rgb(0,111,201)"></span></span></span></p>
<div>load "/usr/share/ncarg/nclscripts/csm/gsn_code.ncl"<br>
load "/usr/share/ncarg/nclscripts/csm/gsn_csm.ncl"<br>
load "/usr/share/ncarg/nclscripts/csm/contributed.ncl"<br>
<br>
begin<br>
<br>
a = addfile("/home/amit/Desktop/images/output/UK/out2.nc","r")<br>
s = "/media/amit/E/India_shapefile/Districtbound(Satmet).shp"<br>
<br>
var = doubletofloat(a->HEM(0,:,:))<br>
lat = a->latitude<br>
lon = a->longitude<br>
<br>
wks = gsn_open_wks("png","HEM_30JUN2016") ; send graphics to PNG file<br>
<br>
res = True ; plot mods desired<br>
res@gsnDraw = False<br>
res@gsnFrame = False<br>
res@gsnAddCyclic = True<br>
res@gsnStringFontHeightF = 0.015<br>
res@cnFillOn = True ; turn on color fill<br>
res@cnLinesOn = False<br>
res@gsnMaximize = True ; maximize plot in frame<br>
res@mpOutlineOn = False ; Use outlines from shapefile<br>
res@mpFillOn = False <br>
res@cnLevelSelectionMode = "ExplicitLevels" <br>
res@cnLevels = (/0.1,2.5,15.5,64.5,115.5,204.5,400.5,600.5,800.5/) ; ; 13 contour values<br>
res@cnFillPalette = (/"Snow","LightGoldenRodYellow","Yellow"\ ; 13 contour colors<br>
,"Orange","Green","Green4" \<br>
,"Cyan","Blue2","Blue3","Blue4"/) <br>
<br>
res@tiMainString = "HEM_30JUN2016"<br>
res@tiMainFontHeightF = 0.016 <br>
res@lbLabelBarOn = False<br>
res@lbOrientation = "Vertical"<br>
res@sfXArray = lon<br>
res@sfYArray = lat<br>
res@mpMinLonF = 78.0<br>
res@mpMaxLonF = 81.0<br>
res@mpMinLatF = 29.0<br>
res@mpMaxLatF = 31.0<br>
res@pmTickMarkDisplayMode = "Always"<br>
res@tiXAxisString = "Longitude"<br>
res@tiYAxisString = "Lattitude"<br>
res@tiXAxisFontHeightF = 0.02<br>
res@tiYAxisFontHeightF = 0.02 <br>
<br>
;create empty graphic plot array<br>
nplot = 28<br>
plot = new(nplot,"graphic")<br>
<br>
;create the plots<br>
do i=0,nplot-1<br>
if (i.ne.0) then<br>
res@gsnLeftString = ""<br>
res@gsnRightString = ""<br>
end if<br>
plot(i) = gsn_csm_contour_map_ce(wks,var,res)<br>
end do<br>
<br>
;panel res<br>
pres = True<br>
pres@gsnPanelTop = 0.96<br>
pres@gsnPanelBottom = 0.012<br>
pres@gsnPanelLabelBar = True<br>
pres@pmLabelBarOrthogonalPosF = -0.02<br>
pres@txstring = "Panel: 3 X 3 + Common label and title"<br>
pres@txFontHeightF = 0.020<br>
pres@txPosXF = 0.5<br>
pres@txPosYF = 0.85<br>
pres@txJust = "CenterCenter"<br>
<br>
gsn_panel(wks,plot,(/7,4/),pres)<br>
<br>
end </div>
<br>
<p></p>
<p>variable summary is as follows:<br>
</p>
<p><br>
Variable: var<br>
Type: float<br>
Total Size: 12496 bytes<br>
3124 values<br>
Number of Dimensions: 2<br>
Dimensions and sizes: [44] x [71]<br>
Coordinates: <br>
Number Of Attributes: 1<br>
_FillValue : -9e+33<br>
</p>
<p><br>
</p>
<p><span><span style="color:rgb(189,19,152)"><span style="color:rgb(0,111,201)">Please help me out of this</span></span></span><br>
</p>
<p><br>
</p>
<div id="Signature"><br>
<div id="divtagdefaultwrapper" style="font-size:10pt; color:#2672EC; background-color:#FFFFFF; font-family:Arial,Helvetica,sans-serif">
<font style="font-size:16pt" face="Arial" color="#2672EC" size="4">
<div style="min-height:1em; font-family:'Times New Roman'">Regards</div>
<div style="min-height:1em; font-family:'Times New Roman'">Amit Kumar,</div>
</font>
<div><font style="font-size:16pt" face="Arial" color="#2672EC" size="4"></font></div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>