This file contains 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
# Application of StringMatch class, using default args | |
titlematch = StringMatch(source_titles, target_titles) | |
titlematch.tokenize() | |
match_df = titlematch.match() |
This file contains 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
# Load libraries | |
import re | |
import time | |
import operator | |
import numpy as np | |
from sklearn.feature_extraction.text import TfidfVectorizer, CountVectorizer | |
from scipy.sparse import csr_matrix | |
import pandas as pd |
This file contains 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
```{r} | |
svg(filename="LAStreets_slope.svg", | |
width=15, | |
height=20, | |
pointsize=12) | |
plot(streets["slope"]) | |
dev.off() | |
``` |
This file contains 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
#include <FastLED.h> | |
#define DATA_PIN 6 //this is the data pin connected to the LED strip. If using WS2801 you also need a clock pin | |
#define NUM_LEDS 100 //change this for the number of LEDs in the strip. i changed it from 100 to 50 | |
#define COLOR_ORDER RGB | |
CRGB leds[NUM_LEDS]; | |
//I have a few additional integers in here from different tests. | |
int y = 1; | |
int z = 0; |
This file contains 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
#------------------------------------------------------------------------------- | |
# Name: UploadPublishCSVMultipart | |
# Purpose: This script uploads and publishes a CSV that includes XY data, not | |
# addresses. This uses a multipart upload for the CSV and requires | |
# username, password, CSVfile, X and Y fields, and tags to be defined | |
# Author: Melanie Summers | |
import requests | |
import os |
This file contains 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 | |
from arcpy import env | |
##### Input ##### | |
shp = "C:/Users/dotcid034/Desktop/Export_Output (1)/Export_Output.shp" | |
col_fields = ["Cross_St","AllStreets","Doyourname"] | |
cur = arcpy.da.UpdateCursor(shp,col_fields) | |
for row in cur: | |
val = None |
This file contains 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
library(data.table) | |
library(fasttime) | |
#input | |
week1.file = "Z:/GIS/DataLibrary/Riits/TrafficVolumes/data dump/EXPORT - 2015/october.dsv" | |
#parameters that will apply to the data | |
chunkSize <- 500000 | |
#date ranges |
This file contains 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
#### This script will take the Riits Sensor Shp, and copy the assetIDs of all intersecting points to the attribute table of the Riits layer | |
import arcpy | |
from arcpy import env | |
env.workspace = "Z:/GIS/DataLibrary/Transportation/BOE_Centerline_Intersections150930/collisiontoInt_test.gdb" | |
env.overwriteOutput = True #so we can rerun this script and overwrite our output feature class | |
#input | |
Riits_sensor_shp = "Z:/GIS/DataLibrary/Riits/TrafficVolumes/data dump/EXPORT - 2015/RiitsSensorsproj.shp" |
This file contains 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
library(data.table) | |
### Inputs ### | |
meta.file <- "Z:/GIS/DataLibrary/Riits/TrafficVolumes/data dump/EXPORT - 2015/config.dsv" | |
### Load Data ### | |
meta.df <- fread(meta.file, header=T,sep="|",stringsAsFactors=F) | |
### Clean XY Data ### | |
x <- gsub('.+\\((-[0-9]+\\.[0-9]+) {1}([0-9]+\\.[0-9]+).+','\\1',meta.df$START_LAT_LONG) |
This file contains 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 | |
from arcpy import env | |
##### Input ##### | |
env.workspace = "Z:/GIS/DataLibrary/Transportation/BOE_Centerline_Intersections150930/collisiontoInt_test.gdb" | |
env.overwriteOutput = True #so we can rerun this script and overwrite our output feature class | |
#input fc | |
col_fc = "Collisions_2009to2013" | |
input_centerline_fc = "Street_Centerline_Raw" |
NewerOlder