File:Earthquakes by month in Italy.png

Summary

Description
English: Earthquakes in Italy, subdivided by month in which they happened. Data from http://csi.rm.ingv.it/ catalogue, containing shocks measured from 1981 to 2002.
Italiano: Terremoti in Italia, suddivisi in base al mese in cui sono accaduti. Dati dal catalogo http://csi.rm.ingv.it/ , contenente sismi misurati dal 1981 al 2002.
Date
Source Own work
Author Toobaz
PNG development
InfoField

Source code

Created with the following script, imported in "ipython -pylab":

import re
data = open("1981-2002.sum")
html=data.read()
 
banana = html.split('\n')
banana.pop()
fette = [fetta.split(' ') for fetta in banana]
mesi = []
 
for fetta in fette:
    mesi.append(fetta[0][2:4])
 
mesidiz = {}
 
for mese in range(13):
    # il mese 0 indica quelle che non lo hanno specificato
    mesidiz[mese] = 0
 
 
def intero(testo):
    try:
        return int(testo)
    except:
        print testo
        # Mese sconosciuto
        return 0
 
for mese in mesi:
    mesidiz[intero(mese)] += 1
 
mesilista = [][mese] for mese in range(13)]
 
media = sum(mesilista[1:])/12
 
mesidiff = [][mese] - media for mese in range(13)]

Licensing

I, the copyright holder of this work, hereby publish it under the following licenses:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
Category:CC-BY-SA-3.0#Earthquakes%20by%20month%20in%20Italy.png
GNU head Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled GNU Free Documentation License.
Category:Self-published work
Category:Images with Python source code Category:Earthquake diagrams of Italy
Category:CC-BY-SA-3.0 Category:Created also with Python Category:Earthquake diagrams of Italy Category:GFDL Category:Images with Python source code Category:License migration redundant Category:PNG created with Matplotlib Category:Self-published work