<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">
Data Representation Template 5.40 is (Grid Point Data - JPEG2000 Compression) (Lossless) 
<div class="">My build of the grib2c library is linked with a build of jasper that supports jpeg2000, so it works for me (see attached). If rebuilding your grib2 library is not an option, I believe you can use wgrib2 to rewrite the grib2 records and change
 the DRT to a different compression setting. â€”Jennifer</div>
<div class=""><br class="">
</div>
<div class=""><img apple-inline="yes" id="38085F02-3136-41E2-8ED6-2FC11D8D2FDA" src="cid:A652AD6F-0B9F-43D4-BA51-8A96602E1E08" class=""><br class="">
<div class=""><br class="">
<br class="">
<blockquote type="cite" class="">On Sep 27, 2019, at 10:01 AM, Subhajit Ghosh <<a href="mailto:subhajitghosh08@gmail.com" class="">subhajitghosh08@gmail.com</a>> wrote:<br class="">
<br class="">
Hi everyone <br class="">
I am unable to read a GRIB2 file in GrADS and its showing following error<br class="">
<br class="">
Config: v2.2.0 little-endian readline grib2 netcdf hdf4-sds hdf5 opendap-grids,stn geotiff shapefile<br class="">
<br class="">
ga-> open wvhgt2.ctl<br class="">
<br class="">
Scanning description file:  wvhgt2.ctl<br class="">
Data file wvhgt.grib2 is open as file 1<br class="">
LON set to 0 360<br class="">
LAT set to -90 90<br class="">
LEV set to 1 1<br class="">
Time values set: 2019:9:11:0 2019:9:11:0<br class="">
E set to 1 1<br class="">
ga-> q file<br class="">
<br class="">
File 1 : wvhgt.grib2<br class="">
  Descriptor: wvhgt2.ctl<br class="">
  Binary: wvhgt.grib2<br class="">
  Type = Gridded<br class="">
  Xsize = 1440  Ysize = 721  Zsize = 1  Tsize = 24  Esize = 1<br class="">
  Number of Variables = 1<br class="">
     wvhgtsfc  0  10,0,5  ** surface Significant Height of Wind Waves [m]<br class="">
<br class="">
ga-> d wvhgtsfc<br class="">
<br class="">
g2_unpack7: Data Representation Template 5.40 not yet implemented.<br class="">
<br class="">
g2_getfld: return from g2_unpack7 = 4<br class="">
GRIB2 I/O Error: g2_getfld failed, ierr=14<br class="">
Data Request Error:  Error for variable 'wvhgtsfc'<br class="">
  Error ocurred at column 1<br class="">
DISPLAY error:  Invalid expression<br class="">
  Expression = wvhgtsfc<br class="">
<br class="">
If anyone can suggest  what's the problem and possible solution <br class="">
using wgrib2 v0.2.0.8 2/2019<br class="">
<br class="">
files are attached herewith <br class="">
thanks & Regards<br class="">
Subhajit <br class="">
<span id="cid:f_k1272ucu0"><grads error.txt></span><span id="cid:f_k1272udn1"><wvhgt.ctl></span><span id="cid:f_k1272udv2"><wvhgt.grib2></span>_______________________________________________<br class="">
gradsusr mailing list<br class="">
<a href="mailto:gradsusr@gradsusr.org" class="">gradsusr@gradsusr.org</a><br class="">
http://secure-web.cisco.com/1Hw0_otC2UCde9rhYn4uDCDsR0_bofsTjcbxhWaDZKDZHo72UABYI92dEyrBJ1dqzvthrCPgC4DMBo29tM8pLkBQHgYoDL7d6itNI4-M0IgJ3IeKqtuDqDifQukU7gxi9s_xDhCCdv-tg3Hi5vP52hA2KC5ozHO1b8GqZ5j9BMAYBrEyCW5O7ncO-OftiOpqqmx8vNo0DKHglyZwjdkPuX-bXMoFrO9H8AeyOPZ_mPlxBCe9IBJX2IPSf18d6hEpIdTwFxfoNhwjBHv0o5H8g03jIlbR4BWbrZn7k-d6qXKC_wt5WR9-Q8xosNJCCmZ09YyGvui4_H0flPbMHgsTtAjaRVLw-cdOT8uBUvruAtiVM2QrunPNZzEVDLeF6UuRzBIFNBXPEzWJO6oYUXRsqwCEqdQYdizA01NJ4y2JbfIt8KVuEYAgmQ_-Ukq960MTE/http%3A%2F%2Fgradsusr.org%2Fmailman%2Flistinfo%2Fgradsusr<br class="">
</blockquote>
<br class="">
<div class="">--<br class="">
Jennifer Miletta Adams<br class="">
Center for Ocean-Land-Atmosphere Studies (COLA)<br class="">
George Mason University<br class="">
<br class="">
<br class="">
</div>
<br class="">
</div>
</div>
</body>
</html>