<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
If the scale_factor attribute is not defined properly in your data file, you can try to fix it using one of the stand-alone utilities in the HDF library. Setting the scale factor to a fixed number globally at the desriptor file level will likely cause problems
for other variables in the file that may not share the same attribute value — that is why you give the name, and then the attribute is retrieved for each individual variable in the file. If you can’t repair the formatting of the data file, then you only option
is to use the scale factor whenever you want to display the variable, e.g.
<div>ga-> d var*0.1</div>
<div>—Jennifer</div>
<div><br>
<div><br>
<div><br>
<div>
<div>On Dec 7, 2016, at 6:08 AM, M.Mahakur <<a href="mailto:mmahakur@TROPMET.RES.IN">mmahakur@TROPMET.RES.IN</a>> wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">Still waiting for a helping hand on the following issue.<br>
<br>
Hi,<br>
<br>
I used unpack (to unpack byte data-variable) in my ctl to display hdf-eos files. But, some files giving errors:<br>
<br>
Warning: HDF attribute named "scale_factor" has more than one value<br>
Warning: Could not retrieve "scale_factor" -- setting to 1.0<br>
Warning: HDF attribute named "add_offset" has more than one value<br>
Warning: Could not retrieve "add_offset" -- setting to 0.0<br>
Contouring: 0 to 60 interval 5 <br>
<br>
It does not reads the scale_factor and add_offset. It seems they are not defined properly in the data file:<br>
<br>
varx:scale_factor = "0.1<br>
varx:scale_factor_er = "0<br>
varx:add_offset = "0<br>
<br>
It should have been float.<br>
<br>
As, by default Grads sets the scale factor to 1.0, how can I change/force the same to 0.1 (inside ctl)?<br>
<br>
Regards and Thanks,<br>
Mahakur<br>
<br>
_______________________________________________<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">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="font-size: 12px; orphans: 2; widows: 2;">--</div>
<div style="font-size: 12px; orphans: 2; widows: 2;">Jennifer Miletta Adams<br>
Center for Ocean-Land-Atmosphere Studies (COLA)<br>
George Mason University<br>
<br>
<br>
</div>
</div>
</div>
</div>
<br>
</div>
</div>
</div>
</body>
</html>