Esri / gis-stat-analysis-py-tutor

Contains documentation and workflows that demonstrate how to leverage open-source data analysis packages within the ArcGIS Environment
Apache License 2.0
32 stars 22 forks source link

where to get SSDataObject.py and SSUtilities.py? #2

Open bbest opened 10 years ago

bbest commented 10 years ago

Great talk at ESRI! Excited to work with this.

I see some old non-authoritative files when I Google, but where's the latest greatest, preferably on Github?

Many thanks!

bbest commented 10 years ago

Hi Mark,

Ok, good to know! Thanks for the info. So where's the documentation on how to use it?

Many thanks, BB

On Wed, Jul 23, 2014 at 12:54 PM, Mark Janikas notifications@github.com wrote:

The entire infrastructure gets laid down w/ ArcGIS... I.e. if you have ArcGIS... you have the code. It is located in the ARCHOME/ArcToolbox/Scripts dir.

The latest and greatest is 10.2.2. I showed the Pro App version that uses Python 3 at the UC... but I wrote the newest version to be robust to 2.x and 3.x. It will be released with 10.3 and 11.

I am glad that you liked the presentation and I welcome your comments and suggestions. Take care,

MJ

— Reply to this email directly or view it on GitHub https://github.com/Esri/gis-stat-analysis-py-tutor/issues/2#issuecomment-49926108 .

mjanikas commented 10 years ago

Unlike all of our official Tools.... the DataObject and all of my support utilities are not assured to be backwards compatible... but they generally are. As such, there is no official doc as to how to use them. Most have pretty good Doc strings... so help() / dir() should help. Further... you can use the tutorials posted here.... or examine any one of the many tools in the Spatial Stats Toolbox for use cases... a tool like OLS will show you initialization (SSDO.SSDataObject(inputFC, templateFC = outputFC)... reading the data into arrays (ssdo.obtainData(masterField, [fieldNames])... getting array data into a matrix (ssdo.fields[fieldName].returnDouble()... in the for loop for X)... and writing output... (ssdo.output2NewFC(outputFC, candidateFields, fieldOrder, appendFields))

I am willing to give you more pointers as you work thru it. Let me know.

MJ