Hi Kevin,
I think you have mostly addressed your concerns, but I wanted to add
that I think H5Pset_type_conv_cb() would be the correct routine to use, if
necessary. If that _doesn’t_ do what you want, please reply here. (BTW, there
are examples of using H5Pset_type_conv_cb in the test directory of the release
tarballs)
Quincey
> On Oct 12, 2017, at 5:36 PM, Kevin B. McCarty <[email protected]> wrote:
>
> Yes, precisely. In our case we use 2^32-1 as a "no-data" value for
> uint32_t datasets, 2^16-1 as a "no-data" value for uint16_t datasets,
> etc.
>
> Thanks again for your help!
> Kevin
>
>
> On Thu, Oct 12, 2017 at 3:20 PM, Miller, Mark C. <[email protected]> wrote:
>> Sure. I am curious...what is the driver for this modality of operation?
>>
>>
>>
>> One situation I am thinking it could be is where special/sentinel values are
>> used within a buffer of data to indicate special meaning such as
>> 'data-not-present' or 'value-missing'. Often, such values are chosen to be
>> +/- INT_MAX or +/- DBL_MAX and then their presence can then prevent
>> down-casting to smaller (fewer bits) type. Is that that is going on for you?
>>
>>
>>
>> Finally, another thing occurred to me was setting the dataset 'fill value',
>> https://support.hdfgroup.org/HDF5/doc/RM/H5P/H5Pset_fill_value.htm though I
>> am not sure what the restrictions are on the data type for the fill value
>> relative to the data type for the dataset.
>>
>>
>>
>> Mark
>>
>>
>>
>>
>>
>> "Hdf-forum on behalf of Kevin B. McCarty" wrote:
>>
>>
>>
>> Thanks for your replies, Mark!
>>
>>
>>
>>
>> _______________________________________________
>> Hdf-forum is for HDF software users discussion.
>> [email protected]
>> http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
>> Twitter: https://twitter.com/hdf5
>
>
>
> --
> Kevin B. McCarty
> <[email protected]>
>
> _______________________________________________
> Hdf-forum is for HDF software users discussion.
> [email protected]
> http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
> Twitter: https://twitter.com/hdf5
_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
Twitter: https://twitter.com/hdf5