Fit not displayed
Any reason why the linear fit is not displayed?
https://www.dropbox.com/s/4gisy3fmm352jql/CapturaLinFit.JPG?dl=0
Comments (7)
-
repo owner -
reporter Sure:
https://www.dropbox.com/s/ykggnr05wainipb/demc.tif?dl=0
https://www.dropbox.com/s/8u63fpfy91fmsbn/demicgcc.tif?dl=0
Perhaps this is related to the presence of nan, but note those are flagged as NULL in the GeoTIFF (NoData Value=nan):
2020-11-11T15:23:29 WARNING Traceback (most recent call last):
File "C:/Users/1/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\rasterdataplotting\rasterdataplotting\gui\rdpscatterplotwidget.py", line 172, in onMapCanvasRenderComplete
self.readData()
File "C:/Users/1/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\rasterdataplotting\rasterdataplotting\gui\rdpscatterplotwidget.py", line 210, in readData
self.processData()
File "C:/Users/1/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\rasterdataplotting\rasterdataplotting\gui\rdpscatterplotwidget.py", line 221, in processData
self.dataBinner.bin(bins=bins, range=range)
File "C:/Users/1/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\rasterdataplotting\rasterdataplotting\gui\rdpscatterplotwidget.py", line 878, in bin
values=x, statistic='count', expand_binnumbers=True)
File "C:\PROGRA~1\QGIS3~1.14\apps\Python37\lib\site-packages\scipy\stats\_binned_statistic.py", line 350, in binned_statistic_2d
expand_binnumbers=expand_binnumbers)
File "C:\PROGRA~1\QGIS3~1.14\apps\Python37\lib\site-packages\scipy\stats\_binned_statistic.py", line 567, in binned_statistic_dd
binnumbers = _bin_numbers(sample, nbin, edges, dedges)
File "C:\PROGRA~1\QGIS3~1.14\apps\Python37\lib\site-packages\scipy\stats\_binned_statistic.py", line 712, in _bin_numbers
decimal = int(-np.log10(dedges_min)) + 6
ValueError: cannot convert float NaN to integer
-
reporter Probably this is related to https://bitbucket.org/janzandr/rasterdataplotting/issues/14/handle-raster-with-nan-values-corectly
which is critical
-
repo owner Images with nan and inf values seams to work fine.
I guess you just need to check the All rodio button.
-
repo owner - changed status to resolved
-
repo owner @Agustin Lobo , I just checked. In the 1.6.3 version is still a bug with nan values. I’ve fixed this already but the changes only become released with v1.7
-
reporter ok, looking forward to testing v1.7
- Log in to comment
Not sure, please share the data for testing.