<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">You forgot to include your descriptor pgd6dec.ctl, and you omitted the critical part from the beginning of the GrADS session that includes the version you are running. I don't ask for these things for trivial reasons!!! Based on what you did send, it looks like you might have something like this in your descriptor: <div><br><div>Precip_1=>p1 1 t,z,y,x precip in 1st day of month</div><div><br></div><div>But the variable Precip_1 has only Z,Y,X dimensions. Replace "t,z,y,x" with "z,y,x" and try again. </div><div>--Jennifer</div><div><br></div><div><br></div><div><br><div><div>On Oct 6, 2010, at 12:28 PM, Roberto Mera wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"> <div bgcolor="#ffffff" text="#000000"> Thanks, Jennifer. Here goes.<br> <br> ncdump -c Desktop/CPDN/nhqhga.pdg6dec.pnw.nc <br> netcdf nhqhga.pdg6dec.pnw {<br> dimensions:<br> X = 110 ;<br> Y = 117 ;<br> Z = 1 ;<br> variables:<br> int time(Z) ;<br> time:long_name = "time" ;<br> time:units = "month" ;<br> float latitude(Y) ;<br> latitude:long_name = "latitude" ;<br> latitude:units = "degrees_north" ;<br> float longitude(X) ;<br> longitude:long_name = "longitude" ;<br> longitude:units = "degrees_east" ;<br> float Tmin(Z, Y, X) ;<br> Tmin:long_name = "Monthly average of daily Tmin" ;<br> Tmin:units = "C" ;<br> Tmin:Fill_Value = -9999.f ;<br> float Frost(Z, Y, X) ;<br> Frost:long_name = "Number of frost days per month" ;<br> Frost:units = "days" ;<br> Frost:Fill_Value = -9999.f ;<br> float Tmin_1(Z, Y, X) ;<br> Tmin_1:long_name = "First monthly minimum of Tmin" ;<br> Tmin_1:units = "C" ;<br> Tmin_1:Fill_Value = -9999.f ;<br> float Tmin_2(Z, Y, X) ;<br> Tmin_2:long_name = "Second montlhy minimum of Tmin" ;<br> Tmin_2:units = "C" ;<br> Tmin_2:Fill_Value = -9999.f ;<br> float Tmin_3(Z, Y, X) ;<br> Tmin_3:long_name = "Third monthly minimum of Tmin" ;<br> Tmin_3:units = "C" ;<br> Tmin_3:Fill_Value = -9999.f ;<br> float Tmax(Z, Y, X) ;<br> Tmax:long_name = "Monthly average of daily Tmax" ;<br> Tmax:units = "C" ;<br> Tmax:Fill_Value = -9999.f ;<br> float TT30(Z, Y, X) ;<br> TT30:long_name = "Number of days with Tmax > 30 degC" ;<br> TT30:units = "days" ;<br> TT30:Fill_Value = -9999.f ;<br> float TT35(Z, Y, X) ;<br> TT35:long_name = "Number of days with Tmax > 35 degC" ;<br> TT35:units = "days" ;<br> TT35:Fill_Value = -9999.f ;<br> float TT40(Z, Y, X) ;<br> TT40:long_name = "Number of days with Tmax > 40 degC" ;<br> TT40:units = "days" ;<br> TT40:Fill_Value = -9999.f ;<br> float Tmax_1(Z, Y, X) ;<br> Tmax_1:long_name = "First monthly maximum of Tmax" ;<br> Tmax_1:units = "C" ;<br> Tmax_1:Fill_Value = -9999.f ;<br> float Tmax_2(Z, Y, X) ;<br> Tmax_2:long_name = "Second monthly maximum of Tmax" ;<br> Tmax_2:units = "C" ;<br> Tmax_2:Fill_Value = -9999.f ;<br> float Tmax_3(Z, Y, X) ;<br> Tmax_3:long_name = "Third monthly maximum of Tmax" ;<br> Tmax_3:units = "C" ;<br> Tmax_3:Fill_Value = -9999.f ;<br> float U-std(Z, Y, X) ;<br> U-std:long_name = "Monthly standard deviation of U surface wind" ;<br> U-std:units = "m s-1" ;<br> U-std:Fill_Value = -9999.f ;<br> float V-std(Z, Y, X) ;<br> V-std:long_name = "Monthly standard deviation of V surface wind" ;<br> V-std:units = "m s-1" ;<br> V-std:Fill_Value = -9999.f ;<br> float Max_wind_speed(Z, Y, X) ;<br> Max_wind_speed:long_name = "Monthly maximum of daily wind speed" ;<br> Max_wind_speed:units = "m s-1" ;<br> Max_wind_speed:Fill_Value = -9999.f ;<br> float Dry_max_1(Z, Y, X) ;<br> Dry_max_1:long_name = "Max number of consecutive dry days at start of the month" ;<br> Dry_max_1:units = "days" ;<br> Dry_max_1:Fill_Value = -9999.f ;<br> float Dry_max_2(Z, Y, X) ;<br> Dry_max_2:long_name = "Max number of consecutive dry days at end of the month" ;<br> Dry_max_2:units = "days" ;<br> Dry_max_2:Fill_Value = -9999.f ;<br> float Dry_max_3(Z, Y, X) ;<br> Dry_max_3:long_name = "Max number of consecutive dry days during the month" ;<br> Dry_max_3:units = "days" ;<br> Dry_max_3:Fill_Value = -9999.f ;<br> float Wet_days(Z, Y, X) ;<br> Wet_days:long_name = "Number of wet days during the month" ;<br> Wet_days:units = "days" ;<br> Wet_days:Fill_Value = -9999.f ;<br> float Precip_1(Z, Y, X) ;<br> Precip_1:long_name = "Total precipitation within the 1st day of the month" ;<br> Precip_1:units = "mm" ;<br> Precip_1:Fill_Value = -9999.f ;<br> float Precip_2(Z, Y, X) ;<br> Precip_2:long_name = "Total precipitation on the 21st days of the month" ;<br> Precip_2:units = "mm" ;<br> Precip_2:Fill_Value = -9999.f ;<br> float Precip_3(Z, Y, X) ;<br> Precip_3:long_name = "Total precipitation within 3 days" ;<br> Precip_3:units = "mm" ;<br> Precip_3:Fill_Value = -9999.f ;<br> float Precip_4(Z, Y, X) ;<br> Precip_4:long_name = "Total precipitation within the 2 last days of the month" ;<br> Precip_4:units = "mm" ;<br> Precip_4:Fill_Value = -9999.f ;<br> float Precip_5(Z, Y, X) ;<br> Precip_5:long_name = "Total precipitation within the last day of the month" ;<br> Precip_5:units = "mm" ;<br> Precip_5:Fill_Value = -9999.f ;<br> float Pge40(Z, Y, X) ;<br> Pge40:long_name = "Number of days with daily P > 40 mm" ;<br> Pge40:units = "days" ;<br> Pge40:Fill_Value = -9999.f ;<br> float Pge80(Z, Y, X) ;<br> Pge80:long_name = "Number of days with daily P > 80 mm" ;<br> Pge80:units = "days" ;<br> Pge80:Fill_Value = -9999.f ;<br> float Pge120(Z, Y, X) ;<br> Pge120:long_name = "Number of days with daily P > 120 mm" ;<br> Pge120:units = "days" ;<br> Pge120:Fill_Value = -9999.f ;<br> float Pmax_1(Z, Y, X) ;<br> Pmax_1:long_name = "First max daily total precipitation rate over the month" ;<br> Pmax_1:units = "mm" ;<br> Pmax_1:Fill_Value = -9999.f ;<br> float Pmax_2(Z, Y, X) ;<br> Pmax_2:long_name = "Second max daily total precipitation rate over the month" ;<br> Pmax_2:units = "mm" ;<br> Pmax_2:Fill_Value = -9999.f ;<br> float Pmax_3(Z, Y, X) ;<br> Pmax_3:long_name = "Third max daily total precipitation rate over the month" ;<br> Pmax_3:units = "mm" ;<br> Pmax_3:Fill_Value = -9999.f ;<br> float Z(Z, Y, X) ;<br> Z:long_name = "Monthly mean geopotential height at 500mb" ;<br> Z:units = "m" ;<br> Z:Fill_Value = -9999.f ;<br> float Z-std(Z, Y, X) ;<br> Z-std:long_name = "Monthly standard deviation of geopotential height at 500mb" ;<br> Z-std:units = "m" ;<br> Z-std:Fill_Value = -9999.f ;<br> float Snow_mass(Z, Y, X) ;<br> Snow_mass:long_name = "Snow mass on the first day of the month" ;<br> Snow_mass:units = "kg m-2" ;<br> Snow_mass:Fill_Value = -9999.f ;<br> float DlastSM(Z, Y, X) ;<br> DlastSM:long_name = "Date of last snow mass" ;<br> DlastSM:units = "day" ;<br> DlastSM:Fill_Value = -9999.f ;<br> float Max_runoff(Z, Y, X) ;<br> Max_runoff:long_name = "Maximum daily runoff" ;<br> Max_runoff:units = "kg m-2 s-1" ;<br> Max_runoff:Fill_Value = -9999.f ;<br> float Date_max_runoff(Z, Y, X) ;<br> Date_max_runoff:long_name = "Date of maximum daily runoff" ;<br> Date_max_runoff:units = "day" ;<br> Date_max_runoff:Fill_Value = -9999.f ;<br> data:<br> }<br> <br> --------------------<br> in grads:<br> <br> GX Package Initialization: Size = 11 8.5 <br> Command line history in /home/rjmera/.grads.log<br> ga-> sdfopen Desktop/CPDN/nhqhga.pdg6dec.pnw.nc <br> Scanning self-describing file: Desktop/CPDN/nhqhga.pdg6dec.pnw.nc<br> gadsdf: SDF file has no discernable X coordinate.<br> <br> ga-> open Desktop/CPDN/pdg6dec.ctl<br> Scanning description file: Desktop/CPDN/pdg6dec.ctl<br> Data file Desktop/CPDN/nhqhga.pdg6dec.pnw.nc is open as file 1<br> LON set to 347.79 371.77 <br> LAT set to -11.99 13.31 <br> LEV set to 1 1 <br> Time values set: 1967:12:6:0 1967:12:6:0 <br> E set to 1 1 <br> ga-> q file<br> File 1 : Pacific northwest<br> Descriptor: Desktop/CPDN/pdg6dec.ctl<br> Binary: Desktop/CPDN/nhqhga.pdg6dec.pnw.nc<br> Type = Gridded<br> Xsize = 110 Ysize = 117 Zsize = 1 Tsize = 1 Esize = 1<br> Number of Variables = 36<br> tmin 1 t,z,y,x Tmin (C)<br> frost 1 t,z,y,x Frost (days)<br> tmin1 1 t,z,y,x Min1 (C)<br> tmin2 1 t,z,y,x Min2 (C)<br> tmin3 1 t,z,y,x Min3 (C)<br> tmax 1 t,z,y,x Tmax (C)<br> tt30 1 t,z,y,x 30Ctmax (days)<br> tt35 1 t,z,y,x 35Ctmax (days)<br> tt40 1 t,z,y,x 40Ctmax (days)<br> tmax1 1 t,z,y,x Max1 (C)<br> tmax2 1 t,z,y,x Max2 (C)<br> tmax3 1 t,z,y,x Max3 (C)<br> ustd 1 t,z,y,x monstdU (m s-1)<br> vstd 1 t,z,y,x monstdU (m s-1)<br> mxwspeed 1 1 t,z,y,x maxwindsped (m s-1)<br> drymax1 1 1 t,z,y,x daysmaxdrystart (days)<br> drymax2 1 1 t,z,y,x daysmaxdrymid (days)<br> drymax3 1 1 t,z,y,x daysmaxdryend (days)<br> wetdays 1 1 t,z,y,x numwetdays (days)<br> p1 1 1 t,z,y,x 1stdayprec (mm)<br> p2 1 1 t,z,y,x 21stdayprec (mm)<br> p3 1 1 t,z,y,x 3daysprec (mm)<br> p4 1 1 t,z,y,x preclast2days (mm)<br> p5 1 1 t,z,y,x preclastday (mm)<br> pge40 1 1 t,z,y,x 40mmprec (days)<br> pge80 1 1 t,z,y,x 80mmprec (days)<br> pge120 1 1 t,z,y,x 120mmprec (days)<br> pmax1 1 1 t,z,y,x 1stmaxprec (C)<br> pmax2 1 1 t,z,y,x 2ndmaxprec (C)<br> pmax3 1 1 t,z,y,x 3rdmaxprec (C)<br> z 1 1 t,z,y,x hgtmean500 (m)<br> zstd 1 1 t,z,y,x hgtstdv (m)<br> snowmass 1 1 t,z,y,x snowmass (kg m-2)<br> lastsnow 1 1 t,z,y,x daylastsnw (day)<br> mxrunoff 1 1 t,z,y,x maxrunoff (kg m-2 s-1)<br> datemxrunoff 1 1 t,z,y,x maxrunoffdate (day)<br> ga-> d p1<br> gancgrid error: nc_get_vara_double failed; NetCDF: Start+count exceeds dimension bound<br> Data Request Error: Error for variable 'p1'<br> Error ocurred at column 1<br> DISPLAY error: Invalid expression <br> Expression = p1<br> ga-> <br> <br> <br> On 10/6/10 5:17 AM, Jennifer Adams wrote: <blockquote cite="mid:57151F55-1FDB-45A6-81CB-CDBDA4DC047A@cola.iges.org" type="cite">Roberto, <div>You need to give the full ncdump -c output (just the time and latitude coordinate metadata is not adequate), as well as the xdfopen-style descriptor, and the full text of your GrADS session that delivers the error message. </div> <div>--Jennifer</div> <div><br> <div> <div>On Oct 5, 2010, at 4:59 PM, Roberto Mera wrote:</div> <br class="Apple-interchange-newline"> <blockquote type="cite"> <div><br> <br> Regarding the questions below: I'm using opengrads 2.0.a7.oga.3. and grads 1.9. on linux.<br> First, using sdfopen I get this message:<br> <br> sdfopen Desktop/CPDN/nhqhga.pdg6dec.pnw.nc<br> Scanning self-describing file: Desktop/CPDN/nhqhga.pdg6dec.pnw.nc<br> gadsdf: SDF file has no discernable X coordinate.<br> <br> Subsequently, I tried xdfopen with a control file. That did not work<br> either. Then I created another ctl file that would read its variables<br> and coordinate system. It opened fine but when I try to just draw the<br> map I get this message no matter which variable I'm working with:<br> <br> gancgrid error: nc_get_vara_double failed; NetCDF: Start+count exceeds<br> dimension bound<br> Data Request Error: Error for variable 'p1'<br> Error ocurred at column 1<br> <br> ncdump -h :<br> <br> netcdf nhqhga.pdg6dec.pnw {<br> dimensions:<br> <span class="Apple-tab-span" style="white-space: pre;"> </span>X = 110 ;<br> <span class="Apple-tab-span" style="white-space: pre;"> </span>Y = 117 ;<br> <span class="Apple-tab-span" style="white-space: pre;"> </span>Z = 1 ;<br> variables:<br> <span class="Apple-tab-span" style="white-space: pre;"> </span>int time(Z) ;<br> <span class="Apple-tab-span" style="white-space: pre;"> </span><span class="Apple-tab-span" style="white-space: pre;"> </span>time:long_name = "time" ;<br> <span class="Apple-tab-span" style="white-space: pre;"> </span><span class="Apple-tab-span" style="white-space: pre;"> </span>time:units = "month" ;<br> <span class="Apple-tab-span" style="white-space: pre;"> </span>float latitude(Y) ;<br> <span class="Apple-tab-span" style="white-space: pre;"> </span><span class="Apple-tab-span" style="white-space: pre;"> </span>latitude:long_name = "latitude" ;<br> <span class="Apple-tab-span" style="white-space: pre;"> </span><span class="Apple-tab-span" style="white-space: pre;"> </span>latitude:units = "degrees_north" ;<br> <br> <br> .....plus other variables (37)<br> <br> Any thoughts?<br> <br> <br> _______________________________________________<br> gradsusr mailing list<br> <a moz-do-not-send="true" href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br> <a class="moz-txt-link-freetext" href="http://gradsusr.org/mailman/listinfo/gradsusr">http://gradsusr.org/mailman/listinfo/gradsusr</a><br> </div> </blockquote> </div> <br> <div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; border-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; text-indent: 0px; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px;"> <div style="word-wrap: break-word;"><span class="Apple-style-span" style="border-collapse: separate; border-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; text-indent: 0px; 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; 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-indent: 0px; 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 moz-do-not-send="true" 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> <pre wrap=""><fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
gradsusr mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>
<a class="moz-txt-link-freetext" href="http://gradsusr.org/mailman/listinfo/gradsusr">http://gradsusr.org/mailman/listinfo/gradsusr</a>
</pre> </blockquote> <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></body></html>