<div>Dear Jennifer,</div><div> </div><div>Thanks a lot for your kind help and detailed explanations!</div><div> </div><div>Kind regards,</div><div>Artur</div><div> </div><div> </div><div>30.04.2020, 15:39, "Adams, Jennifer M. (GSFC-610.2)[ADNET SYSTEMS INC]" <jennifer.m.adams@nasa.gov>:</div><blockquote><div lang="EN-US"><div><p style="font-family:'calibri' , sans-serif;font-size:11pt;margin:0in 0in 0.0001pt 0in">Hi, Artur –</p><p style="font-family:'calibri' , sans-serif;font-size:11pt;margin:0in 0in 0.0001pt 0in">You can have a non-linear Z axis (use ZDEF n LEVELS …), but you can’t have a non-linear T axis. If you want to bring your irregularly spaced observational data into GraDS and maintain accurate time metadata, then you must break up your netcdf file into separate small files, each with one time step and a filename that reflects the valid time so you can use ‘options template’ and the usual %y %m %d %h %n substitution strings. Then define a linear time axis and GrADS will place your observations in their proper position and treat any gaps between them as missing.</p><p style="font-family:'calibri' , sans-serif;font-size:11pt;margin:0in 0in 0.0001pt 0in">--Jennifer</p><div><p style="font-family:'calibri' , sans-serif;font-size:11pt;margin:0in 0in 0.0001pt 0in"><span style="font-size:10pt">-- </span><br /><span style="color:black;font-size:10pt">Jennifer Miletta Adams<br />ADNET Systems, Inc.<br />NASA/GSFC, Code 610.2</span></p><div><p style="font-family:'calibri' , sans-serif;font-size:11pt;margin:0in 0in 0.0001pt 0in"><span style="color:black;font-size:10pt">Building 32, Room S159<br />(301) 614-6070</span></p></div></div><p style="font-family:'calibri' , sans-serif;font-size:11pt;margin:0in 0in 0.0001pt 0in"> </p><p style="font-family:'calibri' , sans-serif;font-size:11pt;margin:0in 0in 0.0001pt 0in"> </p><div style="border-style:solid none none none;border-top-color:#b5c4df;border-width:1pt medium medium medium;padding:3pt 0in 0in 0in"><p style="font-family:'calibri' , sans-serif;font-size:11pt;margin:0in 0in 0.0001pt 0in"><strong><span style="color:black;font-size:12pt">From: </span></strong><span style="color:black;font-size:12pt">gradsusr <<a href="mailto:gradsusr-bounces@gradsusr.org">gradsusr-bounces@gradsusr.org</a>> on behalf of Gevorgyan Artur <<a href="mailto:agm86@yandex.ru">agm86@yandex.ru</a>><br /><strong>Reply-To: </strong>GrADS Users Forum <<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>><br /><strong>Date: </strong>Wednesday, April 29, 2020 at 9:51 PM<br /><strong>To: </strong>GrADS Users Forum <<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>><br /><strong>Subject: </strong>[EXTERNAL] Re: [gradsusr] variable tdef in the netcdf file</span></p></div><div><p style="font-family:'calibri' , sans-serif;font-size:11pt;margin:0in 0in 0.0001pt 0in"> </p></div><div><p style="font-family:'calibri' , sans-serif;font-size:11pt;margin:0in 0in 0.0001pt 0in">Dear Jeff,</p></div><div><p style="font-family:'calibri' , sans-serif;font-size:11pt;margin:0in 0in 0.0001pt 0in"> </p></div><div><p style="font-family:'calibri' , sans-serif;font-size:11pt;margin:0in 0in 0.0001pt 0in">Thanks for your help! Can you attach the examples of control files using the CHSUB templating (%ch)?</p></div><div><p style="font-family:'calibri' , sans-serif;font-size:11pt;margin:0in 0in 0.0001pt 0in"> </p></div><div><p style="font-family:'calibri' , sans-serif;font-size:11pt;margin:0in 0in 0.0001pt 0in">Can I apply the same method for the zdef if I also have varying heights in my data? If yes, can you please send me the relevant example control file?  </p></div><div><p style="font-family:'calibri' , sans-serif;font-size:11pt;margin:0in 0in 0.0001pt 0in"> </p></div><div><p style="font-family:'calibri' , sans-serif;font-size:11pt;margin:0in 0in 0.0001pt 0in">Kind regards,</p></div><div><p style="font-family:'calibri' , sans-serif;font-size:11pt;margin:0in 0in 0.0001pt 0in">Artur</p></div><div><p style="font-family:'calibri' , sans-serif;font-size:11pt;margin:0in 0in 0.0001pt 0in"> </p></div><div><p style="font-family:'calibri' , sans-serif;font-size:11pt;margin:0in 0in 0.0001pt 0in"> </p></div><div><p style="font-family:'calibri' , sans-serif;font-size:11pt;margin:0in 0in 0.0001pt 0in">29.04.2020, 18:08, "Jeff Duda" <<a href="mailto:jeffduda319@gmail.com">jeffduda319@gmail.com</a>>:</p></div><blockquote style="margin-bottom:5pt;margin-top:5pt"><div><div><p style="font-family:'calibri' , sans-serif;font-size:11pt;margin:0in 0in 0.0001pt 0in">For netCDF, GrADS doesn't read the time from the file itself if you use a control file. So I would write a control file and then rename the files to some arbitrary interval that is close to the actual valid times of the files.</p></div><div><p style="font-family:'calibri' , sans-serif;font-size:11pt;margin:0in 0in 0.0001pt 0in"> </p></div><div><p style="font-family:'calibri' , sans-serif;font-size:11pt;margin:0in 0in 0.0001pt 0in">If you need exact and non-constant timing, then you have two other options I can see</p></div><div><p style="font-family:'calibri' , sans-serif;font-size:11pt;margin:0in 0in 0.0001pt 0in">1) Use CHSUB templating (%ch) to manually type each time stamp into a single control file and then use the time index to loop over those.</p></div><div><p style="font-family:'calibri' , sans-serif;font-size:11pt;margin:0in 0in 0.0001pt 0in">2) If the times change frequently or writing them all out is too tedious, then you can use control <u>files</u> (plural) by using an external scripting source such as Linux shell scripting to loop over individual files, making a separate control file (or using sdfopen) to read/plot from each file in the loop.</p></div><div><p style="font-family:'calibri' , sans-serif;font-size:11pt;margin:0in 0in 0.0001pt 0in"> </p></div><div><p style="font-family:'calibri' , sans-serif;font-size:11pt;margin:0in 0in 0.0001pt 0in">Jeff Duda</p></div></div><p style="font-family:'calibri' , sans-serif;font-size:11pt;margin:0in 0in 0.0001pt 0in"> </p><div><div><p style="font-family:'calibri' , sans-serif;font-size:11pt;margin:0in 0in 0.0001pt 0in">On Wed, Apr 29, 2020 at 12:23 AM Gevorgyan Artur <<a href="mailto:agm86@yandex.ru">agm86@yandex.ru</a>> wrote:</p></div><blockquote style="border-left-color:#cccccc;border-style:none none none solid;border-width:medium medium medium 1pt;margin-left:4.8pt;margin-right:0in;padding:0in 0in 0in 6pt"><div><p style="font-family:'calibri' , sans-serif;font-size:11pt;margin:0in 0in 0.0001pt 0in">Dear Colleges,</p></div><div><p style="font-family:'calibri' , sans-serif;font-size:11pt;margin:0in 0in 0.0001pt 0in"> </p></div><div><p style="font-family:'calibri' , sans-serif;font-size:11pt;margin:0in 0in 0.0001pt 0in">I have observed data with variable (not constant) observational time intervals. The data are in netcdf format, and the observational times are prescribed defined the time variable, and time:units = "seconds since 1970-01-01"? How can I plot my data using those observational times?  </p></div><div><p style="font-family:'calibri' , sans-serif;font-size:11pt;margin:0in 0in 0.0001pt 0in"> </p></div><div><p style="font-family:'calibri' , sans-serif;font-size:11pt;margin:0in 0in 0.0001pt 0in">Kind regards,</p></div><div><p style="font-family:'calibri' , sans-serif;font-size:11pt;margin:0in 0in 0.0001pt 0in">Artur</p></div><div><p style="font-family:'calibri' , sans-serif;font-size:11pt;margin:0in 0in 0.0001pt 0in"> </p></div><p style="font-family:'calibri' , sans-serif;font-size:11pt;margin:0in 0in 0.0001pt 0in">_______________________________________________<br />gradsusr mailing list<br /><a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br /><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__gradsusr.org_mailman_listinfo_gradsusr&d=DwMGaQ&c=ApwzowJNAKKw3xye91w7BE1XMRKi2LN9kiMk5Csz9Zk&r=M2mFZsxo0ZoztoK2Lyoypu1kKkBVKyEoM9CXGWO42zk&m=yBacwggIwPcM42d51hngANUHlJgDqGar0d1Ch46i2Kw&s=rGn1NukezJsA30DBPq8r2QFd8AswdeA-Smt6N04M-CU&e=">http://gradsusr.org/mailman/listinfo/gradsusr</a></p></blockquote></div><p style="font-family:'calibri' , sans-serif;font-size:11pt;margin:0in 0in 0.0001pt 0in"><br /><br />--</p><div><div><div><div><div><div><div><div><div><div><p style="font-family:'calibri' , sans-serif;font-size:11pt;margin:0in 0in 0.0001pt 0in"><span style="font-size:10pt">Jeff Duda, Research Scientist</span></p></div><div><p style="font-family:'calibri' , sans-serif;font-size:11pt;margin:0in 0in 0.0001pt 0in">University of Colorado Boulder</p></div><div><p style="font-family:'calibri' , sans-serif;font-size:11pt;margin:0in 0in 0.0001pt 0in">Cooperative Institute for Research in Environmental Sciences</p></div><div><p style="font-family:'calibri' , sans-serif;font-size:11pt;margin:0in 0in 0.0001pt 0in">NOAA/OAR/ESRL/Global Systems Laboratory<br /><span style="font-size:10pt">Boulder, CO</span></p></div></div></div></div></div></div></div></div></div></div><p style="font-family:'calibri' , sans-serif;font-size:11pt;margin:0in 0in 0.0001pt 0in">,</p><p>_______________________________________________<br />gradsusr mailing list<br /><a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br /><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__gradsusr.org_mailman_listinfo_gradsusr&d=DwMGaQ&c=ApwzowJNAKKw3xye91w7BE1XMRKi2LN9kiMk5Csz9Zk&r=M2mFZsxo0ZoztoK2Lyoypu1kKkBVKyEoM9CXGWO42zk&m=yBacwggIwPcM42d51hngANUHlJgDqGar0d1Ch46i2Kw&s=rGn1NukezJsA30DBPq8r2QFd8AswdeA-Smt6N04M-CU&e=">http://gradsusr.org/mailman/listinfo/gradsusr</a></p></blockquote></div></div>,<p>_______________________________________________<br />gradsusr mailing list<br /><a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br /><a href="http://gradsusr.org/mailman/listinfo/gradsusr">http://gradsusr.org/mailman/listinfo/gradsusr</a></p></blockquote>