<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><br><div><div>On Jul 10, 2015, at 1:55 PM, Liu, Zhong (GSFC-610.2)[GEORGE MASON UNIVERSITY] <<a href="mailto:zhong.liu-1@nasa.gov">zhong.liu-1@nasa.gov</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1"><p class="MsoNormal">Hi GrADS users,<o:p></o:p></p><p class="MsoNormal"><o:p> </o:p></p><p class="MsoNormal">I have two simple questions:<o:p></o:p></p><p class="MsoNormal"><o:p> </o:p></p><p class="MsoNormal">1) When outputting my data in floating (see below), how come the lat and lon arrays are still in double (other variables are in floating)? Is there any way to make them (lat, lon) floating?<o:p></o:p></p><p class="MsoNormal"><o:p> </o:p></p><p class="MsoNormal">'set sdfwrite -3dt -flt -nc4 -chunk -zip '%fn<o:p></o:p></p><p class="MsoNormal"><o:p> </o:p></p><p class="MsoNormal">I am using GrADS 2.1.a3.</p></div></div></blockquote><div><br></div><div>The coordinate axis values are hard-coded to be double precision. Given that it is a relatively small array of numbers, I figured it would be better to leave them at double precision since that’s how they are stored by GrADS. I don’t think it would significantly alter the file size to have them be floats instead of doubles. There is probably a way to use the NetCDF Operators to change the data type if you absolutely must have floats.</div><br><blockquote type="cite"><div lang="EN-US" link="blue" vlink="purple"><div class="WordSection1"><p class="MsoNormal"><o:p></o:p></p><p class="MsoNormal"><o:p> </o:p></p><p class="MsoNormal">2) For the ‘Time’ units, is there any way to overwrite for example “:units = "minutes since 1998-01-05 00:00";” with<o:p></o:p></p><p class="MsoNormal">“days since 1998-01-05”? </p></div></div></blockquote><div><br></div><div>GrADS stores time axis units as either minutes or months. If you use days or hours in your TDEF, they are converted to minutes. I recently changed the sdfwrite code to use 'months since’ as the unit for netcdf output when the original file had months as the time axis unit. Earlier versions of GrADS always used ‘minutes since’ and that meant that a file with a yearly time axis could not be opened with sdfopen. It is unlikely that I will add an option to convert 'minutes since’ to ‘days since' for the sdfwrite output — maybe NCO will do this, but I’m not sure. </div><div>—Jennifer</div><br><blockquote type="cite"><div lang="EN-US" link="blue" vlink="purple"><div class="WordSection1"><p class="MsoNormal"><o:p></o:p></p><p class="MsoNormal"><o:p> </o:p></p><p class="MsoNormal">Thanks a lot!<o:p></o:p></p><p class="MsoNormal"><o:p> </o:p></p><p class="MsoNormal">Best,<o:p></o:p></p><p class="MsoNormal"><o:p> </o:p></p><p class="MsoNormal"><span style="font-size:10.5pt;font-family:Consolas">Zhong Liu, Ph.D.<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:10.5pt;font-family:Consolas"><a href="mailto:Zhong.Liu-1@nasa.gov">Zhong.Liu-1@nasa.gov</a><o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:10.5pt;font-family:Consolas">George Mason University and<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:10.5pt;font-family:Consolas">NASA Goddard Earth Sciences Data and<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:10.5pt;font-family:Consolas">Information Services Center<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:10.5pt;font-family:Consolas">NASA/GSFC, Code 610.2<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:10.5pt;font-family:Consolas">Greenbelt. MD. 20771 U.S.A.<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:10.5pt;font-family:Consolas">(301) 614-5764 (voice)<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:10.5pt;font-family:Consolas">(301) 614-5268 (fax)<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:10.5pt;font-family:Consolas"><a href="http://disc.gsfc.nasa.gov/">http://disc.gsfc.nasa.gov</a><o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:10.5pt;font-family:Consolas"><a href="http://giovanni.gsfc.nasa.gov/">http://giovanni.gsfc.nasa.gov</a><o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:10.5pt;font-family:Consolas"><a href="http://disc.sci.gsfc.nasa.gov/hurricane/">http://disc.sci.gsfc.nasa.gov/hurricane/</a><o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:10.5pt;font-family:Consolas"><a href="http://disc.sci.gsfc.nasa.gov/hurricane/trmm_quikscat_analysis.shtml">http://disc.sci.gsfc.nasa.gov/hurricane/trmm_quikscat_analysis.shtml</a><o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:10.5pt;font-family:Consolas"><a href="http://disc.sci.gsfc.nasa.gov/agriculture/ais_sup/current_conditions.shtml">http://disc.sci.gsfc.nasa.gov/agriculture/ais_sup/current_conditions.shtml</a><o:p></o:p></span></p><p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
_______________________________________________<br>gradsusr mailing list<br><a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>http://gradsusr.org/mailman/listinfo/gradsusr<br></blockquote></div><br><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div>--</div><div>Jennifer M. Adams<br>Center for Ocean-Land-Atmosphere Studies (COLA)<br>111 Research Hall, Mail Stop 2B3<br>George Mason University<br>4400 University Drive<br>Fairfax, VA 22030 <br><br></div><div><br class="khtml-block-placeholder"></div><br class="Apple-interchange-newline"></span></span><br class="Apple-interchange-newline">
</div>
<br></body></html>