Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fsn1995/Fun-with-Python-for-Geodata

Repository files navigation

Fun with Python for Geodata

Personal practices in geodata analysis with python.

1. Data Visulization

2. Automation

3. geopyfsn

1. Data Visulization

Benford's law is an interesting theory so I did some experiment with covid-19 data. It's out of my specialization so there's no gurantee in the accuracy and quality of this analysis. Be doubtful and just for fun. Here the screenshot is confirmed cases from three countries that I had lived.

Note: After made the first test in April, I later found a correspondence article that support my assumption in May. (Sambridge, M. and Jackson, A., 2020. National COVID numbers-Benford's law looks for errors. Nature, 581(7809), pp.384-384. doi: 10.1038/d41586-020-01565-5 ).

1.2 data visualization exercise

Open In Colab

Scripts (part1) or jupyter notebooks for processing, visualizing and analyzing data.Some are exported as interactive html files in dataVisualization folder or for preview in the links given.

The raw ipynb file contains contents of custom JavaScript plots will be rendered as static html (see GitHub help), same for exported html files.

Interactive figures or maps for:

1.2.1 Global Annual Temperature Anomaly Interactive scatter plots with lowess trendlines

1.2.2 COVID-19 related spatial visualization

1.2.3 Time series plots

  • Time series bubble plots

  • time series heatmap of drought condition

  • Mass Balance of Storglaciären

python4

1.2.4 Mapping the World

Open In Colab

rapid flood spreading method (RFSM) practice

2. Automation

This is used to bulk download data from earthdata.nasa.gov. Input required is the link list.

This is practice to do mosaic and subset by roi for geotiff data. The process is done with rasterio library.

This is a collection of some functions used for myself.

  • getxy: This can be used to obtain the x, y coordinates of a tiff file.
import rasterio 
from geopyfsn import getxy
src = rasterio.open('image.tif')
x, y = getxy(src)

AltStyle によって変換されたページ (->オリジナル) /