<div dir="ltr"><div><div><div>Dear NCL users,<br><br></div><div>I am trying to calculate the coefficient of divergence using the attached script. The script is running successfully but I am getting only one value i.e. 1 as a minimum and maximum value which should come in between 0 to 1. And because of that I am also receiving the warning such as <br></div><br><span style="color:rgb(255,0,0)">warning:ContourPlotInitialize: scalar field is constant; no contour lines will appear; use cnConstFEnableFill to enable fill</span><br>if I set<br><pre>res@cnConstFEnableFill = True</pre>then the whole field is drawn in a single color as expected it will give only one color. <br><pre><br></pre><br></div><div>Regarding data<br></div><div>The data is in different 5 grid structure covering different Indian region so I merged them and got one single file which cover whole Indian region and then runs the attached script. <br><br></div><div>Before merging the data, I used the same script for different grid structures separately and it was giving the correct values between 0 to 1. <br><br>But this time I am getting only one value.<br><br></div><div>So could anyone please provide some information on that. <br></div><br></div> <br> <b>Copyright (C) 1995-2017 - All Rights Reserved<br> University Corporation for Atmospheric Research<br> NCAR Command Language Version 6.4.0<br> The use of this software is governed by a License Agreement.<br> See <a href="http://www.ncl.ucar.edu/">http://www.ncl.ucar.edu/</a> for more details.<br><br>Variable: totc<br>Type: double<br>Total Size: 4050173952 bytes<br> 506271744 values<br>Number of Dimensions: 3<br>Dimensions and sizes: [time | 96] x [lat | 2112] x [lon | 2497]<br>Coordinates: <br> time: [35430.125..104813.7916666667]<br> lat: [5.0078125..37.9921875]<br> lon: [ 59.. 98]<br>Number Of Attributes: 6<br> _FillValue : -28672<br> long_name : AOT at 0.55 micron<br> hdfeos_name : Optical_Depth_055<br> projection : Albers Conical Equal_Area<br> unit : None<br> missing_value : -28672<br><br>Variable: totc<br>Type: double<br>Total Size: 4050173952 bytes<br> 506271744 values<br>Number of Dimensions: 3<br>Dimensions and sizes: [time | 96] x [lat | 2112] x [lon | 2497]<br>Coordinates: <br> time: [35430.125..104813.7916666667]<br> lat: [5.0078125..37.9921875]<br> lon: [ 59.. 98]<br>Number Of Attributes: 6<br> _FillValue : -28672<br> long_name : AOT at 0.55 micron<br> hdfeos_name : Optical_Depth_055<br> projection : Albers Conical Equal_Area<br> unit : None<br> missing_value : -28672<br><br>Variable: data_subset<br>Type: double<br>Total Size: 295196160 bytes<br> 36899520 values<br>Number of Dimensions: 3<br>Dimensions and sizes: [time | 96] x [lat | 646] x [lon | 595]<br>Coordinates: <br> time: [35430.125..104813.7916666667]<br> lat: [29.5234375..19.4453125]<br> lon: [91.390625..82.109375]<br>Number Of Attributes: 6<br> missing_value : -28672<br> unit : None<br> projection : Albers Conical Equal_Area<br> hdfeos_name : Optical_Depth_055<br> long_name : AOT at 0.55 micron<br> _FillValue : -28672<br>(0) nearest location: k=0 n=481 m=882 156.836 5297.11<br>(0) -----<br>(0) -----<br><br>Variable: CoD1<br>Type: double<br>Total Size: 295196160 bytes<br> 36899520 values<br>Number of Dimensions: 3<br>Dimensions and sizes: [96] x [646] x [595]<br>Coordinates: <br>Number Of Attributes: 1<br> _FillValue : -28672<br>(0) min=1 max=1<br>(0) ---<br><br>Variable: CoD2<br>Type: double<br>Total Size: 3074960 bytes<br> 384370 values<br>Number of Dimensions: 2<br>Dimensions and sizes: [646] x [595]<br>Coordinates: <br>Number Of Attributes: 3<br> long_name : Coef of Divergence<br> _FillValue : -28672<br> average_op_ncl : dim_avg_n function was applied<br>(0) Coef of Divergence : min=1 max=1<br><br>Variable: CoD_final<br>Type: double<br>Total Size: 3074960 bytes<br> 384370 values<br>Number of Dimensions: 2<br>Dimensions and sizes: [646] x [595]<br>Coordinates: <br>Number Of Attributes: 1<br> _FillValue : -28672<br>(0) min=1 max=1<br>warning:ContourPlotInitialize: scalar field is constant; no contour lines will appear; use cnConstFEnableFill to enable fill</b><br><div><div><br clear="all"><div><div><div><div><div class="gmail-m_-4399236670033728621gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>---<br></div><div><font size="2"><span>Kunal<br></span></font></div><br><div><br></div><div><p style="margin:0px;border-collapse:collapse;font-family:Tahoma,Verdana;font-size:12px"><font color="#1F497D"><br></font></p></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</div></div></div></div></div></div>