<div dir="ltr"><div>Please talk with the Panoply people.<br><br>---<br></div>The file has <br>double GridLat_grid1km(YDim_grid1km, XDim_grid1km)<br>double GridLon_grid1km(YDim_grid1km, XDim_grid1km)<br>---<br>short Optical_Depth_055_grid1km(time, YDim_grid1km, XDim_grid1km) ;<br>        Optical_Depth_055_grid1km:<b>coordinates</b> = "GridLat_grid1km, GridLon_grid1km" ;<br>        Optical_Depth_055_grid1km:hdfeos_name = "Optical_Depth_055" ;<br>        Optical_Depth_055_grid1km:projection = "Albers Conical Equal_Area" ;<br>        Optical_Depth_055_grid1km:valid_range = -100s, 5000s ;<br>        Optical_Depth_055_grid1km:_FillValue = -28672s ;<br>        Optical_Depth_055_grid1km:unit = "None" ;<br>        Optical_Depth_055_grid1km:add_offset = 0. ;<br>        Optical_Depth_055_grid1km:scale_factor = 0.001 ;<br>        Optical_Depth_055_grid1km:long_name = "AOT at 0.55 micron" ;<br><br>---<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 9, 2017 at 3:22 AM, Kunal Bali <span dir="ltr"><<a href="mailto:kunal.bali9@gmail.com" target="_blank">kunal.bali9@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Thanks for providing all these details Dennis Sir,<br><br></div>After running the attached script, it creates the correct date in the netcdf file. But when I open the resultant netcdf file in Panoply software to visualize the grid structure, then the variable such as Optical_Depth_055_grid1km seems not georeferenced between latitude and longitude. The resultant netcdf file shows the georeferenced between <b>latitude and time</b> (please see the attached figure). <br><br></div>So, that creates the one problem in extracting the particular latitude and longitude data  (e.g. IISER Mohali (30.663 N, 76.732 E). <br><br></div><div><div><br><br>  <br></div></div><div class="gmail_extra">Rehards<span class="HOEnZb"><font color="#888888"><br clear="all"></font></span></div><div class="gmail_extra"><span class="HOEnZb"><font color="#888888"><div><div class="m_-1747235032020103909gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Kunal Bali<br></div><br><div><br></div><div><br></div><div><br></div><div><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;border-collapse:collapse;font-family:Tahoma,Verdana;font-size:12px"><font color="#1F497D"><br></font></p></div></div></div></div></div></div></font></span><div><div class="h5">
<br><div class="gmail_quote">On Mon, Oct 9, 2017 at 10:11 AM, Dennis Shea <span dir="ltr"><<a href="mailto:shea@ucar.edu" target="_blank">shea@ucar.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div><div><div><div><div><div><div><div><div>Long answer BUT I suggest you read this carefully!<br>------------------------------<wbr>------------------------------<wbr>----------<br>As is suggested (ad nauseum), always look at your data:<br><br></div>%> ncl_filedump MAIACTAOT.h00v02.20003650620.<b>h<wbr>df </b> | less<br><br></div>[snip]<br>filename:       MAIACTAOT.h00v02.20003650620<br>path:   MAIACTAOT.h00v02.20003650620.h<wbr>df<br>   file global attributes:<br>      <span style="color:rgb(255,0,0)"><b>HDFEOSVersion : HDFEOS_V2.12    <=== HDF-EOS file</b></span><br>      StructMetadata_0 : GROUP=SwathStructure<br>END_GROUP=SwathStructure<br></div>[snip]<br><br>----<br></div>It is a HDF-EOS file!!!   <br><br>When a user sees HDFEOS [ because he/she looked at the file;  :-) ], the file extension <b>.he2</b> or equivalently, <b>.hdfeos</b> should be appended to the file. This can be done programatically or on the command line.  The file need not be explicitly changed!<br><br>%> ncl_filedump MAIACTAOT.h00v02.20003650620.h<wbr>df<b>.he2</b> | less<br><br></div>NCL looks for the file MAIACTAOT.h00v02.20003650620.h<wbr>df<b>.he2</b> and<b>, </b>if it does not find the file, it <b>'backs-off' </b>the last file extension<b> </b>[ here,<b> .he2 </b>] and reads the file<b>.<br><br></b></div><b>Why</b> should a user do this?<br><br>%> ncl_filedump MAIACTAOT.h00v02.20003650620.h<wbr>df<b>.he2 </b>| less<br><b><br></b></div>(a) If you look at the original file<b>, </b>you will see a rather complicated file structure<b>. </b>It includes multiple <b>groups. </b>When the .he2 extenson is used, NCL 'flattens' the file structure. It make it look like a standard netCDF3 file. In this case the variables have appended extensions named: _grid5km and _grid1km. A very nice feature.<br><br></div>(b) An even nicer feature of the .he2/.hdfeos extension is that NCL <b>creates value-addedarrays </b>containing the lat/lon arrays.<br><br>double GridLat_grid5km ( YDim_grid5km, XDim_grid5km )<br>double GridLat_grid5km ( YDim_grid5km, XDim_grid5km )<br>double GridLat_grid1km ( YDim_grid1km, XDim_grid1km )<br>double GridLat_grid1km ( YDim_grid1km, XDim_grid1km )<br><br></div>(c) NCL <b>creates </b>CF Convention attributes like 'coordinates' for assorted variable.<br><br>------<br><br></div>One of the less public NCL-developers (Dave Brown), deserves considerable credit for NCL's IO capabilities. In particular, with respect to GRIB and HDF files. Also, 'addfile' and 'addfiles' <br><br></div>As I say ... "A user need-not-fear any grib/hdf/netCDF files if using NCL!'<br><br>------<br><br></div>The 2nd part of this answer is 'How to add a 'time' (record) dimension?'<br><br></div>See attachment:<br><br></div><div>%> mkdir MAIACTAOT_TIME                <== will contain created file<br></div>%> ncl create_time.MAIACTAO.ncl<br><br>-----<br>The keys are:<br><br>;---<a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/addfiles.shtml" target="_blank">https://www.ncl.ucar.edu/D<wbr>ocument/Functions/Built-in/add<wbr>files.shtml</a><br>  f    = addfiles(pthi, "r")<br>  <b>ListSetType (f, "join")                      ; add 'record' (time dimension) <br></b><br><br><div>;--- Create a time variable<br>  refTime = "hours since 2000-01-01 00:00:00"  ; arbitrary  <br>  time    = <i><b>time_create_MAIACTAOT</b></i> (fili, refTime)   ; local function<br><br></div><div>An file dump of the created file in directory: <br><br></div><div>%> cd /MAIACTAOT_TIME<br><br></div><div>%> ncl_filedump <a href="http://maiactaot.h00v02.20003650620-20003660700.nc" target="_blank">maiactaot.h00v02.20003650620-2<wbr>0003660700.nc</a><br></div><div>or<br>%> ncdump -h <a href="http://maiactaot.h00v02.20003650620-20003660700.nc" target="_blank">maiactaot.h00v02.20003650620-2<wbr>0003660700.nc</a><br><br></div><div><br><div><div><div>-++++++++<br></div><div>Internal NCAR users, the files are at:<br><br>/glade/p/ncldev/data/hdf<br><br> MAIACTAOT.h00v02.20003650620.<wbr>hdf<br> MAIACTAOT.h00v02.20003660525.<wbr>hdf<br> MAIACTAOT.h00v02.20003660700.<wbr>hdf<br></div><div><div><br><div><div><br></div><div>Cheers<span class="m_-1747235032020103909HOEnZb"><font color="#888888"><br></font></span></div><span class="m_-1747235032020103909HOEnZb"><font color="#888888"><div>D<br></div><div><b></b></div></font></span></div></div></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote"><span>On Fri, Oct 6, 2017 at 9:18 PM, Kunal Bali <span dir="ltr"><<a href="mailto:kunal.bali9@gmail.com" target="_blank">kunal.bali9@gmail.com</a>></span> wrote:<br></span><div><div class="m_-1747235032020103909h5"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thanks M<span id="m_-1747235032020103909m_9198662827960309660m_8696287821869127516gmail-9545bd06-5ef2-43d4-8839-37c6b0def39c" class="m_-1747235032020103909m_9198662827960309660m_8696287821869127516gmail-GINGER_SOFTWARE_mark">ery</span> for <span id="m_-1747235032020103909m_9198662827960309660m_8696287821869127516gmail-90a1f4da-d7c0-4326-9d3c-519a0d17c1fd" class="m_-1747235032020103909m_9198662827960309660m_8696287821869127516gmail-GINGER_SOFTWARE_mark">providing</span> this information. <div>I think the problem is with CDO.</div><div><br></div><div>But is there a<span id="m_-1747235032020103909m_9198662827960309660m_8696287821869127516gmail-6c857c96-59fe-4a6c-a956-b4d544be9a92" class="m_-1747235032020103909m_9198662827960309660m_8696287821869127516gmail-GINGER_SOFTWARE_mark">ny</span> function to convert <span id="m_-1747235032020103909m_9198662827960309660m_8696287821869127516gmail-d1f30e70-289b-4a49-9262-a62ec273607e" class="m_-1747235032020103909m_9198662827960309660m_8696287821869127516gmail-GINGER_SOFTWARE_mark">filenames</span> to date-time. <span id="m_-1747235032020103909m_9198662827960309660m_8696287821869127516gmail-b0ba63ba-8778-4c19-8666-a4b8b9ad4780" class="m_-1747235032020103909m_9198662827960309660m_8696287821869127516gmail-GINGER_SOFTWARE_mark">and</span> then create time variable in the netcdf file. </div><div>such as :</div><span><div><span style="font-size:13px">MAIACTAOT</span><span id="m_-1747235032020103909m_9198662827960309660m_8696287821869127516gmail-m_-2600986878220948988gmail-23759874-3de0-4a24-8fc9-29e17b019e1e" class="m_-1747235032020103909m_9198662827960309660m_8696287821869127516gmail-m_-2600986878220948988gmail-GINGER_SOFTWARE_mark" style="font-size:13px"><span id="m_-1747235032020103909m_9198662827960309660m_8696287821869127516gmail-m_-2600986878220948988gmail-2000bdff-3e28-4b08-a0bf-6a5ea336146b" class="m_-1747235032020103909m_9198662827960309660m_8696287821869127516gmail-m_-2600986878220948988gmail-GINGER_SOFTWARE_mark"><span id="m_-1747235032020103909m_9198662827960309660m_8696287821869127516gmail-3edd8468-c9b8-4867-8b15-f92fa12cc842" class="m_-1747235032020103909m_9198662827960309660m_8696287821869127516gmail-GINGER_SOFTWARE_mark">.</span></span></span><span style="font-size:13px">h00v02</span><span id="m_-1747235032020103909m_9198662827960309660m_8696287821869127516gmail-m_-2600986878220948988gmail-a1c40699-8045-4ec3-8e55-614b11abdb11" class="m_-1747235032020103909m_9198662827960309660m_8696287821869127516gmail-m_-2600986878220948988gmail-GINGER_SOFTWARE_mark" style="font-size:13px"><span id="m_-1747235032020103909m_9198662827960309660m_8696287821869127516gmail-m_-2600986878220948988gmail-21b8daba-4167-4660-a081-835a82ae5b52" class="m_-1747235032020103909m_9198662827960309660m_8696287821869127516gmail-m_-2600986878220948988gmail-GINGER_SOFTWARE_mark"><span id="m_-1747235032020103909m_9198662827960309660m_8696287821869127516gmail-6633ae5e-4323-43ae-b23e-bbec9170d4b3" class="m_-1747235032020103909m_9198662827960309660m_8696287821869127516gmail-GINGER_SOFTWARE_mark">.</span></span></span><b style="font-size:13px"><font color="#ff0000">2000</font><font color="#0000ff">364</font></b><font style="font-size:13px" color="#ff9900"><b>07</b></font><font style="font-size:13px" color="#ff00ff"><b>15</b></font><span id="m_-1747235032020103909m_9198662827960309660m_8696287821869127516gmail-m_-2600986878220948988gmail-2f881425-f243-461d-a171-87191b7b587d" class="m_-1747235032020103909m_9198662827960309660m_8696287821869127516gmail-m_-2600986878220948988gmail-GINGER_SOFTWARE_mark" style="font-size:13px"><span id="m_-1747235032020103909m_9198662827960309660m_8696287821869127516gmail-m_-2600986878220948988gmail-af85fe22-3b96-454f-b0cd-52511e993f0a" class="m_-1747235032020103909m_9198662827960309660m_8696287821869127516gmail-m_-2600986878220948988gmail-GINGER_SOFTWARE_mark"><span id="m_-1747235032020103909m_9198662827960309660m_8696287821869127516gmail-2ef7c933-82c6-4880-ab1d-4c170e2853fb" class="m_-1747235032020103909m_9198662827960309660m_8696287821869127516gmail-GINGER_SOFTWARE_mark">.</span></span></span><span id="m_-1747235032020103909m_9198662827960309660m_8696287821869127516gmail-m_-2600986878220948988gmail-4f87f9d2-e77c-42e2-bccd-57c6dd6d9db7" class="m_-1747235032020103909m_9198662827960309660m_8696287821869127516gmail-m_-2600986878220948988gmail-GINGER_SOFTWARE_mark" style="font-size:13px"><span id="m_-1747235032020103909m_9198662827960309660m_8696287821869127516gmail-m_-2600986878220948988gmail-b27454c4-07e9-4c3b-bdf9-0531d7fcf5f1" class="m_-1747235032020103909m_9198662827960309660m_8696287821869127516gmail-m_-2600986878220948988gmail-GINGER_SOFTWARE_mark"><span id="m_-1747235032020103909m_9198662827960309660m_8696287821869127516gmail-11605cea-b679-4c0d-bc6c-0595a65c87ef" class="m_-1747235032020103909m_9198662827960309660m_8696287821869127516gmail-GINGER_SOFTWARE_mark">n<wbr>c</span></span></span><span style="font-size:13px">   --> 2000=year, 364=day, 07=</span><span id="m_-1747235032020103909m_9198662827960309660m_8696287821869127516gmail-m_-2600986878220948988ea54bc3b-8439-4292-9191-3cb4e1cf40bd" class="m_-1747235032020103909m_9198662827960309660m_8696287821869127516gmail-m_-2600986878220948988gmail-GINGER_SOFTWARE_mark m_-1747235032020103909m_9198662827960309660m_8696287821869127516gmail-m_-2600986878220948988gmail-GINGER_SOFTWARE_mark m_-1747235032020103909m_9198662827960309660m_8696287821869127516gmail-m_-2600986878220948988gmail-GINGER_SOFTWARE_mark m_-1747235032020103909m_9198662827960309660m_8696287821869127516gmail-m_-2600986878220948988gmail-GINGER_SOFTWARE_mark m_-1747235032020103909m_9198662827960309660m_8696287821869127516gmail-m_-2600986878220948988gmail-GINGER_SOFTWARE_mark m_-1747235032020103909m_9198662827960309660m_8696287821869127516gmail-m_-2600986878220948988GINGER_SOFTWARE_mark" style="font-size:13px"><span id="m_-1747235032020103909m_9198662827960309660m_8696287821869127516gmail-26cfa2c3-c9d5-48e6-ba0a-ac38716740cd" class="m_-1747235032020103909m_9198662827960309660m_8696287821869127516gmail-GINGER_SOFTWARE_mark">hr</span></span><span style="font-size:13px">, 15=min</span></div></span><div><b style="font-size:13px">2000-01-29 07:15:00</b><br></div><div><br></div><div>could you please give some information on that.</div><div>thank you</div><div><br></div><div class="gmail_extra">regards<span class="m_-1747235032020103909m_9198662827960309660HOEnZb"><font color="#888888"><br clear="all"><div><div class="m_-1747235032020103909m_9198662827960309660m_8696287821869127516gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Kunal Bali<br></div><div><br></div><div><br></div><div><br></div><div><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;border-collapse:collapse;font-family:Tahoma,Verdana;font-size:12px"><font color="#1F497D"><br></font></p></div></div></div></div></div></div></font></span><div><div class="m_-1747235032020103909m_9198662827960309660h5">
<br><div class="gmail_quote">On Fri, Oct 6, 2017 at 2:16 AM, Guido Cioni <span dir="ltr"><<a href="mailto:guidocioni@gmail.com" target="_blank">guidocioni@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto">I had to do something similar last week. Converting from hdf to netcdf and then merge into a single file with time information. It was modis data. I don't have time to explain the script so I'm copying here hoping that it could help.<div dir="auto"><br></div><div dir="auto"><div dir="auto">for f in *.nc; do</div><div dir="auto">    year=${f:9:4}</div><div dir="auto">    day_of_year=${f:13:3}</div><div dir="auto">    month=`date -d "${year}-01-01 +${day_of_year} days -1 day" "+%m"`</div><div dir="auto">    day=`date -d "${year}-01-01 +${day_of_year} days -1 day" "+%d"`</div><div dir="auto">    echo ${year}-${month}-${day}</div><div dir="auto">    cdo -b F64 setdate,${year}-${month}-${day<wbr>} ${f} ${f%.nc}_<a href="http://2.nc" target="_blank">2.nc</a></div><div dir="auto">done </div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto">Cheers </div></div></div><div class="m_-1747235032020103909m_9198662827960309660m_8696287821869127516HOEnZb"><div class="m_-1747235032020103909m_9198662827960309660m_8696287821869127516h5"><div class="gmail_extra"><br><div class="gmail_quote">Il 5 ott 2017 9:56 PM, "Marston Johnston" <<a href="mailto:shejo284@gmail.com" target="_blank">shejo284@gmail.com</a>> ha scritto:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div bgcolor="white" link="blue" vlink="purple" lang="EN-GB"><div class="m_-1747235032020103909m_9198662827960309660m_8696287821869127516m_-6865321205752944098m_6544476848491288552WordSection1"><p class="MsoNormal"><span>It seems like you choose a fairly complicated way to solve the problem.<u></u><u></u></span></p><p class="MsoNormal"><span>May I suggest reading in the MAIACTAOT.h00v02.<b>*</b>.nc files in chronological order and then writing new netcdf files in ncl where you can create a time array with the correct dtg.<u></u><u></u></span></p><p class="MsoNormal"><span>It’s fairly quick and easy in ncl.<u></u><u></u></span></p><p class="MsoNormal"><span>I’ve had such problems before and found it easiest to with the above method.<u></u><u></u></span></p><p class="MsoNormal"><span><u></u> <u></u></span></p><p class="MsoNormal"><span>Hope this helps,<u></u><u></u></span></p><p class="MsoNormal"><span>/M<u></u><u></u></span></p><p class="MsoNormal"><span><u></u> <u></u></span></p><div><p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:#0070c0">~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:#0070c0">Marston S. Ward, PhD<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:#0070c0">Department of Earth Sciences<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:#0070c0">University of Gothenburg, Sweden<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:#0070c0">Email: <a href="mailto:marston.johnston@gu.se" target="_blank"><span style="color:#0070c0">marston.johnston@gu.se</span></a><u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:#0070c0">SkypeID: marston.johnston <u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:#0070c0">Phone: <a href="tel:+46%2031%20786%2049%2001" value="+46317864901" target="_blank">+46-31-7864901</a> <u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:#0070c0">Only the fruitful thing is true!<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:#0070c0">~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<u></u><u></u></span></p></div><p class="MsoNormal"><span><u></u> <u></u></span></p><p class="MsoNormal"><span><u></u> <u></u></span></p><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm"><p class="MsoNormal"><b><span style="font-size:12.0pt;color:black">From: </span></b><span style="font-size:12.0pt;color:black">ncl-talk <<a href="mailto:ncl-talk-bounces@ucar.edu" target="_blank">ncl-talk-bounces@ucar.edu</a>> on behalf of Kunal Bali <<a href="mailto:kunal.bali9@gmail.com" target="_blank">kunal.bali9@gmail.com</a>><br><b>Date: </b>Thursday, 5 October 2017 at 20:40<br><b>To: </b>"<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>" <<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>><br><b>Subject: </b>[ncl-talk] set_date_time<u></u><u></u></span></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Dear NCL users,<u></u><u></u></p><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">I have one question regarding date-time setting from filename. This question is not actually related to NCL, sorry in advance. <u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">I have 4 .nc files named given below. The time is not created in these files during conversion from hdf to netcdf in NCL. <u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">MAIACTAOT<span class="m_-1747235032020103909m_9198662827960309660m_8696287821869127516m_-6865321205752944098m_6544476848491288552gmail-gingersoftwaremark">.</span>h00v02<span class="m_-1747235032020103909m_9198662827960309660m_8696287821869127516m_-6865321205752944098m_6544476848491288552gmail-gingersoftwaremark">.</span><b><span style="color:red">2000</span><span style="color:blue">364</span><span style="color:#ff9900">07</span><span style="color:fuchsia">15</span></b><span class="m_-1747235032020103909m_9198662827960309660m_8696287821869127516m_-6865321205752944098m_6544476848491288552gmail-gingersoftwaremark">.n<wbr>c</span>   --> 2000=year, 364=day, 07=<span class="m_-1747235032020103909m_9198662827960309660m_8696287821869127516m_-6865321205752944098m_6544476848491288552gmail-gingersoftwaremark">hr</span>, 15=min<u></u><u></u></p></div><div><p class="MsoNormal">MAIACTAOT<span class="m_-1747235032020103909m_9198662827960309660m_8696287821869127516m_-6865321205752944098m_6544476848491288552gmail-gingersoftwaremark">.</span>h00v02<span class="m_-1747235032020103909m_9198662827960309660m_8696287821869127516m_-6865321205752944098m_6544476848491288552gmail-gingersoftwaremark">.</span>20003650620<span class="m_-1747235032020103909m_9198662827960309660m_8696287821869127516m_-6865321205752944098m_6544476848491288552gmail-gingersoftwaremark">.n<wbr>c</span><u></u><u></u></p></div><div><p class="MsoNormal">MAIACTAOT<span class="m_-1747235032020103909m_9198662827960309660m_8696287821869127516m_-6865321205752944098m_6544476848491288552gmail-gingersoftwaremark">.</span>h00v02<span class="m_-1747235032020103909m_9198662827960309660m_8696287821869127516m_-6865321205752944098m_6544476848491288552gmail-gingersoftwaremark">.</span>20003660525<span class="m_-1747235032020103909m_9198662827960309660m_8696287821869127516m_-6865321205752944098m_6544476848491288552gmail-gingersoftwaremark">.n<wbr>c</span><u></u><u></u></p></div><div><p class="MsoNormal">MAIACTAOT<span class="m_-1747235032020103909m_9198662827960309660m_8696287821869127516m_-6865321205752944098m_6544476848491288552gmail-gingersoftwaremark">.</span>h00v02<span class="m_-1747235032020103909m_9198662827960309660m_8696287821869127516m_-6865321205752944098m_6544476848491288552gmail-gingersoftwaremark">.</span>20003660700<span class="m_-1747235032020103909m_9198662827960309660m_8696287821869127516m_-6865321205752944098m_6544476848491288552gmail-gingersoftwaremark">.n<wbr>c</span><u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">So, I did try to create the date-time with shell scripting (given below)<u></u><u></u></p></div><div><p class="MsoNormal"><span class="m_-1747235032020103909m_9198662827960309660m_8696287821869127516m_-6865321205752944098m_6544476848491288552gmail-gingersoftwaremark">but</span> it is creating wrong date as the files are of December month, but it is generating January month date also. I don't know why. <u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal"><b>2000-01-01 05:25:00</b><u></u><u></u></p></div><div><p class="MsoNormal"><b>2000-01-01 07:00:00</b><u></u><u></u></p></div><div><p class="MsoNormal">2000-12-30 07:15:00<u></u><u></u></p></div><div><p class="MsoNormal">2000-12-31 06:20:00<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal"><span class="m_-1747235032020103909m_9198662827960309660m_8696287821869127516m_-6865321205752944098m_6544476848491288552gmail-gingersoftwaremark">the</span> shell script, which I am using<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><div><p class="MsoNormal">##############################<wbr>#########<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">for n in  MAIACTAOT.h00v02.20*.nc;do<u></u><u></u></p></div><div><p class="MsoNormal"> ls $n > text<u></u><u></u></p></div><div><p class="MsoNormal">export xx=`cut -c18-28 text`<u></u><u></u></p></div><div><p class="MsoNormal">export YYYY=`cut -c18-21 text`<u></u><u></u></p></div><div><p class="MsoNormal">export JJJ=`cut -c22-24 text`<u></u><u></u></p></div><div><p class="MsoNormal">export HH=`cut -c25-26 text`<u></u><u></u></p></div><div><p class="MsoNormal">export MM=`cut -c27-28 text`<u></u><u></u></p></div><div><p class="MsoNormal">mm=`date -d "$JJJ days $YYYY-01-01" +"%m"`<u></u><u></u></p></div><div><p class="MsoNormal">dd=`date -d "$JJJ days $YYYY-01-01" +"%d"`<u></u><u></u></p></div><div><p class="MsoNormal">mydate=${YYYY}-${mm}-${dd},${H<wbr>H}:${MM}:00<u></u><u></u></p></div><div><p class="MsoNormal">echo $mydate<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">echo "cdo settaxis,$mydate $n re$n"<u></u><u></u></p></div><div><p class="MsoNormal">cdo settaxis,$mydate $n re$n<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">done<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">cdo mergetime reMAI*.nc <a href="http://final.nc" target="_blank">final.nc</a><u></u><u></u></p></div><div><p class="MsoNormal">exit<u></u><u></u></p></div><div><p class="MsoNormal">##############################<wbr>###<u></u><u></u></p></div></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Any suggestion regarding this issue would be very helpful.<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Thank You<u></u><u></u></p></div><div><p class="MsoNormal"><br clear="all"><u></u><u></u></p><div><div><div><div><div><div><p class="MsoNormal">Kunal Bali<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p style="margin:0cm;margin-bottom:.0001pt"><span style="font-size:9.0pt;font-family:"Tahoma",sans-serif"><u></u> <u></u></span></p></div></div></div></div></div></div></div></div><p class="MsoNormal">______________________________<wbr>_________________ ncl-talk mailing list <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a> List instructions, subscriber options, unsubscribe: <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailma<wbr>n/listinfo/ncl-talk</a> <u></u><u></u></p></div></div>
<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></div>
</div></div></blockquote></div><br></div></div></div></div>
<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></div></div><br></div>
</blockquote></div><br></div></div></div></div>
<br>______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">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/<wbr>mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>