Python Script to read from shapefile and insert in matrix.

Discussion created by gbentley45 on Nov 9, 2010
Latest reply on Nov 9, 2010 by clm42
Hi Everyone,

I am working on a Python script that I could use some assistance with.  I am trying to take the values within the "P_Area" and "P_Area_1" fields that reside in the Srcfile (variable name for shapefile of interest and insert these values into the first two columns of a matrix.  Using Numpy I have managed to set up a n x m matrix with 179 rows and 360 columns.  I could use some assistance with the next step of reading the values from these two fields and writing them to the matrix.  Any help would be greatly appreciated.

I have attached the script that is in progress.