Issue Can someone tell me the purpose, benefit, or idea behind assigning a variable in a method call? For example fgdbversion_id = repos.get_version(workspace=test_workspace) calling… def get_version(self, workspace): Obviously this sets the "workspace" parameter, but why not just send get_version(test_workspace). Wouldn’t
Continue readingTag: arcpy
[SOLVED] Python Declared Global Class List is Creating the Error: Unknown global name…is not defined
Issue I have declared lists in the global space of a python class. I import it into another class that uses Arcpy, and I get the error: global name ‘targetFieldNames’ is not defined. I have tried initializing the list with
Continue reading[SOLVED] How to covert GDB(geodatabase) to CSV?
Issue I am trying to convert gdb files to csv files. Could anyone please share code how to convert gdb to csv file? Solution I am new to ArcGis and Arcpy, I got the error then I post this question
Continue reading[SOLVED] How to covert GDB(geodatabase) to CSV?
Issue I am trying to convert gdb files to csv files. Could anyone please share code how to convert gdb to csv file? Solution I am new to ArcGis and Arcpy, I got the error then I post this question
Continue reading[SOLVED] Calculating kurtosis from a numpy array?
Issue I am trying to calculate ‘kurtosis’, as well as other statistics from a numpy array. Calculating Min, Max, Mean and Standard Deviation are easy as I’ve just done. import arcpy arr = arcpy.RasterToNumPyArray(input_Raster) x = arr print ‘Min =’,
Continue reading[SOLVED] Unzip all zipped files in a folder to that same folder using Python 2.7.5
Issue I would like to write a simple script to iterate through all the files in a folder and unzip those that are zipped (.zip) to that same folder. For this project, I have a folder with nearly 100 zipped
Continue reading[SOLVED] Export from .tif to .tif with another CRS
Issue I write a code in python for processing some .tif files and put them to WGS 1984 Coordinate System. The problem is, when I run the code, it gave’s me error and stop executing. I try to do this
Continue reading[SOLVED] TypeError: ufunc add cannot use operands with types dtype('<M8[ns]') and dtype('<M8[ns]')
Issue I am trying to set an ARIMA model to some data, for this, I used ‘autocorrelation_plot()’ with my time series. It’s generates however the error in the title. I have an attribute table composed, among others, of a Date
Continue reading