Giter VIP home page Giter VIP logo

hs_process's People

Contributors

tnigon avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

jinkaido1

hs_process's Issues

Crop image issue

Hi,
I am cropping UAV hyperspectral imagery with plot boundary files, there is one issue with this line of code:

array_crop, metadata = my_spatial_mod.crop_single(plot_id=1)


KeyError                                  Traceback (most recent call last)
<ipython-input-43-458553a456fd> in <module>
----> 1 array_crop, metadata = my_spatial_mod.crop_single(plot_id=1)

~\Anaconda3\envs\spec\lib\site-packages\hs_process\spatial_mod.py in crop_single(self, pix_e_ul, pix_n_ul, crop_e_pix, crop_n_pix, crop_e_m, crop_n_m, buf_e_pix, buf_n_pix, buf_e_m, buf_n_m, spyfile, plot_id, gdf, name_append)
    909                     "".format(pix_e_ul, pix_n_ul, pix_e_lr, pix_n_lr))
    910         # If "..crop_single" is already included in the history, remove it
--> 911         idx_remove = metadata['history'].find(
    912                 ' -> hs_process.crop_single[<')
    913         if idx_remove == -1:

KeyError: 'history'

Any idea how to solve the issue?
Thanks.

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.