This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Corona Tiles</title> | |
<link href="https://developers.google.com/maps/documentation/javascript/examples/default.css" rel="stylesheet"> | |
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false"></script> | |
<script> | |
var map; | |
var width256Tile = 142; | |
var height256Tile = 41; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import matplotlib.pyplot as plt | |
import numpy as np | |
import matplotlib | |
input_img = plt.imread("/home/chad/Projects/corona/leaflet/ds1105-2235df023_23_b_resize.tif") | |
x = input_img.shape[1] | |
y = input_img.shape[0] | |
c = x/2 | |
y1 = c - (y/2) | |
y2 = c + (y/2) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os, fnmatch, arcpy | |
def locate(pattern, root=arcpy.GetInstallInfo()["InstallDir"] + "\Coordinate Systems"): | |
"""Locate all files matching supplied filename pattern in and below | |
supplied root directory. | |
""" | |
for path, dirs, files in os.walk(os.path.abspath(root)): | |
for filename in fnmatch.filter(files, pattern): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ToolValidator: | |
"""Class for validating a tool's parameter values and controlling | |
the behavior of the tool's dialog. | |
""" | |
class ParseIni(object): | |
"""Class for parsing VIESORE ini configuration files""" | |
def __init__(self): | |
self.viesore_ini = r"C:\Program Files (x86)\VIESORE\Config\ViesoreConfig.ini" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import arcpy | |
in_raster = r"\\psf\Home\Documents\ArcGIS\Default.gdb\rastercalc13" | |
in_raster_obj = arcpy.Raster(in_raster) | |
arcpy.env.extent = in_raster | |
arcpy.env.cellSize = in_raster | |
arcpy.env.overwriteOutput = 1 | |
# Raster already projected earlier in CreateProject.py process | |
arcpy.CheckOutExtension("Spatial") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Con("VerySmallKittyHawk","VerySmallKittyHawk" + 10, "VerySmallKittyHawk", "VALUE > 0") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import wx | |
class MyForm(wx.Frame): | |
def __init__(self): | |
wx.Frame.__init__(self, None, wx.ID_ANY, "File Picker") | |
self.panel = wx.Panel(self, wx.ID_ANY) | |
box = wx.BoxSizer(wx.SB_VERTICAL) | |
self.file_picker = wx.FilePickerCtrl(self.panel, -1) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from reportlab.pdfgen.canvas import Canvas | |
from reportlab.lib.styles import getSampleStyleSheet | |
from reportlab.lib.units import inch | |
from reportlab.lib import colors | |
from reportlab.platypus import Paragraph, Frame, TableStyle, Table, Spacer, Image | |
from reportlab.lib.pagesizes import letter | |
import datetime | |
c = Canvas('doc.pdf', pagesize=letter) | |
f = Frame(inch, inch, 6.5*inch, 9*inch, showBoundary=0) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from reportlab.lib import colors | |
from reportlab.lib.pagesizes import letter | |
from reportlab.platypus import Table, TableStyle, Paragraph | |
from reportlab.pdfgen.canvas import Canvas | |
from reportlab.lib.styles import getSampleStyleSheet | |
styles = getSampleStyleSheet() | |
style = styles["BodyText"] | |
canv = Canvas("doc.pdf", pagesize=letter) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sphinx-build -b latex -a -E . latex | |
$ cd latex | |
$ make all-pdf |