tonibm

1st time using python

Discussion created by tonibm on Oct 12, 2012
I've been using excel to calculate this but now I have too many data and I need to look for something better.
I've been skimming a python tutorial but I'm such a disaster for this.

I have 2 shapefiles; one with all the municipalities and another with only the municipalities with a value.
I need to calculate this:

X(u,v)=???xiwi(u,v)/ ???wi (u,v)

The value is xi, wi=exp(-di²/h²), where d is distance and h a constant.

I know the coordinates so I calculate the distance using  ???((xi ??? x0)² + (yi - y0)²)

anyone can help me?
Thank you.

Outcomes