Skip to content

Instantly share code, notes, and snippets.

View canwaf's full-sized avatar

Andrew Fergusson canwaf

View GitHub Profile
@mazzma12
mazzma12 / kml_io.py
Last active February 22, 2024 17:01
IO / Read and write KML file with geopandas and fiona driver
import fiona
import geopandas as gpd
# Enable fiona driver
gpd.io.file.fiona.drvsupport.supported_drivers['KML'] = 'rw'
# Read file
df = gpd.read_file(path, driver='KML')
# Write file
@canwaf
canwaf / Remove and Replace Activities
Created February 24, 2023 11:13
Improvements to Data Quality on IDS Data Explorer
# Remove and Replace Activities
These activities are where the local concepts/dimensions/attributes should be removed and replaced with external values.
## Concept Schemes/Code lists for removal
These concept schemes/code lists should be dropped and the parent data sets updated to use better defined external concepts which already exist. There might be additional work required beyond just employing another concept scheme. (i.e. removing confused dimensions like (nation + trend) from the data sets on average temperature in the 4 nations.)
http://gss-data.org.uk/data/gss_data/climate-change/met-office-annual-mean-temp-with-trends-anomaly#scheme/geography/dataset
https://gss-cogs.github.io/provider-forest-research/out/net-annual-change-in-forest-carbon/net-annual-change-in-forest-carbon/geography.csv#code-list-catalog-entry