Some sort of NULL value in IDL ? [message #20674] |
Fri, 14 July 2000 00:00  |
deckard_007
Messages: 2 Registered: July 2000
|
Junior Member |
|
|
Hi,
Is there something like a NULL value available in IDL ? I have some data
which I have to export as a HDF file. But not all of my data is good,
so I want to export the bad points as NULL values like in a database.
Maybe this has more to do with the HDF format than with IDL itself, but
maybe someone has encountered this problem before.
Thanks,
Henk
Sent via Deja.com http://www.deja.com/
Before you buy.
|
|
|
Re: Some sort of NULL value in IDL ? [message #20685 is a reply to message #20674] |
Wed, 19 July 2000 00:00  |
Nando Iavarone
Messages: 48 Registered: December 1998
|
Member |
|
|
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Martin Schultz wrote:
<blockquote TYPE=CITE>
<br>>
<br>> This issue is handled in HDF Scientific Datasets by attaching standard
<br>> attributes to an SDS variable. The following attributes have been
<br>> established by the HDF and netCDF communities:
<br>></blockquote>
<blockquote TYPE=CITE>
<br>... isn't there yet another standard attribute named missing_value
which
<br>would be even more appropriate?</blockquote>
<pre>Hi,</pre>
<pre>I don't know anything about the specific format you are using,</pre>
<pre>but when I need a 'NULL' value I use the IEEE NaN (!VALUES.F_NAN, !VALUES.D_NAN). This is valid only if your data type is float or double.</pre>
<pre>Best regards.</pre>
<pre></pre>
<pre>--
Nando Iavarone
Advanced Computer System - SPACE DIVISION
via Lazzaro Belli, 23
00040 Frascati - RM
Tel: +39-6-944091 (switchboard)
9440968 (direct)
E-mail:
f.iavarone@acsys.it
FrdndVrn@altavista.net</pre>
</html>
|
|
|
Re: Some sort of NULL value in IDL ? [message #20708 is a reply to message #20674] |
Tue, 18 July 2000 00:00  |
Martin Schultz
Messages: 515 Registered: August 1997
|
Senior Member |
|
|
"Liam E.Gumley" wrote:
>
> deckard_007@my-deja.com wrote:
>> Is there something like a NULL value available in IDL ? I have some data
>> which I have to export as a HDF file. But not all of my data is good,
>> so I want to export the bad points as NULL values like in a database.
>> Maybe this has more to do with the HDF format than with IDL itself, but
>> maybe someone has encountered this problem before.
>
> This issue is handled in HDF Scientific Datasets by attaching standard
> attributes to an SDS variable. The following attributes have been
> established by the HDF and netCDF communities:
>
> long_name
> A text string which describes a variable in detail (e.g. 'Northwards
> velocity component').
>
> units
> A text string which describes the units of a variable (e.g.
> 'meters/second').
>
> valid_range
> A two element array containing the valid minimum and maximum values for
> a variable (e.g. ). The type of this attribute should be the
> same as the variable type.
>
> scale_factor
> A multiplier to be applied to a variable data after it is read (allows
> float values to be stored as short or byte). The type of this attribute
> should be the same as the desired unscaled variable type (e.g. float).
>
> add_offset
> An offset to be added to a variable after it is read, and after
> scale_factor (if present) is applied. The type of this attribute should
> be the same as the desired unscaled variable type (e.g. float).
>
> _FillValue
> A value indicating that data was not written. The type of this attribute
> should be the same as the variable type.
>
> In your case, the _FillValue attribute could be used to indicate missing
> data.
>
> Cheers,
> Liam.
> http://cimss.ssec.wisc.edu/~gumley
... isn't there yet another standard attribute named missing_value which
would be even more appropriate?
Martin
--
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[ [[[[[[[
[[ Dr. Martin Schultz Max-Planck-Institut fuer Meteorologie [[
[[ Bundesstr. 55, 20146 Hamburg [[
[[ phone: +49 40 41173-308 [[
[[ fax: +49 40 41173-298 [[
[[ martin.schultz@dkrz.de [[
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[ [[[[[[[
|
|
|