<div dir="ltr"><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">Hi<br><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">I had surface emissions files for WRF-Chem which I&#39;m now trying to redistribute across 8 vertical levels by creating a new file. I tried working through this script but got an error:<br><span style="font-family:verdana,sans-serif"><br>begin<br><br>a = addfile(&quot;wrfchemi_00z_d01_pow_Oct.nc&quot;,&quot;r&quot;)<br>b = addfile(&quot;<a href="http://dummy.nc">dummy.nc</a>&quot;,&quot;c&quot;)<br>SO2 =  a-&gt;E_SO2(:,0,:,:) ;;;;;EXTRACTING THE SURFACE EMISSIONS<br>E_SO2 = new((/12,8,120,147/),float)<br></span></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif"><span style="font-family:verdana,sans-serif">;;NOW PARTITIONING INTO 8 LEVELS<br></span></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif"><span style="font-family:verdana,sans-serif">b-&gt;E_SO2(:,0,:,:) = 0.0 * SO2<br>b-&gt;E_SO2(:,1,:,:) = 0.3 * SO2<br>b-&gt;E_SO2(:,2,:,:) = 0.3 * SO2<br>b-&gt;E_SO2(:,3,:,:) = 0.1 * SO2<br>b-&gt;E_SO2(:,4,:,:) = 0.1 * SO2<br>b-&gt;E_SO2(:,5,:,:) = 0.1 * SO2<br>b-&gt;E_SO2(:,6,:,:) = 0.05 * SO2<br>b-&gt;E_SO2(:,7,:,:) = 0.05 * SO2<br><br>end</span><br><br><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">please help.<br><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">Thanks<br><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">Tabish<br><br clear="all"></div><div><div class="gmail_signature"><div dir="ltr"><div><div><font size="1"><span style="font-family:tahoma,sans-serif">Tabish U Ansari<br></span></font></div><font size="1"><span style="font-family:tahoma,sans-serif">PhD student, Lancaster Environment Center<br></span></font></div><font size="1"><span style="font-family:tahoma,sans-serif">Lancaster Univeristy<br> <span>Bailrigg</span>, <span>Lancaster</span>, <br><span>LA1 4YW</span>, <span>United Kingdom</span></span></font><br></div></div></div>
</div>