<html><body><div style="font-family: arial,helvetica,sans-serif; font-size: 12pt; color: #000000"><div>Thank you for your reply and suggestion. If I use 'dtype netcdf', it does not helped me. Please see plot and values as well. All gets almost equal to zero.<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>ga-> d qi<br>Printing Grid -- 42 Values -- Undef = -9.99e+08<br>1.08593e-34 2.34474e-310 2.34474e-310 2.34474e-310 2.34474e-310 2.34474e-310 2.34474e-310 2.34474e-310 <br>2.34474e-310 2.34474e-310 2.34474e-310 2.34474e-310 2.34474e-310 2.34474e-310 2.34474e-310 2.34474e-310 <br>2.34474e-310 2.34474e-310 2.34474e-310 2.34474e-310 2.34474e-310 2.34474e-310 2.34474e-310 2.34474e-310 <br>2.34474e-310 2.34474e-310 2.34474e-310 2.34474e-310 2.34474e-310 2.34474e-310 2.34474e-310 2.34474e-310 <br>2.34474e-310 2.34474e-310 2.34474e-310 2.34474e-310 2.34474e-310 2.34474e-310 2.34474e-310 2.34474e-310 <br>2.34474e-310 2.34474e-310 <br>ga-> <br><br></div><div>Best Regards,<br></div><div>Mahakur<br data-mce-bogus="1"></div><div><br></div><hr id="zwchr" data-marker="__DIVIDER__"><div data-marker="__HEADERS__"><b>From: </b>"Jennifer M Adams" <jadams21@gmu.edu><br><b>To: </b>"GrADS Users Forum" <gradsusr@gradsusr.org><br><b>Sent: </b>Thursday, August 31, 2017 8:23:52 PM<br><b>Subject: </b>Re: [gradsusr] netcdf data: Getting wrong<br></div><div><br></div><div data-marker="__QUOTED_TEXT__">Try uncommenting the ‘dytpe netcdf’ from your descriptor. —Jennifer<br><br>> On Aug 31, 2017, at 10:22 AM, M.Mahakur <mmahakur@TROPMET.RES.IN> wrote:<br>> <br>> Hi,<br>> <br>> I have a small netCDF file (attached with this mail). It has only 42 data values (1-D), prepared a ctl to display it (pasted below). But, the values displayed (plot attached) and the values from 'gxout print' is wrong as well. <br>> <br>> If I read the file and also by ncdump ; the output date values seems to be okay.<br>> <br>> What wrong I am doing with GrADS? I am not able to guess, kindly suggest.<br>> <br>> <br>> ga->open test_1D.ctl<br>> ga-> set gxout print<br>> ga-> d qi<br>> Printing Grid -- 42 Values -- Undef = -9.99e+08<br>> 12562.1 7.41672e-33 7.37557e-40 0 0 -9.99e+08 -9.99e+08 3.19692e-41<br>> 0 6.72623e-44 0 9.31128e-08 2.10757e+11 5.62216e-09 5.59809e-09 5.6272e-09<br>> 5.59809e-09 5.55654e-36 1.21997e-41 3.76158e-37 2.8026e-45 0 -9.99e+08 -9.99e+08<br>> -9.99e+08 -9.99e+08 -9.99e+08 -9.99e+08 2.35113e-38 0 1.50592e-36 3.76158e-37<br>> 8.65165e-36 0 1.8996e-35 0 2.25695e-35 0 4.64906e-16 0<br>> 1.43633e-42 0<br>> ga-><br>> <br>> test_1D.ctl<br>> <br>> dset test_1D.nc<br>> title 1-D field<br>> #dtype netcdf<br>> undef 1.0E+15<br>> xdef 1 linear 90.0 0.6<br>> ydef 1 linear 33.5 0.5<br>> zdef 42 levels 1000 975 950 925 900 875 850 825 800 775 750 725 700 650 600 550 500 450 400 350 300 250 200 150 100 70 50 40 30 20 10 7 5 4 3 2 1 0.699999988079071 0.5 0.400000005960464 0.300000011920929 0.100000001490116<br>> tdef 1 linear 1dec2014 1yr<br>> vars 1<br>> M2IMNPASM_5_12_4_QI=>qi 42 t,z,y,x data (kg/kg)<br>> endvars<br>> <br>> <br>> $ ncdump test_1D.nc<br>> netcdf test_1D {<br>> dimensions:<br>> lev = 42 ;<br>> variables:<br>> float M2IMNPASM_5_12_4_QI(lev) ;<br>> M2IMNPASM_5_12_4_QI:long_name = "Mass fraction of cloud ice water" ;<br>> M2IMNPASM_5_12_4_QI:units = "kg/kg" ;<br>> M2IMNPASM_5_12_4_QI:_FillValue = 1.e+15f ;<br>> M2IMNPASM_5_12_4_QI:missing_value = 1.e+15f ;<br>> M2IMNPASM_5_12_4_QI:fmissing_value = 1.e+15f ;<br>> M2IMNPASM_5_12_4_QI:vmax = 1.e+15f ;<br>> M2IMNPASM_5_12_4_QI:vmin = -1.e+15f ;<br>> M2IMNPASM_5_12_4_QI:origname = "QI" ;<br>> M2IMNPASM_5_12_4_QI:fullnamepath = "/QI" ;<br>> M2IMNPASM_5_12_4_QI:quantity_type = "Atmospheric Moisture" ;<br>> M2IMNPASM_5_12_4_QI:product_short_name = "M2IMNPASM" ;<br>> M2IMNPASM_5_12_4_QI:coordinates = "lev" ;<br>> double lev(lev) ;<br>> lev:long_name = "vertical level" ;<br>> lev:units = "hPa" ;<br>> lev:positive = "down" ;<br>> lev:vmax = 1.e+15f ;<br>> lev:vmin = -1.e+15f ;<br>> lev:origname = "lev" ;<br>> lev:fullnamepath = "/lev" ;<br>> lev:standard_name = "lev" ;<br>> <br>> // global attributes:<br>> :NCO = "\"4.5.3\"" ;<br>> :nco_openmp_thread_number = 1 ;<br>> :Conventions = "CF-1.4" ;<br>> ...<br>> ...<br>> :plot_hint_x_axis_label = "kg/kg" ;<br>> data:<br>> <br>> M2IMNPASM_5_12_4_QI = 1.085931e-34, 2.425139e-15, 2.551117e-15, <br>> 2.137763e-10, 3.473309e-10, 5.428896e-10, 1.224933e-09, 2.271552e-09, <br>> 3.657936e-09, 4.386702e-09, 3.968771e-09, 3.949917e-09, 5.202131e-09, <br>> 1.241103e-08, 3.866537e-08, 1.015603e-07, 3.370216e-07, 1.236549e-06, <br>> 3.431156e-06, 6.231193e-06, 7.820233e-06, 7.548194e-06, 4.589851e-06, <br>> 1.440135e-06, 2.245211e-08, 1.667856e-11, 7.0466e-27, 5.366316e-36, 0, 0, <br>> 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ;<br>> <br>> lev = 1000, 975, 950, 925, 900, 875, 850, 825, 800, 775, 750, 725, 700, 650, <br>> 600, 550, 500, 450, 400, 350, 300, 250, 200, 150, 100, 70, 50, 40, 30, <br>> 20, 10, 7, 5, 4, 3, 2, 1, 0.699999988079071, 0.5, 0.400000005960464, <br>> 0.300000011920929, 0.100000001490116 ;<br>> }<br>> <br>> <br>> Thank you.<br>> <br>> <test_1D.nc><test.png>_______________________________________________<br>> gradsusr mailing list<br>> gradsusr@gradsusr.org<br>> http://gradsusr.org/mailman/listinfo/gradsusr<br><br>--<br>Jennifer Miletta Adams<br>Center for Ocean-Land-Atmosphere Studies (COLA)<br>George Mason University<br><br><br><br><br>_______________________________________________<br>gradsusr mailing list<br>gradsusr@gradsusr.org<br>http://gradsusr.org/mailman/listinfo/gradsusr<br></div></div></body></html>