source: trunk/UTIL/PYTHON/powerlaw/dropsize.py @ 1242

Last change on this file since 1242 was 1070, checked in by aslmd, 11 years ago

PYTHON. updated analysis tools for dust devils.

  • Property svn:executable set to *
File size: 1.1 KB
Line 
1#! /usr/bin/env python
2import matplotlib.pyplot as mpl
3import ppplot
4import numpy as np
5
6##########################################################
7namefile = "/home/aymeric/Big_Data/LES_dd/psfc_f18.ncm1_1.txt"
8namefile = "/home/aymeric/Big_Data/LES_dd/psfc_f18.ncm2_1.txt"
9#namefile = "/home/aymeric/Big_Data/LES_dd/psfc.LMD_LES_MARS.160564.ncm1_1.txt"
10#namefile = "/home/aymeric/Big_Data/LES_dd/psfc.LMD_LES_MARS.160564.ncm2_1.txt"
11#namefile = "/home/aymeric/Big_Data/LES_dd/press_ustm_exomars.nc1.txt"
12#namefile = "/home/aymeric/Big_Data/LES_dd/psfc_oldinsight100m.ncm1_1.txt"
13##########################################################
14
15#case = "188324p"
16#case = "191798"
17#case = "160564p"
18#case = "156487"
19#case = "2007p"
20#case = "13526p"
21#case = "172097"
22
23
24namefile = "/planeto/aslmd/LESdata/"+case+".ncm1_1.txt"
25
26# load data
27data = np.loadtxt(namefile,delimiter=";")
28t = data[:,0] ; s = data[:,1] ; d = data[:,2]
29i = data[:,3] ; j = data[:,4] # int?
30
31drop = ppplot.plot1d() ; drop.f = d ; drop.x = s
32drop.linestyle = '' ; drop.marker = '.' ; drop.color = 'r' ; drop.fmt = "%.1f"
33drop.xlabel = "Vortex size (m)" ; drop.ylabel = "Pressure drop (Pa)"
34drop.makeshow()
35
Note: See TracBrowser for help on using the repository browser.