Coder Social home page Coder Social logo

coss's People

Contributors

tastatham avatar

Watchers

 avatar  avatar

coss's Issues

ENH: Use Dask GeoPandas for areal weighting / dasymetric mapping

One enhancement that could speed up both areal weighting / dasymetric mapping is to use Dask GeoPandas instead of GeoPandas for the underlying geometric calculations.

However, the GeoPandas overlay function used by areal weighting is not yet available in Dask GeoPandas.
To move this issue forwards, the overlay function must be merged into Dask GeoPandas.

This would also involve merging DataFrames based on the index, which mean #5 would be resolved.

BUG: areal weighting methods produce erroneous results when there exists duplicate source geoms/unique identifiers

Methods that interpolate values based on areal weighting (as well as pycno) produce erroneous results when there are are duplicate geometries.
Geometries may be duplicated when handing certain types of datasets e.g. survey data.
In this scenario, I was using survey data and I simply forgot to perform a groupby per unique identifier, prior to running the interpolation.
This returned interpolated values for all targets but the results were erroneous.

My initial thought was to update all areal_checks to add an additional check for duplicate geometries/unique identifiers;

def areal_checks(self, method):

However, some area interpolation methods may produce "better" estimates when there exists multiple values per geometry or unique identifier e.g statistical ones.

My idea is to add a check, to see whether duplicate values per geometry/unique identifier are present.

ENH: Merge pd.DataFrames on indexes not columns

Currently the coss package merges pd.DataFrames based on a column.
However, merging on a set index is more performant.
Once unique identifier bugs/enhancements are complete, merges will be based on the index.

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.