Git Product home page Git Product logo

csc18's People

Contributors

christophfink avatar htenkanen avatar

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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

csc18's Issues

File Limit

Hi!

This Script has a limit on how many files it can merge and is dependant on the size of your RAM.

How would you incorporate the ability for the script to not do everything in memory, but create a virtual dataset?

Thanks so much!

Lesson 4: Nearest points using Geopandas - get_values()

When applying the user defined function nearest() to the GeoDataFrame df1 you get the below error:

AttributeError: 'Series' object has no attribute 'get_values'

This is caused by this line in the function:

value = df2[nearest][src_column].get_values()[0]

And that's because pandas.DataFrame.get_values() was deprecated in Pandas since version 0.25.0 (I'm using Pandas v1.0.4 and Geopandas v0.7.0).

The below code works:

value = df2[nearest][src_column].values[0]

Lesson 5: grid.replace() fails with geometry data

The following code:

# Replace No Data values (-1) with large number (999)
grid = grid.replace(-1, 999)

Fails with the below error:

TypeError: Value should be either a BaseGeometry or None, got 999

Replaced with the below code, which limits the change to the first 14 columns (i.e. geometry column excluded):

for col in grid.columns[:14]:
    grid[col].replace(-1, 999, inplace=True)

Lesson 3 - data reclassification using Pysal

The below command:

classifier = ps.Natural_Breaks.make(k=n_classes)

Fails with the below error:

module 'pysal' has no attribute 'Natural_Breaks'

I had to use the following apporach instead (i.e. mapclassify instead of pysal):

import mapclassify as mc
classifier = mc.NaturalBreaks(y=acc[['pt_r_tt']], k=n_classes)

Suggestion

Hello,
first of all I would like to express my greatest respect and gratitude. The course is wonderful, I've been looking for it for a long time.
But I have a request: It would be nice if you could add more examples for visualization. It would be especially nice if the visualization could be done directly in the Jupyter notebook. I would like to be able to display points and polygons and all analyses graphically.

Thanks in advance

Lesson 3 - Retrieving OpenStreetMap data with osmnx

The below command:

buildings = ox.buildings_from_place(place_name)

Is failing with the below error:

module 'osmnx' has no attribute 'buildings_from_place'

I had to use this instead:

buildings = ox.footprints_from_place(place_name)

NOTE: it seems .buildings_from_place() was removed in v10.

Extracting values from tif files visually

Hi,
Thanks for putting such a great material.
I have a question.
Is there any way to analyze the DEM or (.tif files), visually as we do in our GIS softwares?
I am looking for a functionality like:
Suppose I have a tif file. It is a DEM. So I want to select a polygon using mouse clicks and extract the information of it.

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.