Coder Social home page Coder Social logo

pytvdi's People

Contributors

hectornieto avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

pytvdi's Issues

The step to use the function

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

failed to validate LinearAxis gdal error

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.