Skip to content

MODIS No Data value "NA" in new MOD11A1 v006 product error #155

@rajexp

Description

@rajexp

MODIS data update of Version 6.1 we saw that QC layer has No Data value set as NA and Fill Value as NA Ref

image

Working with data MOD11A1.A2019045.h18v03.061.2020344043209.hdf
gives error on running modis_convert.py command

modis_convert.py -s "( 0 1 0 0 0 0 0 0 0 0 0 0 )" -g 30 -o "2019-02-14" -e "32631" MOD11A1.A2019045.h18v03.061.2020344043209.hdf
Error occurred while modis_convert Error: Traceback (most recent call last):
  File "/home/ubuntu/anaconda3/envs/arosicsupgrade/bin/modis_convert.py", line 166, in <module>
    main()
  File "/home/ubuntu/anaconda3/envs/arosicsupgrade/bin/modis_convert.py", line 160, in main
    modisConver.run()
  File "/home/ubuntu/anaconda3/envs/arosicsupgrade/lib/python3.9/site-packages/pymodis/convertmodis_gdal.py", line 301, in run
    self._reprojectOne(self.layers[n][0], quiet=quiet)
  File "/home/ubuntu/anaconda3/envs/arosicsupgrade/lib/python3.9/site-packages/pymodis/convertmodis_gdal.py", line 260, in _reprojectOne
    dst_ds.GetRasterBand(1).SetNoDataValue(float(fill_value))
ValueError: could not convert string to float: 'NA'

This is coming with pyModis 2.3.0
There is a need to handle this scenario inside the core library.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions