Friday 30 October 2015

Need Practice in Python ?

Herkes icin programlama site added python shell to its content. No need to install python just for trying. Python Editor link takes you to the editor.You can type in the editor and click run button and see the result. Thats awesome.

Thursday 29 October 2015

Programming site which can be useful to beginners

Recently a friend of mine showed me http://www.herkesicinprogramlama.com site which is about programmers and students who want to learn programming it seems like a useful project.
its pros are includes many programming languages cons:only in Turkish.

Lets see how that site evolves.

Thursday 7 June 2012

Resistivity Transform Graph
4 layered earth model

All calculated with python (Matplotlib, numpy)


Wednesday 6 June 2012

Back Again !!!

After a long time I am back again. Due to master stuff at University I was away for a long time period but now I feel free so that I decided to add a few things. Like signal contribution section used in Geoelectrics 
which was one of my homeworks. Below figure is computed for dipole - dipole geometry.


I give the code below for the ones who want to try and see alive.


'''
Created on Mar 7, 2011

@author: Burak Nebioglu
'''

from pylab import *
from scipy import mgrid
import math as m


z=0
Sigma=10000000000000
I=5000000000
a=0.4
b=0.4
c=0.4



def imsave(filename, X, **kwargs):
    """ Homebrewed imsave to have nice colors... """
    figsize=(array(X.shape)/10.0)[::-1]
    rcParams.update({'figure.figsize':figsize})
    fig = figure(figsize=figsize,dpi=200)
    axes([0,0,1,1]) # Make the plot occupy the whole canvas
    axis('off')
    fig.set_size_inches(figsize)
    colorbar(imshow(X,origin='lower', **kwargs))
    savefig(filename, facecolor='white', edgecolor='white', dpi=200)
    close(fig)


x,y=mgrid[-2.5:2.5:0.1,-1:0:0.1]


denk1=(x*(x-a)+y**2+z**2)/((x**2+y**2+z**2)**(3/2.)*((x-a)**2+y**2+z**2)**(3/2.))
print denk1
denk2=((x-a)*(x-a-b-c)+y**2+z**2)/(((x-a)**2+y**2+z**2)**(3/2.)*((x-a-b-c)**2+y**2+z**2)**(3/2.))
print denk2
denk3=(x*(x-a-b)+y**2+z**2)/((x**2+y**2+z**2)**(3/2.)*((x-a-b)**2+y**2+z**2)**(3/2.))
print denk3
denk4=((x-a-b)*(x-a-b-c)+y**2+z**2)/(((x-a-b)**2+y**2+z**2)**(3/2.)*((x-a-b-c)**2+y**2+z**2)**(3/2.))
print denk4
'''
za=((Sigma*I)/(2*m.pi))*((x*(x-a)+y**2+z**2)/((x**2+y**2+z**2)**3/2.*((x-a)**2+y**2+z**2)**3/2.)-(((x-a)*(x-a-b-c)+y**2+z**2)/(((x-a)**2+y**2+z**2)**3/2.*((x-a-b-c)**2+y**2+z**2)**3/2.)))
'''
Z=((Sigma*I)/(2*m.pi))*(denk1-denk2-denk3+denk4) # Create the data to be plotted



imsave('last.png', transpose(Z), cmap=cm.jet )

Thursday 15 December 2011

Python Is Great For Everything But Especially For Science


If you say why Python is great for science just look at this photo and see :) it is all done by Python. Isn't it great ???

Sunday 27 November 2011

Thanks To Gokhan Sever

Yesterday I met with Gokhan on Skype and had a long conversation about Python, numerical codes and also alot of Engineering stuff ,it was really enjoying and also cool . I feel myself very lucky because of meeting such an enthusiastic Pythonist and also feeling the same frequency. He gave me new ideas, one of them is this Blog and this is my first writing thanks for all Gokhan.