hectornieto / pytvdi Goto Github PK
View Code? Open in Web Editor NEWa python Temperature–Vegetation Dryness Index calculator
License: GNU General Public License v3.0
a python Temperature–Vegetation Dryness Index calculator
License: GNU General Public License v3.0
Hi, thank you for your code.
I am sorry I used the TVDIgui to run the calculation, the problem was I got negative result. I mean, because the range of TVDI is 0 to 1 but I calculated most of the pixels to be negative value... Do you have any idea about that? Thx
1.First gdal import need to replace
import gdal
↓
from osgeo import gdal
2.Validate LineAxis
I want to run example but it's give me the error below
ValueError Traceback (most recent call last)
in
35 ramp = figure(tools="", y_range = [0, 1], x_range = [low_flux,high_flux], plot_width = 650, plot_height=100)
36 ramp.toolbar_location=None
---> 37 ramp.yaxis.visible = None
38 ramp.rect(x=y, y=0.5, color=colortable, width=dy, height = 1)
39
c:\python39\lib\site-packages\bokeh-2.3.1-py3.9.egg\bokeh\models\plots.py in setattr(self, attr, value)
736 def setattr(self, attr, value):
737 for x in self:
--> 738 setattr(x, attr, value)
739 def getattribute(self, attr):
740 if attr in dir(list):
c:\python39\lib\site-packages\bokeh-2.3.1-py3.9.egg\bokeh\core\has_props.py in setattr(self, name, value)
296
297 if name in props or (descriptor is not None and descriptor.fset is not None):
--> 298 super().setattr(name, value)
299 else:
300 matches, text = difflib.get_close_matches(name.lower(), props), "similar"
c:\python39\lib\site-packages\bokeh-2.3.1-py3.9.egg\bokeh\core\property\descriptors.py in set(self, obj, value, setter)
550 raise RuntimeError(f"{class_name}.{self.name} is a readonly property")
551
--> 552 self._internal_set(obj, value, setter=setter)
553
554 def delete(self, obj):
c:\python39\lib\site-packages\bokeh-2.3.1-py3.9.egg\bokeh\core\property\descriptors.py in _internal_set(self, obj, value, hint, setter)
782
783 """
--> 784 value = self.property.prepare_value(obj, self.name, value)
785 old = self._get(obj)
786 self._real_set(obj, old, value, hint=hint, setter=setter)
c:\python39\lib\site-packages\bokeh-2.3.1-py3.9.egg\bokeh\core\property\bases.py in prepare_value(self, owner, name, value)
348 else:
349 obj_repr = owner if isinstance(owner, HasProps) else owner.name
--> 350 raise ValueError(f"failed to validate {obj_repr}.{name}: {error}")
351
352 if isinstance(owner, HasProps):
ValueError: failed to validate LinearAxis(id='1118', ...).visible: expected a value of type bool or bool_, got None of type NoneType
I don't know what happen?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.