Skip to content

Instantly share code, notes, and snippets.

Thomas Guymer Guymer

Block or report user

Report or block Guymer

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Guymer
Guymer / find_airfields.py
Last active Sep 11, 2019
plot the ranges from British airfields
View find_airfields.py
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
# Load modules ...
# NOTE: http://matplotlib.org/faq/howto_faq.html#matplotlib-in-a-web-application-server
import cartopy
import matplotlib
matplotlib.use("Agg")
import matplotlib.lines
import matplotlib.pyplot
View find_antipode_v2.py
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
# Import modules ...
# NOTE: http://matplotlib.org/faq/howto_faq.html#matplotlib-in-a-web-application-server
import cartopy
import matplotlib
matplotlib.use("Agg")
import matplotlib.lines
import matplotlib.pyplot
@Guymer
Guymer / background-images-of-elevation-process.py
Last active Aug 4, 2019
a script to create background images of elevation
View background-images-of-elevation-process.py
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
# Import modules ...
# NOTE: http://matplotlib.org/faq/howto_faq.html#matplotlib-in-a-web-application-server
import json
import matplotlib
matplotlib.use("Agg")
import matplotlib.pyplot
import numpy
@Guymer
Guymer / rss_checker.py
Last active Aug 4, 2019
a Python script to email me about about new RSS posts
View rss_checker.py
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
# Import modules ...
import HTMLParser
import io
import json
import os
import pyguymer
import requests
View replacing-cartopy-background-image-location.py
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
# Import modules ...
import cartopy
import os
# Print path ...
print os.path.join(cartopy.__path__[0], "data", "raster", "natural_earth")
View find_antipode.py
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
# Import modules ...
# NOTE: http://matplotlib.org/faq/howto_faq.html#matplotlib-in-a-web-application-server
import cartopy
import matplotlib
matplotlib.use("Agg")
import matplotlib.pyplot
import shapely
View land_vs_latitude.py
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
# Import modules ...
# NOTE: http://matplotlib.org/faq/howto_faq.html#matplotlib-in-a-web-application-server
import cartopy
import matplotlib
matplotlib.use("Agg")
import matplotlib.pyplot
import numpy
View replacing-cartopy-background-image-process.py
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
# Define the background image datasets ...
imgs = {
"cross-blend-hypso" : {
"description" : "Cross-blended Hypsometric Tints with Relief, Water, Drains and Ocean Bottom from Natural Earth",
"rasters" : {
"large" : "http://www.naturalearthdata.com/http//www.naturalearthdata.com/download/10m/raster/HYP_HR_SR_OB_DR.zip",
"medium" : "http://www.naturalearthdata.com/http//www.naturalearthdata.com/download/10m/raster/HYP_LR_SR_OB_DR.zip",
@Guymer
Guymer / zpool.out
Created Jul 26, 2019
zpool status output
View zpool.out
pool: pool1
state: ONLINE
scan: scrub repaired 0 in 0 days 07:27:52 with 0 errors on Fri Jul 12 11:44:41 2019
config:
NAME STATE READ WRITE CKSUM
pool1 ONLINE 0 0 0
raidz1-0 ONLINE 0 0 0
ada1 ONLINE 0 0 0
ada2 ONLINE 0 0 0
@Guymer
Guymer / checkCities.out
Created Jul 21, 2019
output from checkCities.py
View checkCities.out
Córdoba (ESP) is at -4.8° and should be UTC+23:34 but it is actually UTC+01:00 because noon occurs 00:26 after 12:00 UTC.
Denver (USA) is at -105.0° and should be UTC+16:54 but it is actually UTC+17:00 because noon occurs 07:06 after 12:00 UTC.
Kashgar (CHN) is at 76.0° and should be UTC+04:58 but it is actually UTC+08:00 because noon occurs 19:02 after 12:00 UTC.
Beijing (CHN) is at 116.4° and should be UTC+07:38 but it is actually UTC+08:00 because noon occurs 16:22 after 12:00 UTC.
Lisbon (PRT) is at -9.1° and should be UTC+23:17 but it is actually UTC+00:00 because noon occurs 00:43 after 12:00 UTC.
Madrid (ESP) is at -3.7° and should be UTC+23:37 but it is actually UTC+01:00 because noon occurs 00:23 after 12:00 UTC.
London (GBR) is at -0.1° and should be UTC+23:51 but it is actually UTC+00:00 because noon occurs 00:09 after 12:00 UTC.
You can’t perform that action at this time.