Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upMOD09A1 conversion from hdf to tif- sur_relf_qc (band 8) issue? #72
Comments
|
Hi,
Yes - to explore the issue myself I selected the top 10 quality indicators
to check the results - the output for the QA bits was a tiff with values
that are all 0
Rob
Rob Critchlow
Postdoctoral Research Associate
Department of Biology
University of York
York
YO10 5DD
UK
…On 27 April 2017 at 10:03, Lorenzo Busetto ***@***.***> wrote:
Hi,
Thanks for signaling this. We'll have a look ASAP. Did you try by any
chance also to use MODIStsp functionality for extraction of bit-fields
information, by selecting also the "MODLAND QA bits" output as shown below ?
[image: image]
<https://cloud.githubusercontent.com/assets/4480397/25476022/0ac93d10-2b39-11e7-9991-3d6635f8dde5.png>
Do you have the same results ?
Lorenzo
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#72 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AYDP_EcIMLzf6VYaEgWLql0RDxYZzjFtks5r0FnrgaJpZM4NJ4mu>
.
|
|
Are all the QA layers always at 0, or just the one derived from conversion of bits 31-32 ? |
|
No, values are 0 for 5 of the 10 QA outputs:
adj_Cor
atm_cor
b1
b3
QA_bits
Rob Critchlow
Postdoctoral Research Associate
Department of Biology
University of York
York
YO10 5DD
UK
…On 27 April 2017 at 12:53, Lorenzo Busetto ***@***.***> wrote:
Are all the QA layers always at 0, or just the one derived from conversion
of bits 31-32 ?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#72 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AYDP_MXENl5F54HIOQwtQb0oVePG5vUBks5r0IG0gaJpZM4NJ4mu>
.
|
|
ok, thanks for the info. |
|
Hi Rob, |
|
Hi Rob, I probably managed to replicate your issue, and it seems it could be related to a possible bug in To verify this, could you try to run the following simple script on your machine ? You just have to modify the path to the MOD09A1.A2005361.h21v09.006.2015112231520.hdf image and set the path to a "temporary" folder on your machine.
Since in |
To avoid problems on processing of UIint32 layers, substitute gdalbuildvrt with creation of temporary tiff files in MODIStsp_process
|
This should be fixed by Commit b05e405 Feel free to re-open if you still encounter problems. (Currently, the fix is only in the |


If I convert an hdf file directly in R to a selection of tiff files using gdal_translate, then look at the values in the 8th band (the sur_refl_qc band) I get different values in the .tiff file for when i do the same process with MODIStsp. Specifically, the last 2 values in the 32 bit string are different in the surf_refl_qc band.
If using MODIStsp this is a problem for me as when checking the quality of the bands in a tile, as a processing step i have previously looked for those pixels where the bit combination in the first 2 values of the 32 bit description is 11 or 10 - yet using MODIStsp the first 2 values are always 00, when in the gdal_translate converted file for the same pixels they do not have 00. Can you explain why these differences occur?