<div dir="ltr"><div><div><div><div><div><div><div><div><div>Your question is very general ... no specifics. Hence, it is hard to respond.<br><br></div>[1] <br>It is *your responsibility* to learn the language. When ncl-talk people see "<span id="gmail-m_3551296178836922871yui_3_16_0_ym19_1_1487584441203_111318">can you guide me" , we have found that 'we' (ncl-talk) does most, if not all the work. Hence, people afre reluctant to respond. We want to help but we have our own jobs to do.<br><br>[2]<br></span></div><span id="gmail-m_3551296178836922871yui_3_16_0_ym19_1_1487584441203_111318">Please see the excellent tutorials created by </span><b>Karin Meier-Fleischer</b> and <b>Michael
Böttinger</b> of <a href="https://www.dkrz.de/">DKRZ</a>
(Deutsches Klimarechenzentrum). <br> <a href="http://www.ncl.ucar.edu/Document/Manuals/">http://www.ncl.ucar.edu/Document/Manuals/</a><br></div>In particular, it would be beneficial for you to do some of the exercises.<br><br>[3]<br></div>An example of "data extraction"<br><br></div><div> [a] Examine the file's contents<br><br></div><div> %> ncl_filedump TES-Aura_L2-O3-Nadir_Megacity_ v006_Litev08.nc | less<br></div><div> or<br> %> ncdump -h TES-Aura_L2-O3-Nadir_Megacity_ v006_Litev08.nc | less <br><br></div><div>[snip]<br> float averagecloudeffopticaldepth(grid_targets) ;<br> averagecloudeffopticaldepth:long_name = "average cloud effective optical depth" ;<br> averagecloudeffopticaldepth:units = "" ;<br> averagecloudeffopticaldepth:_fillvalue = -999.f ;<br> averagecloudeffopticaldepth:missing_value = -999.f ;<br></div><div>[snip]<br> int cityindex(grid_targets) ;<br> cityindex:long_name = "city index: [Los Angeles, Houston, New York City, Mexico City, Sao Paulo, Buenos Aires, Pa<br>ris, Istanbul, Lagos, Beijing, SW China, Shenzhen, Tokyo, Bangkok, Dhaka, Delhi, Mumbai, Kolkata, Karachi]" ;<br> cityindex:units = "" ;<br> cityindex:_fillvalue = "" ;<br> cityindex:missing_value = "" ;<br></div><div>[snip]<br><br></div><div> <br> [b] Say, you want Lagos: NCL indexing starts at 0 ... hence index 8<br></div><div><br></div><div> [b] Select a variable and in a script ...<br><br></div><div> diri = "./" ; directory with data file(s)<br></div><div> fili = "TES-Aura_L2-O3-Nadir_Megacity_ v006_Litev08.nc"<br></div><div> pthi = diri+fili<br></div><div><br></div> f = addfile(pthi, "r")<br></div> aceod = f->averagecloudeffopticaldepth ; all 'grid_targets'<br></div> printVarSummary(aceod)<br></div> printMinMax(aceod)<br><br></div><div>or<br><br></div><div> i = 8<br> aceod_Lagos = f->averagecloudeffopticaldepth(i)<br> printVarSummary(aceod_Lagos)<br> printMinMax(aceod__lagos<br><br><br></div><div>Good luck<br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 23, 2017 at 2:20 AM, Najib Yusuf <span dir="ltr"><<a href="mailto:najibgal@yahoo.com" target="_blank">najibgal@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px"><div dir="ltr" id="m_3551296178836922871yui_3_16_0_ym19_1_1487584441203_111346"><span>Dear all,</span></div><div dir="ltr" id="m_3551296178836922871yui_3_16_0_ym19_1_1487584441203_111304"><span id="m_3551296178836922871yui_3_16_0_ym19_1_1487584441203_111318">I need some more help please. Can you guide me to Data variable extraction and also data (measurement and model output) comparison templates?</span></div><div dir="ltr" id="m_3551296178836922871yui_3_16_0_ym19_1_1487584441203_111304"><span><br></span></div><div dir="ltr" id="m_3551296178836922871yui_3_16_0_ym19_1_1487584441203_111304"><span>I will appreciate your elderly advise. Thank you</span></div><div dir="ltr" id="m_3551296178836922871yui_3_16_0_ym19_1_1487584441203_111304"><span><br></span></div><div dir="ltr" id="m_3551296178836922871yui_3_16_0_ym19_1_1487584441203_111304"><span>Najib</span></div> <div class="m_3551296178836922871qtdSeparateBR"><br><br></div><div class="m_3551296178836922871yahoo_quoted" style="display:block"> <div style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px"> <div style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px"><span class=""> <div dir="ltr"><font face="Arial" size="2"> On Saturday, February 18, 2017 4:57 PM, Dennis Shea <<a href="mailto:shea@ucar.edu" target="_blank">shea@ucar.edu</a>> wrote:<br></font></div> <br><br> </span><div class="m_3551296178836922871y_msg_container"><div id="m_3551296178836922871yiv2211168187"><div><div dir="ltr"><div><div><div><div><div><div><div><span class=""><div><div><div>The file you sent has a .rc extension. This is not a recognized file extension. I changed it to a .nc extension<br clear="none"><br clear="none"></div>%> mv TES-Aura_L2-O3-Nadir_Megacity_ v006_Litev08.rc TES-Aura_L2-O3-Nadir_Megacity_ v006_Litev08.nc<br clear="none"><br clear="none"></div>Then, I used<br clear="none"><br clear="none"></div></span>%> ncdump -h TES-Aura_L2-O3-Nadir_Megacity_ v006_Litev08.nc >&! out_630.TES_Nadir<br clear="none"><br clear="none"></div><span class="">The output (out_630.TES_Nadir) is attached.<br clear="none"><br clear="none"></span>============================== ======<br clear="none"></div>NCL 6.3.0<br clear="none"><br clear="none"></div>%> ncl_filedump TES-Aura_L2-O3-Nadir_Megacity_ v006_Litev08.nc | less<span class=""><br clear="none"><br clear="none">NCL
reads the file just fine. However, by netCDF rule, the _FillValue
associated with a variable should match the type of the variable with
which it is associated.<br clear="none"><br clear="none"></span></div> variable (float); _FillValue (float)<br clear="none"></div> variable (byte); _FillValue (byte)<br clear="none"></div> ...etc...<br clear="none"><br clear="none"></div><span class="">This file sometimes has a mismatch so ncl_filedump (unlike ncdump -h) will issue a warning message like<br clear="none"><div><br clear="none">warning:NetOpenFile:
MissingToFillValue option set True, but missing_value attribute and
data variable (city) types differ: not adding virtual _FillValue
attribute<br clear="none"><br clear="none"></div><div>Actually, this is valuable information. You should be aware of this. The TES file is technically not a good netCDF file.<br clear="none"><br clear="none">===<br clear="none"></div>In an NCL script, you can turn off the warning messages via:<br clear="none"><br clear="none"></span><span class=""><pre><b>setfileoption</b>("nc","<b>MissingToF illValue</b>", False)<br clear="none"></pre><pre>f = addfile("TES-Aura_L2-O3-Nadir_ Megacity_v006_Litev08.nc", "r")<br clear="none"></pre><br clear="none"> <a rel="nofollow" shape="rect" href="https://www.ncl.ucar.edu/Document/Functions/Built-in/setfileoption.shtml" target="_blank">https://www.ncl.ucar.edu/ Document/Functions/Built-in/ setfileoption.shtmn</a></span><div class="m_3551296178836922871yiv2211168187gmail_extra"><br clear="none"><div><div class="h5"><div class="m_3551296178836922871yiv2211168187yqt0935549623" id="m_3551296178836922871yiv2211168187yqt08998"><div class="m_3551296178836922871yiv2211168187gmail_quote">On Fri, Feb 17, 2017 at 12:53 AM, Najib Yusuf <span dir="ltr"><<a rel="nofollow" shape="rect" href="mailto:najibgal@yahoo.com" target="_blank">najibgal@yahoo.com</a>></span> wrote:<br clear="none"><blockquote class="m_3551296178836922871yiv2211168187gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px"><div id="m_3551296178836922871yiv2211168187m_4253948981041010272yui_3_16_0_ym19_1_1487234697222_29082">Hello Denish,</div><div id="m_3551296178836922871yiv2211168187m_4253948981041010272yui_3_16_0_ym19_1_1487234697222_29082"><br clear="none"></div><div dir="ltr" id="m_3551296178836922871yiv2211168187m_4253948981041010272yui_3_16_0_ym19_1_1487234697222_29082">[1] TES-Aura_L2-O3-Nadir_ Megacity_v006_Litev08</div><div dir="ltr" id="m_3551296178836922871yiv2211168187m_4253948981041010272yui_3_16_0_ym19_1_1487234697222_29082"><br clear="none"></div><div dir="ltr" id="m_3551296178836922871yiv2211168187m_4253948981041010272yui_3_16_0_ym19_1_1487234697222_29082">[2] I tried opening the data "ncdump" it has open but not in readable format.</div><div dir="ltr" id="m_3551296178836922871yiv2211168187m_4253948981041010272yui_3_16_0_ym19_1_1487234697222_29082"><br clear="none"></div><div dir="ltr" id="m_3551296178836922871yiv2211168187m_4253948981041010272yui_3_16_0_ym19_1_1487234697222_29082">[3] NCL version 6.3.0</div><span class="m_3551296178836922871yiv2211168187HOEnZb"><font color="#888888"></font></span><div dir="ltr" id="m_3551296178836922871yiv2211168187m_4253948981041010272yui_3_16_0_ym19_1_1487234697222_29082"><br clear="none"></div><div dir="ltr" id="m_3551296178836922871yiv2211168187m_4253948981041010272yui_3_16_0_ym19_1_1487234697222_29082"><br clear="none"></div><div dir="ltr" id="m_3551296178836922871yiv2211168187m_4253948981041010272yui_3_16_0_ym19_1_1487234697222_29082">Najib</div><div><div class="m_3551296178836922871yiv2211168187h5"><div id="m_3551296178836922871yiv2211168187m_4253948981041010272yui_3_16_0_ym19_1_1487234697222_29082"><br clear="none"></div> <div class="m_3551296178836922871yiv2211168187m_4253948981041010272qtdSeparateBR"><br clear="none"><br clear="none"></div><div class="m_3551296178836922871yiv2211168187m_4253948981041010272yahoo_quoted" style="display:block"> <div style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px"> <div style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px"> <div dir="ltr"><font face="Arial" size="2"> On Thursday, February 16, 2017 4:01 PM, Dennis Shea <<a rel="nofollow" shape="rect" href="mailto:shea@ucar.edu" target="_blank">shea@ucar.edu</a>> wrote:<br clear="none"></font></div> <br clear="none"><br clear="none"> <div class="m_3551296178836922871yiv2211168187m_4253948981041010272y_msg_container"><div id="m_3551296178836922871yiv2211168187m_4253948981041010272yiv8220239606"><div><div dir="ltr"><div><div><div>re: " ... but I am having trouble extracting a parameter from TES data."<br clear="none"><br clear="none"></div><div>[1] What type of file: L1B (Nadir), L2 (Nadir and Ancillary), and L3 (Gridded)?</div>[2] Can you please show what you have tried?<br clear="none"></div>[3] What version of NCL are you using?<br clear="none"></div> %> ncl -V<br clear="none"><br clear="none"><br clear="none"><div><div><br clear="none"><div><br clear="none"><br clear="none"></div></div></div></div><div class="m_3551296178836922871yiv2211168187m_4253948981041010272yiv8220239606gmail_extra"><br clear="none"><div class="m_3551296178836922871yiv2211168187m_4253948981041010272yiv8220239606gmail_quote">On Thu, Feb 16, 2017 at 1:54 AM, Najib Yusuf <span dir="ltr"><<a rel="nofollow" shape="rect" href="mailto:najibgal@yahoo.com" target="_blank">najibgal@yahoo.com</a>></span> wrote:<br clear="none"><blockquote class="m_3551296178836922871yiv2211168187m_4253948981041010272yiv8220239606gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="m_3551296178836922871yiv2211168187m_4253948981041010272yiv8220239606yqt2290930492" id="m_3551296178836922871yiv2211168187m_4253948981041010272yiv8220239606yqt56185"><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px"><div id="m_3551296178836922871yiv2211168187m_4253948981041010272yiv8220239606m_8522460107081934798yui_3_16_0_ym19_1_1487234697222_8324">Dear all,</div><div dir="ltr" id="m_3551296178836922871yiv2211168187m_4253948981041010272yiv8220239606m_8522460107081934798yui_3_16_0_ym19_1_1487234697222_8324">I want to compare TES data with model output using NCL but I am having trouble extracting a parameter from TES data.</div><div dir="ltr" id="m_3551296178836922871yiv2211168187m_4253948981041010272yiv8220239606m_8522460107081934798yui_3_16_0_ym19_1_1487234697222_8324">Kindly assist me on how to achieve this.</div><div dir="ltr" id="m_3551296178836922871yiv2211168187m_4253948981041010272yiv8220239606m_8522460107081934798yui_3_16_0_ym19_1_1487234697222_8324"><br clear="none"></div><div dir="ltr" id="m_3551296178836922871yiv2211168187m_4253948981041010272yiv8220239606m_8522460107081934798yui_3_16_0_ym19_1_1487234697222_8324">Thank you.</div><span class="m_3551296178836922871yiv2211168187m_4253948981041010272yiv8220239606HOEnZb"><font color="#888888"></font></span><div dir="ltr" id="m_3551296178836922871yiv2211168187m_4253948981041010272yiv8220239606m_8522460107081934798yui_3_16_0_ym19_1_1487234697222_8324"><br clear="none"></div><div dir="ltr" id="m_3551296178836922871yiv2211168187m_4253948981041010272yiv8220239606m_8522460107081934798yui_3_16_0_ym19_1_1487234697222_8324"><br clear="none"></div><div dir="ltr" id="m_3551296178836922871yiv2211168187m_4253948981041010272yiv8220239606m_8522460107081934798yui_3_16_0_ym19_1_1487234697222_8324">Najib Yusuf</div><div dir="ltr" id="m_3551296178836922871yiv2211168187m_4253948981041010272yiv8220239606m_8522460107081934798yui_3_16_0_ym19_1_1487234697222_8324">Centre for Atmospheric Research</div><div dir="ltr" id="m_3551296178836922871yiv2211168187m_4253948981041010272yiv8220239606m_8522460107081934798yui_3_16_0_ym19_1_1487234697222_8324">Anyigba. Nigeria.</div><div dir="ltr" id="m_3551296178836922871yiv2211168187m_4253948981041010272yiv8220239606m_8522460107081934798yui_3_16_0_ym19_1_1487234697222_8324">+234 80 371 4158</div></div></div></div><br clear="none">______________________________ _________________<br clear="none">
ncl-talk mailing list<br clear="none">
<a rel="nofollow" shape="rect" href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br clear="none">
List instructions, subscriber options, unsubscribe:<br clear="none">
<a rel="nofollow" shape="rect" href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/ mailman/listinfo/ncl-talk</a><br clear="none">
<br clear="none"></blockquote></div><br clear="none"></div></div></div><br clear="none"><br clear="none"></div> </div> </div> </div></div></div></div></div></blockquote></div></div><br clear="none"></div></div></div></div></div></div><br><br></div> </div> </div> </div></div></div></blockquote></div><br></div>