<div dir="ltr">Hi Najib,<div>As a reminder, always include any error messages that you getting as that would assist the ncl-talk community with diagnosing the problem. </div><div><br></div><div>You have the following coding:</div><div><div>data = new((/15,500/),double)</div><div>data0 = ozone1</div><div>data1 = ozone2</div><div><snip></div><div>data14 = ozone15</div></div><div><br></div><div>You are copying the ozone1 array to a new array named data0, the ozone2 array to data1, and so on. You are not infilling your data array.</div><div><br></div><div>Then, you are calling the plotting function like this:</div><div>plot = gsn_csm_xy(wks,time,data,res)<br></div><div><br></div><div>Thus, I am guessing that nothing is being plotted as data is empty. </div><div><br></div><div>Swap this:</div><div><div>data = new((/15,500/),double)</div><div>data0 = ozone1</div><div>data1 = ozone2</div><div><snip></div><div>data14 = ozone15</div></div><div><br></div><div>with this:</div><div><br></div><div><div><div>data = new((/15,500/),double)</div><div>data(0,:) = ozone1</div><div>data(1,:) = ozone2</div><div><snip></div><div>data(14,:) = ozone15</div></div></div><div><br></div><div>If you have any further questions please respond to the ncl-talk email list.</div><div>Adam</div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 13, 2017 at 4:25 AM, <span dir="ltr"><<a href="mailto:najib.yusuf@carnasrda.com" target="_blank">najib.yusuf@carnasrda.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
Dear ncl talk,<br>
<br>
Thank you for your guidance all the time. I am able to plot using time series. However, I proceeded to modify the script to plot multiple time series (15 files) by following the example in NCL_User_Guide " This example is saved in NUG_multi_timeseries.ncl." But i am having a problem with multidimensional array because my files have different sizes. Kindly direct me.<br>
<br>
Attached are the two files.<br>
<br>
Thank you<br>
<br>
Najib<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
On 2017-09-27 13:41, Dennis Shea wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
You stated: "I tried solving but couldn't get it"<br>
<br>
Please look at the output from your commands.<br>
<br>
The output is for *you* to look at.<br>
<br>
----<br>
<br>
More on David's comment ...<br>
<br>
re: GOLDEN RULE OF DATA PROCESSING... LOOK AT YOUR DATA<br>
<br>
You used:<br>
<br>
var = f->O3_PM(0) <==== the reads only the 1st value [index (0) ]<br>
<br>
Variable: var<br>
Type: double<br>
Total Size: 8 bytes<br>
1 values <=== ONE VALUE ... how do you contour<br>
one value?<br>
<br>
---<br>
<br>
The min & max are _FillValue. Look at the output from your script.<br>
<br>
(0) min/max var = -9999/-9999<br>
---<br>
<br>
Even if you read the entire *time series* ... all values are<br>
_FillValue<br>
<br>
var = f->O3_PM ; entire series<br>
<br>
printVarSummary(var)<br>
<br>
Variable: var<br>
Type: double<br>
Total Size: 63024 bytes<br>
7878 values<br>
Number of Dimensions: 1<br>
Dimensions and sizes: [UTC_time | 7878] <=========<br>
Coordinates:<br>
UTC_time: [70841..106359]<br>
Number Of Attributes: 8<br>
standard_name : mole_fraction_of_ozone_in_air<br>
long_name : Ozone mixing ratio<br>
comment : Measured by MOZAIC package<br>
units : 0.000000001<br>
missing_value : -9999<br>
_FillValue : -9999<br>
scale_factor : 1<br>
availability : 0<br>
<br>
print ("min/max var = " + min(var) + "/" + max(var))<br>
(0) MIN/MAX VAR = -9999/-9999<br>
<br>
---<br>
<br>
It should be plotted as a time series not as a contour plot.<br>
<br>
On Wed, Sep 27, 2017 at 10:34 AM, David Brown <<a href="mailto:dbrown@ucar.edu" target="_blank">dbrown@ucar.edu</a>> wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
You will never be able to contour the O3_PM variable from this file<br>
because it contains only fill values:<br>
<br>
ncl 0> f = addfile("IAGOS_timeseries_<a href="http://2013101819404151.nc" target="_blank">2013<wbr>101819404151.nc</a> [1]","r")<br>
ncl 1> printMinMax(f->O3_PM,0)<br>
(0) Ozone mixing ratio (0.000000001) : min=-9999 max=-9999<br>
<br>
Presumably this is what the attribute "availability" means: no valid<br>
values for this variable.<br>
<br>
Also for some reason your variable "var" contains only a single<br>
value.<br>
There is no way to make a contour plot with only one point even if<br>
it<br>
were a valid value. Since the only dimension in the file is a time<br>
dimension, maybe this data set would be better displayed as a time<br>
series x-y plot.<br>
-dave<br>
<br>
On Wed, Sep 27, 2017 at 8:16 AM, <<a href="mailto:najib.yusuf@carnasrda.com" target="_blank">najib.yusuf@carnasrda.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Dear Sirs,<br>
<br>
I try to plot contour map of O3_PM variable from .nc IAGOS file<br>
</blockquote>
but I am<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
getting strange errors, I tried solving but couldn't get it.<br>
</blockquote>
Kindly assist<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
to guide. Attached is the file and the IAGOS.ncl as script.Thank<br>
</blockquote>
you.<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
The summary of the print var is;<br>
<br>
Variable: var<br>
Type: double<br>
Total Size: 8 bytes<br>
1 values<br>
Number of Dimensions: 1<br>
Dimensions and sizes: [UTC_time | 1]<br>
Coordinates:<br>
Number Of Attributes: 9<br>
UTC_time : 70841<br>
standard_name : mole_fraction_of_ozone_in_air<br>
long_name : Ozone mixing ratio<br>
comment : Measured by MOZAIC package<br>
units : 0.000000001<br>
missing_value : -9999<br>
_FillValue : -9999<br>
scale_factor : 1<br>
availability : 0<br>
<br>
<br>
Variable: var<br>
Type: double<br>
Total Size: 8 bytes<br>
1 values<br>
Number of Dimensions: 1<br>
Dimensions and sizes: [UTC_time | 1]<br>
Coordinates:<br>
Number Of Attributes: 9<br>
UTC_time : 70841<br>
standard_name : mole_fraction_of_ozone_in_air<br>
long_name : Ozone mixing ratio<br>
comment : Measured by MOZAIC package<br>
units : 0.000000001<br>
missing_value : -9999<br>
_FillValue : -9999<br>
scale_factor : 1<br>
availability : 0<br>
(0) -9999<br>
(0) min/max var = -9999/-9999<br>
fatal:MeshScalarFieldInitializ<wbr>e: Insufficient number of elements<br>
</blockquote>
in<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
sfDataArray<br>
fatal:Unable to initialize layer-Can't Create<br>
fatal:Unable to access object with id:-4<br>
fatal:Unable to access object with id:-4<br>
warning:Unable to add DataItem "(null)" to DataList<br>
</blockquote>
"cnScalarFieldData"<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
fatal:CompileDataList:DataList has no valid members<br>
warning:ContourPlotSetValues: cnLevelSpacingF value causes level<br>
</blockquote>
count to<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
exceed maximum: using AUTOMATICLEVELS mode<br>
ncl 48><br>
<br>
Thank you<br>
<br>
Najib<br>
<br>
______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailma<wbr>n/listinfo/ncl-talk</a> [2]<br>
<br>
</blockquote>
______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailma<wbr>n/listinfo/ncl-talk</a> [2]<br>
</blockquote>
<br>
<br>
<br>
Links:<br>
------<br>
[1] <a href="http://2013101819404151.nc" rel="noreferrer" target="_blank">http://2013101819404151.nc</a><br>
[2] <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailma<wbr>n/listinfo/ncl-talk</a><br>
</blockquote>
<br>______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailma<wbr>n/listinfo/ncl-talk</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail-m_4256294407379732205gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><div><span><font color="#888888">Adam Phillips <br></font></span></div><span><font color="#888888">Associate Scientist, </font></span><span><font color="#888888">Climate and Global Dynamics Laboratory, NCAR<br></font></span></div></div><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli/" target="_blank">www.cgd.ucar.edu/staff/<wbr>asphilli/</a> </font></span><span><font color="#888888"><a href="tel:(303)%20497-1726" value="+13034971726" target="_blank">303-497-1726</a> </font></span></div><span><font color="#888888"></font></span><div><div><span><font color="#888888"><br></font></span><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli" target="_blank"></a></font></span></div></div></div></div></div></div></div></div></div></div></div>
</div></div>