<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=iso-8859-1"><meta name=Generator content="Microsoft Word 14 (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:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 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:12.0pt;
        font-family:"Times New Roman","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;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@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]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Thank you Heiner,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I have been building the Cygwin version of GrADS since v2.0a5. I try to use the most current netCDF library.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Just wanted to make sure all is well with that platform variant.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>John<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>John Huddleston, PhD<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Cooperative Institute for Research in the Atmosphere<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> gradsusr-bounces@gradsusr.org [mailto:gradsusr-bounces@gradsusr.org] <b>On Behalf Of </b>Heiner Körnich<br><b>Sent:</b> Monday, November 08, 2010 9:03 AM<br><b>To:</b> GrADS Users Forum<br><b>Subject:</b> Re: [gradsusr] netCDF control file<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal style='margin-bottom:12.0pt'>Hi John, <br><br>the platform is:<br>file /bin/bash<br>/bin/bash: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), for GNU/Linux 2.6.9, stripped<br><br>My testfile comes from the CERA database, which went twice through CDO. When opening it with Grads v2.0.a4 it gives:<br>Config: v2.0.a4 little-endian readline printim grib2 netcdf hdf4-sds<br>Issue 'q config' command for more information.<br>Landscape mode? ('n' for portrait): <br>GX Package Initialization: Size = 11 8.5 <br>ga-> sdfopen <a href="http://mpi-olr-ltm.nc">mpi-olr-ltm.nc</a> <br>Scanning self-describing file: <a href="http://mpi-olr-ltm.nc">mpi-olr-ltm.nc</a><br>SDF file has no discernable time coordinate -- using default values.<br>SDF file <a href="http://mpi-olr-ltm.nc">mpi-olr-ltm.nc</a> is open as file 1<br>LON set to 0 360 <br>LAT set to -88.572 88.572 <br>LEV set to 0 0 <br>Time values set: 1:1:1:0 1:1:1:0 <br>E set to 1 1 <br>ga-> d rlut<br>gancgrid error: nc_get_vara_double failed; NetCDF: Index exceeds dimension bound<br>Data Request Error: Error for variable 'rlut'<br> Error ocurred at column 1<br>DISPLAY error: Invalid expression <br> Expression = rlut<br><br>I don't understand the netcdf-version question, but here is the ncdump -h output:<br> ncdump -h <a href="http://mpi-olr-ltm.nc">mpi-olr-ltm.nc</a> <br>netcdf mpi-olr-ltm {<br>dimensions:<br> lon = 192 ;<br> nv = 2 ;<br> lat = 96 ;<br> time = UNLIMITED ; // (12 currently)<br>variables:<br> double lon(lon) ;<br> lon:long_name = "longitude" ;<br> lon:units = "degrees_east" ;<br> lon:standard_name = "longitude" ;<br> lon:bounds = "lon_bounds" ;<br> double lon_bounds(lon, nv) ;<br> double lat(lat) ;<br> lat:long_name = "latitude" ;<br> lat:units = "degrees_north" ;<br> lat:standard_name = "latitude" ;<br> lat:bounds = "lat_bounds" ;<br> double lat_bounds(lat, nv) ;<br> double time(time) ;<br> time:units = "day as %Y%m%d.%f" ;<br> float rlut(time, lat, lon) ;<br> rlut:long_name = "Outgoing Longwave Radiation" ;<br> rlut:standard_name = "toa_outgoing_longwave_flux" ;<br> rlut:units = "W m-2" ;<br> rlut:grid_type = "gaussian" ;<br> rlut:cell_methods = "time: mean (interval: 12 minutes)" ;<br> rlut:original_name = "TRAD0" ;<br><br>// global attributes:<br> :CDI = "Climate Data Interface version 1.2.1" ;<br> :Conventions = "CF-1.0" ;<br> :history = "Fri May 15 10:19:53 2009: cdo ymonmean <a href="http://mpi-test.nc">mpi-test.nc</a> <a href="http://mpi-olr-ltm.nc">mpi-olr-ltm.nc</a>\n",<br> "Fri May 15 10:19:39 2009: cdo selyear,1979/1995 <a href="http://pcmdi.ipcc4.mpi_echam5.20c3m.run1.monthly.rlut_A1.nc">pcmdi.ipcc4.mpi_echam5.20c3m.run1.monthly.rlut_A1.nc</a> <a href="http://mpi-test.nc">mpi-test.nc</a>\n",<br> "Output from CERA Database, processed with cdo, PINGO, CMOR At 10:19:52 on 01/20/2005, CMOR rewrote data to comply with CF standards and IPCC Fourth Assessment requirements" ;<br> :institution = "MPI (Max Planck Institute for Meteorology,Hamburg, Germany)" ;<br> :title = "MPI model output prepared for IPCC Fourth Assessment climate of the 20th Century experiment (20C3M)" ;<br> :contact = "Joerg Wegner (<a href="mailto:wegner@dkrz.de">wegner@dkrz.de</a>)" ;<br> :project_id = "IPCC Fourth Assessment" ;<br> :table_id = "Table A1 (8 October 2004)" ;<br> :experiment_id = "climate of the 20th Century experiment (20C3M)" ;<br> :realization = 1 ;<br> :cmor_version = 0.959999978542328 ;<br> :references = "ECHAM5: E. Roeckner et. all, 2003,The atmospheric general circulation model ECHAM5Report No. 349OM: Marsland et. all, 2003,The Max-Planck-Institute global ocean/sea ice modelwith orthogonal curvelinear coordinatesOcean Modell., 5, <a href="http://91-127.OM">91-127.OM</a>: Haak, H. et. all, 2003:Formation and propagation of great salinity anomalies,Geophys. Res. Lett., 30 , 1473,10.1029/2003GL17065." ;<br> :comment = "anthropogenic forcing only" ;<br> :CDO = "Climate Data Operators version 1.2.1 (<a href="http://www.mpimet.mpg.de/cdo">http://www.mpimet.mpg.de/cdo</a>)" ;<br>}<br><br>Kind regards,<br>Heiner<br><br><o:p></o:p></p><div><p class=MsoNormal>On Mon, Nov 8, 2010 at 4:27 PM, Huddleston, John <<a href="mailto:Huddleston@cira.colostate.edu">Huddleston@cira.colostate.edu</a>> wrote:<o:p></o:p></p><div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt;color:#1F497D'>Hi Heiner,</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt;color:#1F497D'> </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt;color:#1F497D'>Which platform of GrADS 2.x does not open netCDF “older” files? What is the version of the netCDF file that it cannot open? </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt;color:#1F497D'> </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:10.0pt;color:#1F497D'>John Huddleston, PhD</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:10.0pt;color:#1F497D'>Cooperative Institute for Research in the Atmosphere</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt;color:#1F497D'> </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><b><span style='font-size:10.0pt'>From:</span></b><span style='font-size:10.0pt'> <a href="mailto:gradsusr-bounces@gradsusr.org" target="_blank">gradsusr-bounces@gradsusr.org</a> [mailto:<a href="mailto:gradsusr-bounces@gradsusr.org" target="_blank">gradsusr-bounces@gradsusr.org</a>] <b>On Behalf Of </b>Heiner Körnich<br><b>Sent:</b> Monday, November 08, 2010 6:06 AM<br><b>To:</b> GrADS Users Forum<br><b>Subject:</b> Re: [gradsusr] netCDF control file</span><o:p></o:p></p><div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;margin-bottom:12.0pt'>Hi Deniz,<br><br>you don't nead a ctl-file to open a netcdf-file in grads. If your file follows the COARDS-standard, then you can open it with 'sdfopen <a href="http://ures.nc" target="_blank">ures.nc</a>'. If grads won't recognise it, you might want to try an older grads-version. We had some problems here with grads 2.0 and netcdf.<br><br>If grads still won't open your file, you can write a ctl-file and try to open that with the command 'xdfopen'. The ctl-file looks a bit different from standard ctl-files, look here:<br><a href="http://www.iges.org/grads/gadoc/gradcomdxdfopen.html" target="_blank">http://www.iges.org/grads/gadoc/gradcomdxdfopen.html</a><br><br>Then, you would need the output from ncdump in order to know what is inside the netcdf-file. Alternatively you can use the climate data operators (CDO) with the command "cdo sinfo <a href="http://ures.nc" target="_blank">ures.nc</a>".<br>Or in matlab, if you have the mexnc-package installed, you read the information with <br>info=nc_info('<a href="http://ures.nc" target="_blank">ures.nc</a>')<br>Then you can access all details in info.<br><br>Finally, if it is only you who will use the data, it might be simpler to write binary output in matlab and use a standard ctl.<br><br>Kind regards from Stockholm,<br>Heiner<o:p></o:p></p><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>On Mon, Nov 8, 2010 at 10:11 AM, Deniz Demirhan Bari <<a href="mailto:bari@iap-kborn.de" target="_blank">bari@iap-kborn.de</a>> wrote:<o:p></o:p></p><div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:10.0pt'>Dear Grads users, </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:10.0pt'>I have calculated residual wind components in MATLAB and saved them in netCDF file. Now I want to read them in grads but I cannot create a netcdf control file.</span><o:p></o:p></p><pre>I tried to get the output of ncdump but my computer doesn’t recognize ncdump although I installed it. <o:p></o:p></pre><pre>I am using the latest version of Grads on a Suse Linux computer. <o:p></o:p></pre><pre>My attempt to create a ctl file is below: <o:p></o:p></pre><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt'>*</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt'>DSET ^<a href="http://ures.nc" target="_blank">ures.nc</a></span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt'>DTYPE netCDF</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt'>XDEF 96 LINEAR 0.000000 3.750000</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt'>YDEF 48 LEVELS -87.159 -83.479 -79.777 -76.070 -72.362 -68.652</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt'> -64.942 -61.232 -57.521 -53.810 -50.099 -46.389</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt'> -42.678 -38.967 -35.256 -31.545 -27.833 -24.122</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt'> -20.411 -16.700 -12.989 -9.278 -5.567 -1.856</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt'> 1.856 5.567 9.278 12.989 16.700 20.411</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt'> 24.122 27.833 31.545 35.256 38.967 42.678</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt'> 46.389 50.099 53.810 57.521 61.232 64.942</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt'> 68.652 72.362 76.070 79.777 83.479 87.159</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt'>ZDEF 114 LINEAR 1 1</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt'>TDEF 1 LINEAR 00:00Z00jan0000 1mn</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt'>OPTIONS yrev</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt'>UNDEF -9e+33</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt'>VARS 1</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt'>ures 114 1,100 ures</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt'>ENDVARS</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt'>* </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt'>Thanks in advance</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt'>Deniz DEMIRHAN BARI</span><o:p></o:p></p><p><span lang=DE style='font-size:10.0pt'>Leibniz-Institut für Atmosphärenphysik e.V.<br>an der Universität Rostock<br>Schlossstraße 6<br>18225 Kühlungsborn</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=DE style='font-size:11.0pt'> </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=DE style='font-size:11.0pt'> </span><o:p></o:p></p></div></div><p class=MsoNormal style='mso-margin-top-alt:auto;margin-bottom:12.0pt'><br>_______________________________________________<br>gradsusr mailing list<br><a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br><a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><o:p></o:p></p></div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><br><br clear=all><br>-- <br>Heiner Körnich <br>Dept. of Meteorology Tel: +46 8 164333<br>Stockholms University, SE-106 91 Stockholm, Sweden<br>Email: <a href="mailto:heiner@misu.su.se" target="_blank">heiner@misu.su.se</a> <a href="http://www.misu.su.se/%7Eheiner/" target="_blank">www.misu.su.se/~heiner/</a><o:p></o:p></p></div></div></div></div><p class=MsoNormal style='margin-bottom:12.0pt'><br>_______________________________________________<br>gradsusr mailing list<br><a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br><a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><o:p></o:p></p></div><p class=MsoNormal><br><br clear=all><br>-- <br>Heiner Körnich <br>Dept. of Meteorology Tel: +46 8 164333<br>Stockholms University, SE-106 91 Stockholm, Sweden<br>Email: <a href="mailto:heiner@misu.su.se">heiner@misu.su.se</a> <a href="http://www.misu.su.se/~heiner/">www.misu.su.se/~heiner/</a><o:p></o:p></p></div></body></html>