Open in app

Sign In

Write

Sign In

Thai Tran
Thai Tran

914 Followers

Home

About

Pinned

Spatial Programming & Remote Sensing

This series of posts will introduce you to the methods required for spatial programming. Focusing on building your core programming techniques helps you use satellite imagery, track land-use change, track social distance during a pandemic, etc. Some Python programming experience is required, however, the material will be presented in a student-friendly manner and will focus on real-world applications. Open-source Python packages such as GeoPandas, Rasterio, Sklearn, and Geowombat are also necessary.

Remote Sensing

1 min read

Spatial Programming & Remote Sensing
Spatial Programming & Remote Sensing
Remote Sensing

1 min read

Spatial Programming & Remote Sensing

This series of posts will introduce you to the methods required for spatial programming. Focusing on building your core programming techniques helps you use satellite imagery, track land-use change, track social distance during a pandemic, etc. Some Python programming experience is required, however, the material will be presented in a student-friendly manner and will focus on real-world applications. Open-source Python packages such as GeoPandas, Rasterio, Sklearn, and Geowombat are also necessary.

Content

Chapter 1 — Spatial Data Introduction

Chapter 2 — Data Formats

Chapter 2 — Practice Spatial Vector Data with GeoPandas

Chapter 2 — Practice Spatial Points Lines Polygons cont.

Chapter 2 — Spatial Raster Data in Python cont.

cont.

--

--


Pinned

Chapter 2 — Practice Spatial Vector Data with GeoPandas

GeoPandas library is to make working with spatial data in python easier that combining the capabilities of pandas and shapely, providing spatial operations in pandas and a high-level interface to multiple geometries to shapely. 2.1 Data Structures GeoPandas implements two main data structures, a GeoSeries and a GeoDataFrame. These are subclasses of pandas…

Pygis

2 min read

Chapter 2 — Practice Spatial Vector Data with GeoPandas
Chapter 2 — Practice Spatial Vector Data with GeoPandas
Pygis

2 min read


Pinned

Chapter 2 — Data Formats

2.1 Vector Data File a) GeoJSON An example of a FeatureCollection that includes a point, line and polygon geometry with some attributes stored as properties: { "type": "FeatureCollection", "features": [ { "type": "Feature", "geometry": {"type": "Point", "coordinates": [102.0, 0.5]}…

Data Formats

3 min read

Chapter 2 — Data Formats
Chapter 2 — Data Formats
Data Formats

3 min read


Pinned

Chapter 1 — Spatial Data Introduction

Objects or entities in a GIS environment can be recorded in 2D or 3D. These spatial entities can be represented as a vector data model or a raster data model. 1.1 Vector Data Vector features have three different geometric primitives: points, polylines and polygons. a) Point Load data points with geopandas and plot with matplotlib: …

Spatialdata

2 min read

Chapter 1 — Spatial Data
Chapter 1 — Spatial Data
Spatialdata

2 min read


Jan 27

Random Forest model trained with scikit-learn in Python + save and load model

In this post, I will show you how to train, save and load Random Forest model with scikit-learn and joblib in Python. Moreover, I will show you, how to compress the model and get a smaller file. # Load Libraries import os import joblib import numpy as np from sklearn.datasets import load_iris from sklearn.ensemble import…

Random Forest

3 min read

Random Forest model trained with scikit-learn in Python + save and load model
Random Forest model trained with scikit-learn in Python + save and load model
Random Forest

3 min read


Jan 18

Chapter 2 — Spatial Raster Data in Python cont.

Objectives are: Create new raster objects. Assign the correct projection or CRS. A raster data model is an array of cells, or pixels, to represent real-world objects. Raster datasets are commonly used for representing and managing imagery, surface temperatures, digital elevation models, and numerous other entities. Here we create an…

Rasterio

3 min read

Chapter 2 — Spatial Raster Data in Python cont.
Chapter 2 — Spatial Raster Data in Python cont.
Rasterio

3 min read


Jan 10

Chapter 2 — Practice Spatial Points Lines Polygons cont.

Spatial Points, Lines and Polygons in Python — Objectives for this part: Create new spatial objects (points, lines, polygons) Assign the correct projection or CRS Create points from a table or csv of lat and lon Creating GeoDataFrame Geometries # Import necessary modules first import pandas as pd import geopandas as gpd from shapely.geometry import Point, LineString, Polygon import fiona import matplotlib.pyplot as plt plt.style.use('bmh') # better for plotting geometries vs…

Spatial Objects

5 min read

Chapter 2 — Practice Spatial Points Lines Polygons cont.
Chapter 2 — Practice Spatial Points Lines Polygons cont.
Spatial Objects

5 min read


Dec 23, 2022

Apply masks on Satellite Images

When we use Satellite Imagery, they usually provide masks for clouds, water, etc. I will show you how to apply masks to remove water pixels from satellite images. About Dataset Context A collection of water bodies images captured by the Sentinel-2 Satellite. Each image comes with a black and white mask where white…

Satellite Imagery

2 min read

Apply masks on Satellite Images
Apply masks on Satellite Images
Satellite Imagery

2 min read


Dec 12, 2022

Install libraries for geospatial analysis on Windows.

This article shows you how to install Windows Subsystem for Linux (WSL) and create a conda env for geospatial analysis. 1. Install Linux on Windows with WSL Prerequisites You must be running Windows 10 version 2004 and higher (Build 19041 and higher) or Windows 11 to use the commands below. Install WSL command You can now install everything you need to…

Geospatial Analysis

2 min read

Install libraries for geospatial analysis on Windows.
Install libraries for geospatial analysis on Windows.
Geospatial Analysis

2 min read


Nov 28, 2022

Remove photo background by Python

Here is a simple way to remove the background of an image.

Remove Image Background

1 min read

Remove photo background by Python
Remove photo background by Python
Remove Image Background

1 min read

Source photo by Author

Remove photo background by Python

--

--

Thai Tran

Thai Tran

914 Followers

Remote sensing and GIS.

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech