POST
|
You can use the "Unsplit Lines (Data Management)" tool to merge the line segments. ArcGIS Help Link: ArcGIS Desktop This will connect the endpoints. If the endpoints don't all link up, you may have to define the threshold in the "Environments" option.
... View more
04-22-2015
08:15 PM
|
0
|
0
|
4084
|
POST
|
Thank you for the links to the Date parsing code (parsedatetime, and python-dateutil)! python-dateutil has awesome documentation. I can already see the functions that I'll use for that. I'm pretty sure i'll use the code from parsedatetime as well. Response to your questions: Re: the spreadsheet. The spreadsheet only contains the recurring date information as posted on the street signs. Re: the date to compare the recurring data from -- that date will come from another data source: the satellite image date of capture. eg. "Landsat 8 date 18Mar2015.tiff" The function will have two parameters: (satellite image date-stamp, street sweeping recurring schedule string). The parameters will come together in a storm drain feature class that I created to model the connection between the two variables. The storm drain data table will have a "water quality data field" and the "recurring street sweeping schedule" data field. (optional) for details on the ArcMap model see: report in pdf. So far, my pseudocode looks like this: #import arcpy #import python date parsing libraries #setup the workspace environment - #env 'storm drain inlet' feature class (contains fields: "water quality (from satellite image)" ) #Enter code #set cursor "storm drain inlet" #parse date-stamp of satellite image from satellite image file name (this will be an exact date on the calendar) #create a new field to collect "x days since street was swept" + "satellite image date-stamp" #parse recurring schedule text string #calculate latest date in which the street sweeping was done (new project function) #calculate the delta = date the satellite image was captured (water quality date-stamp) - last date that the street was swept (from street sweeping schedule spreadsheet)
... View more
04-21-2015
08:37 PM
|
0
|
0
|
608
|
POST
|
What are good python code samples/libraries that I could use to parse the Natural Language Parsing of Recurring dates that are in string value (eg. Not Posted, Both Sides Even Month 2nd Thu) into quantified values such as a calendar date (example: "16/04/2015")? Objective: I want to parse a data field in a street sweeping schedule data table. The data field contains recurring dates in the natural language: eg. "Not Posted, Both Sides Even Month 2nd Thu" into a numerical data format for further processing in the Field Calculator. The output field that I want to create will tell me the "x number of days since street was last swept". Purpose: I wish to statistically study whether there is a correlation between street sweeping and the coastal water quality values. I have the water quality data in the form of on-site collected data and satellite remote sensed data, but in order to examine the correlation between these two variables, I'll need to parse the aforementioned data field with a given a "sample date". Input output: "water data collection date" > python parsing tool > "x number of days since street was last swept" This code will be available for public use on GitHub: Python code on GitHub: phoenixar/StreetSweepingScheduleParser · GitHub I am new to GitHub and python coding, so please contact me via reply to this discussion thread. Please feel free to start "issue threads" on GitHub! Message was edited by: Dan Patterson Edited to form a discussion
... View more
04-18-2015
08:34 PM
|
0
|
2
|
4157
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|