<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi, Joe -- <div>The problem with your netcdf file is that your lat and lon coordinate variables are 2-dimensional. GrADS does not handle this kind of grid easily. You can bring it in on an abstract grid: </div><div>xdef 349 linear 1 1</div><div>ydef 277 linear 1 1</div><div>but then you won't be able to draw your data on a map. Your only recourse is to write a PDEF file to tell grads exactly how to map the grid points to a regular grid. </div><div><br></div><div>As for your other problem with sdfopen and xdfopen not being recognized commands, it is probably related to the configuration of the build you're using. Type 'q config' and check the output carefully to see what features are enabled in your build. </div><div>--Jennifer</div><div><br><div><br></div><div><div><div><div><div>On Mar 12, 2010, at 3:06 PM, <a href="mailto:joseph.pollina@noaa.gov">joseph.pollina@noaa.gov</a> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div onload="parent.init()" applecontenteditable="true"><div><br class="webkit-block-placeholder"></div><p><b>The following is the output when I ncdump the netCDF file:</b></p><p>dimensions:<br> y = 277 ;<br> x = 349 ;<br> level = 29 ;<br> time = UNLIMITED ; // (1 currently)<br>variables:<br> float level(level) ;<br> level:units = "millibar" ;<br> level:actual_range = 1000.f, 100.f ;<br> level:long_name = "Level" ;<br> level:positive = "down" ;<br> level:GRIB_id = 100s ;<br> level:GRIB_name = "hPa" ;<br> level:axis = "Z" ;<br> level:coordinate_defines = "point" ;<br> float lat(y, x) ;<br> lat:long_name = "latitude" ;<br> lat:units = "degrees_north" ;<br> lat:standard_name = "latitude" ;<br> lat:axis = "Y" ;<br> lat:coordinate_defines = "point" ;<br> float lon(y, x) ;<br> lon:units = "degrees_east" ;<br> lon:long_name = "longitude" ;<br> lon:standard_name = "longitude" ;<br> lon:axis = "X" ;<br> lon:coordinate_defines = "point" ;<br> double time(time) ;<br> time:units = "hours since 1800-1-1 00:00:0.0" ;<br> time:long_name = "time" ;<br> time:actual_range = 1569072., 1569069. ;<br> time:delta_t = "0000-00-00 03:00:00" ;<br> time:standard_name = "time" ;<br> time:axis = "T" ;<br> time:coordinate_defines = "point" ;<br> float xdist(x) ;<br> xdist:long_name = "eastward distance from southwest corner of domain in projection coordinates" ;<br> xdist:units = "m" ;<br> float ydist(y) ;<br> ydist:long_name = "northward distance from southwest corner of domain in projection coordinates" ;<br> ydist:units = "m" ;<br> float mslet(time, level, y, x) ;<br> mslet:long_name = "Mean Sea Level (ETA model) Pressure " ;<br> mslet:valid_range = -9.e+16f, 9.e+16f ;<br> mslet:actual_range = -9.e+15f, 9.e+15f ;<br> mslet:units = "Pa" ;<br> mslet:missing_value = -9.96921e+36f ;<br> mslet:_FillValue = -32767.f ;<br> mslet:precision = 2s ;<br> mslet:least_significant_digit = 1s ;<br> mslet:var_desc = "Mean Sea Level (ETA model) Pressure " ;<br> mslet:dataset = "NARR" ;<br> mslet:level_desc = "È^Ô\räô·)º¼ä¤ô·Lf¼£Éã\b" ;<br> mslet:statistic = "Composite" ;<br> mslet:parent_stat = "Other" ;<br> mslet:standard_name = "Default" ;<br> int Lambert_Conformal ;<br> Lambert_Conformal:grid_mapping_name = "lambert_conformal_conic" ;<br> Lambert_Conformal:standard_parallel = 50., 50. ;<br> Lambert_Conformal:longitude_of_central_meridian = -107. ;<br> Lambert_Conformal:latitude_of_projection_origin = 50. ;<br> Lambert_Conformal:false_easting = 5632642.22547 ;<br> Lambert_Conformal:false_northing = 4612545.65137 ;</p><p>// global attributes:<br> :Conventions = "CF-1.0" ;<br> :title = "Composite Value" ;<br> :history = "dummy file: created in web ap" ;<br> :comments = "Data is from North American Regional Reanalysis\n",<br> "(8x/day). It consists of most variables interpolated to\n",<br> "pressure surfaces from model (sigma) surfaces." ;<br> :institution = "National Centers for Environmental Prediction" ;<br> :platform = "Model" ;<br> :references = "<a href="http://wwwt.emc.ncep.noaa.gov/mmb/rreanl/index.html\n">http://wwwt.emc.ncep.noaa.gov/mmb/rreanl/index.html\n</a>",<br> "<a href="http://www.esrl.noaa.gov/psd/data/gridded/data.narr.html">http://www.esrl.noaa.gov/psd/data/gridded/data.narr.html</a>" ;<br> :description = "Computed from the web page <a href="http://www.esrl.noaa.gov/psd/narr/"> http://www.esrl.noaa.gov/psd/narr/</a> at NOAA/ESRL PSD: monthly mean composite" ;<br>data:</p><p> level = 1000, 975, 950, 925, 900, 875, 850, 825, 800, 775, 750, 725, 700, <br> 650, 600, 550, 500, 450, 400, 350, 300, 275, 250, 225, 200, 175, 150, <br> 125, 100 ;</p><p> time = 51080.1711899228 ;<br>}<br></p><p>Joe</p><p><b></b> </p><p><b>----- Original Message -----</b></p><div><br class="webkit-block-placeholder"></div><b>From</b>: <<a href="mailto:joseph.pollina@noaa.gov">joseph.pollina@noaa.gov</a>> <div><br class="webkit-block-placeholder"></div><b>Date</b>: Friday, March 12, 2010 2:53 pm <div><br class="webkit-block-placeholder"></div><b>Subject</b>: reading in a netCDF file from NARR <div><br class="webkit-block-placeholder"></div><div><br class="webkit-block-placeholder"></div>> I have been trying to read in a netCDF file that was creasted <br>> using the NARR monthly composite site. I've tried sdfopen and I <br>> tried using xdfopen with a descriptor file, however, I'm not sure <br>> if I configured the descriptor file correctly. I've even tried <br>> the narropen.gs script on the script library page, but again, not <br>> sure if I am inputting the correct variables. I was wondering if <br>> anyone has any clue as to how to get this file open. <br>> Also, for some reason, sdfopen and xdfopen is not recognized as a <br>> command in grads.2.0.a7.1...at least at school, but xdfopen seems <br>> to work ok at my office at work, not sure why that would be as <br>> well (they are both the same versions). <br>> Any help would be GREATLY appreciated. <br>> Joe <br>> </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; border-spacing: 0px 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; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 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; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 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; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div>--</div><div>Jennifer M. Adams</div><div>IGES/COLA</div><div>4041 Powder Mill Road, Suite 302</div><div>Calverton, MD 20705</div><div><a href="mailto:jma@cola.iges.org">jma@cola.iges.org</a></div><div><br class="khtml-block-placeholder"></div><br class="Apple-interchange-newline"></span></span></div></span> </div><br></div></div></div></div></body></html>