<div dir="ltr"><div>The source array is: [model | 18] x [time | 228] x [lat | 360] x [lon | 720]</div><div><br></div><div>The output array from:<br></div><div><br></div><div>wetland_CH4_emissions = dim_avg_n_Wrap(wetland_CH4_emissions_ens,0)</div><div><br></div><div>should be 3-dimensions: [time | 228] x [lat | 360] x [lon | 720]</div><div><br></div><div>You show 4-dimensions.<br></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Apr 23, 2021 at 10:07 AM xiaoming Hu via ncl-talk <<a href="mailto:ncl-talk@mailman.ucar.edu">ncl-talk@mailman.ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr">
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
I have used dim_avg_n_Wrap for a long time and never had issues. But today it led to all nan, any idea? Thanks,<br>
xiaoming<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
See my code: <br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
printVarSummary(wetland_CH4_emissions_ens)
<div> printMinMax(wetland_CH4_emissions_ens,0)</div>
wetland_CH4_emissions = dim_avg_n_Wrap(wetland_CH4_emissions_ens,0) ; [model | 18] x [time | 228] x [lat | 360] x [lon | 720]
<div> print("got ensembe everage")</div>
<div> printMinMax(wetland_CH4_emissions,0)</div>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
and output: <br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Variable: wetland_CH4_emissions_ens
<div>Type: double</div>
<div>Total Size: 8510054400 bytes</div>
<div> 1063756800 values</div>
<div>Number of Dimensions: 4</div>
<div>Dimensions and sizes: [model | 18] x [time | 228] x [lat | 360] x [lon | 720]</div>
<div>Coordinates: </div>
<div> model: [1913..3934]</div>
<div> time: [ 1.. 228]</div>
<div>Number Of Attributes: 1</div>
<div> units : mg CH4 m-2 day-1</div>
<div>(0) min=-0 max=535.915259495705</div>
<div>(0) got ensembe everage</div>
<div>(0) min=-nan max=-nan</div>
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
</div>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@mailman.ucar.edu" target="_blank">ncl-talk@mailman.ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="https://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">https://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></blockquote></div>