<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif">Franz,</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">
Try change your code line: 17299 - 17301 from:</div><div class="gmail_default" style><div class="gmail_default" style><font face="verdana, sans-serif">LeftStringC(imod) = "z("+ilev+")="+depth1dtC_surf(imod,ilev)+"m range=["+ \</font></div>
<div class="gmail_default" style><font face="verdana, sans-serif">sprintf("%0.2f",min(tempC(imod,itime,ilev,0:ny(imod)-1,0:nx(imod)-1)))+","+ \</font></div><div class="gmail_default" style><font face="verdana, sans-serif">sprintf("%0.2f",max(tempC(imod,itime,ilev,0:ny(imod)-1,0:nx(imod)-1)))+"]"</font></div>
<div class="gmail_default" style><font face="verdana, sans-serif"><br></font></div><div class="gmail_default" style><font face="verdana, sans-serif">to:</font></div><div class="gmail_default" style><font face="verdana, sans-serif"><br>
</font></div><div class="gmail_default" style><font face="verdana, sans-serif">mintempCstring = sprintf("%0.2f",min(tempC(imod,itime,ilev,0:ny(imod)-1,0:nx(imod)-1)))</font></div><div class="gmail_default" style>
<font face="verdana, sans-serif">maxtempCstring = sprintf("%0.2f",max(tempC(imod,itime,ilev,0:ny(imod)-1,0:nx(imod)-1)))</font></div><div class="gmail_default" style><font face="verdana, sans-serif">LeftStringC(imod) = "z("+ilev+")="+depth1dtC_surf(imod,ilev)+"m range=["+ \</font></div>
<div class="gmail_default" style><font face="verdana, sans-serif"> mintempCstring+","+ \</font></div><div class="gmail_default" style><font face="verdana, sans-serif"> maxtempCstring+"]"</font></div>
<div style="font-family:verdana,sans-serif"><br></div><div style="font-family:verdana,sans-serif">and let us see if the error persist.</div><div style="font-family:verdana,sans-serif"><br></div><div style="font-family:verdana,sans-serif">
Wei</div></div></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr"><font face="tahoma, sans-serif">================================================</font><div><font face="tahoma, sans-serif">1850 Table Mesa Dr.</font></div>
<div><font face="tahoma, sans-serif">Boulder, CO 80307</font></div><div><font face="tahoma, sans-serif">Phone: 303-497-8924</font></div></div></div>
<br><br><div class="gmail_quote">On Thu, Jul 24, 2014 at 11:05 AM, franz <span dir="ltr"><<a href="mailto:f.trotta@sincem.unibo.it" target="_blank">f.trotta@sincem.unibo.it</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Dear ncl-team<br>
I'm using the ncl 6.1.2 on imac Darwin 64bit<br>
I got this fatal error: "Assignment not supported for left-hand type"<br>
and I don't understand the source of this error.<br>
<br>
Below there is part of my code (where I think NCL does not like)<br>
(I putted printVarSummary(...) to shows the info of the suspected<br>
variables)<br>
<br>
|<br>
|<br>
228 nmod = 2<br>
|<br>
|<br>
1371 LeftStringC = new(2,string)<br>
|<br>
|<br>
|<br>
1428 do imod=0,nmod-1<br>
1429<br>
|<br>
|<br>
|<br>
16321<br>
16322 end do ;imod<br>
<br>
|<br>
|<br>
|<br>
17276 if(lplot_outModSurfC) then<br>
17277<br>
17278 if (lplot_outModSurfC_temp) then<br>
17279<br>
17280 print("")<br>
17281 print(" ### Plot SURF-TEMP")<br>
17282 system("cd " + path_exp_figure_comp+"/outNemo/temp ; rm<br>
temp*.png")<br>
17283<br>
17284 tempC_diff(0:nt_max-1,0:nz_max-1,0:ny_max-1,0:nx_max-1) =<br>
\<br>
17285<br>
tempC(1,0:nt_max-1,0:nz_max-1,0:ny_max-1,0:nx_max-1) - \<br>
17286<br>
tempC(0,0:nt_max-1,0:nz_max-1,0:ny_max-1,0:nx_max-1)<br>
17287<br>
17288 colorsMap = "rainbow"<br>
17289 namefile = "tempC_xy"<br>
17290 titleplot = "Temperature"<br>
17291 label = " "<br>
17292 ilev = 0<br>
17293 itime = 0<br>
17294 printVarSummary(LeftStringC)<br>
17295 printVarSummary(depth1dtC_surf)<br>
17296 printVarSummary(tempC)<br>
17297 do imod=0,1<br>
17298 print("imod="+imod)<br>
17299 LeftStringC(imod) =<br>
"z("+ilev+")="+depth1dtC_surf(imod,ilev)+"m range=["+ \<br>
17300<br>
sprintf("%0.2f",min(tempC(imod,itime,ilev,0:ny(imod)-1,0:nx(imod)-1)))+","+ \<br>
17301<br>
sprintf("%0.2f",max(tempC(imod,itime,ilev,0:ny(imod)-1,0:nx(imod)-1)))+"]"<br>
17302 end do<br>
17303 minLevelVal = minTemp<br>
17304 maxLevelVal = maxTemp<br>
17305 levelSpacing = dTemp<br>
17306 diffLevVal(0) = minTemp_diff<br>
17307 diffLevVal(1) = maxTemp_diff<br>
17308 diffLevVal(2) = dTemp_diff<br>
17309 if(ltext) then print(" ### "+titleplot+" "+label+"<br>
ilev="+sprinti("%0.3i", ilev)) end if<br>
17310<br>
mplot_2Dfield_xy(namefile,typefile,inforun(0),colorsMap,titleplot,label,LeftStringC(0:1), \<br>
17311 nx(0:1),ny(0:1), \<br>
17312 lon2dtC_surf(0:1,0:ny_max-1,0:nx_max-1),<br>
\<br>
17313 lat2dtC_surf(0:1,0:ny_max-1,0:nx_max-1),<br>
\<br>
17314<br>
tempC(0:1,itime,ilev,0:ny_max-1,0:nx_max-1), \<br>
17315<br>
tempC_diff(itime,ilev,0:ny_max-1,0:nx_max-1), \<br>
17316 minLatF,maxLatF,minLonF,maxLonF, \<br>
17317 minLevelVal,maxLevelVal,levelSpacing, \<br>
17318<br>
diffLevVal(0),diffLevVal(1),diffLevVal(2))<br>
<br>
|<br>
|<br>
|<br>
<br>
<br>
<br>
end the ERROR message is:<br>
<br>
<br>
<br>
(0)<br>
(0) ### Plot SURF-TEMP<br>
rm: temp*.png: No such file or directory<br>
<br>
Variable: LeftStringC<br>
Type: string<br>
Total Size: 16 bytes<br>
2 values<br>
Number of Dimensions: 1<br>
Dimensions and sizes: [2]<br>
Coordinates:<br>
Number Of Attributes: 1<br>
_FillValue : missing<br>
<br>
Variable: depth1dtC_surf<br>
Type: float<br>
Total Size: 800 bytes<br>
200 values<br>
Number of Dimensions: 2<br>
Dimensions and sizes: [2] x [deptht | 100]<br>
Coordinates:<br>
deptht: [0.5031146..1787.05]<br>
Number Of Attributes: 8<br>
axis : Z<br>
positive : down<br>
standard_name : depth<br>
long_name : depth<br>
units : m<br>
valid_min : 0.5031146<br>
valid_max : 1787.05<br>
_FillValue : 9.96921e+36<br>
<br>
Variable: tempC<br>
Type: float<br>
Total Size: 892800000 bytes<br>
223200000 values<br>
Number of Dimensions: 5<br>
Dimensions and sizes: [2] x [time_counter | 72] x [deptht | 100] x [y |<br>
100] x [x | 155]<br>
Coordinates:<br>
time_counter: [3600..259200]<br>
deptht: [0.5031146..1787.05]<br>
y: [41.5..43.5625]<br>
x: [9.35..12.55833]<br>
Number Of Attributes: 8<br>
missing_value : 1e+20<br>
coordinates : time depth lat lon<br>
units : degC<br>
long_name : temperature<br>
standard_name : sea_water_potential_temperature<br>
valid_min : 8.159986<br>
valid_max : 14.30364<br>
_FillValue : 1e+20<br>
fatal:Assignment not supported for left-hand type<br>
fatal:["Execute.c":8128]:Execute: Error occurred at or near line 17302<br>
in file main.ncl<br>
<br>
<br>
thanks<br>
Francesco Trotta<br>
<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>
</blockquote></div><br></div>