Code Monkey home page Code Monkey logo

pyidw's People

Stargazers

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

Watchers

 avatar

pyidw's Issues

TypeError: cannot convert the series to <class 'float'>

Hello!

First of all, that's for creating this package!

I'm having a problem that I can't find a solution. My code is the following:

idw.idw_interpolation(
            input_point_shapefile = 'Feijão_2021-10.shp',
            extent_shapefile = "Setores_Censit_SP_WGS84.shp",
            column_name = '2021-10')

And the error is:

Traceback (most recent call last):

  File "C:\Users\Felipe.dias\AppData\Local\Temp\ipykernel_3392\818229306.py", line 1, in <module>
    idw.idw_interpolation(

  File "C:\Users\Felipe.dias\Anaconda3\lib\site-packages\pyidw\idw.py", line 174, in idw_interpolation
    blank_raster(extent_shapefile)

  File "C:\Users\Felipe.dias\Anaconda3\lib\site-packages\pyidw\idw.py", line 110, in blank_raster
    minX = floor(calculationExtent.bounds.minx)

  File "C:\Users\Felipe.dias\Anaconda3\lib\site-packages\pandas\core\series.py", line 207, in wrapper
    raise TypeError(f"cannot convert the series to {converter}")

TypeError: cannot convert the series to <class 'float'>

All files can be downloaded here: https://drive.google.com/drive/folders/19UTkWA4O6kfR-4sIaDTBbO2tc0hTCOjR?usp=sharing

Do you know who can I solve this problem?

Thanks in advance!

Issue when applying mask with idw.regression_idw_interpolation

Hello,

Thanks for this work.

I am having an issue with regression_idw_interpolation : the boundaries mask is not applied.
Below an expected output (obtained with idw_interpolation):

image
And here is what i get :

image

Could you provide guidelines about what may be wrong ?
Thanks in advance,
Best,
J.

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.