Last change
on this file since 1062 was
1053,
checked in by aslmd, 11 years ago
|
UTIL PYTHON. tools to study dust devils in LES.
|
-
Property svn:executable set to
*
|
File size:
1.5 KB
|
Line | |
---|
1 | #! /usr/bin/env python |
---|
2 | import ppplot |
---|
3 | import numpy as np |
---|
4 | |
---|
5 | ########################################################## |
---|
6 | namefile = "/home/aymeric/Big_Data/LES_dd/psfc_f18.ncm1_2.txt" |
---|
7 | namefile = "/home/aymeric/Big_Data/LES_dd/psfc_f18.ncm2_2.txt" |
---|
8 | ########################################################## |
---|
9 | namefile = "/home/aymeric/Big_Data/LES_dd/psfc.LMD_LES_MARS.160564.ncm1_2.txt" |
---|
10 | #namefile = "/home/aymeric/Big_Data/LES_dd/sav/psfc.LMD_LES_MARS.160564.ncm2_2.txt" |
---|
11 | ########################################################## |
---|
12 | #namefile = "/home/aymeric/Big_Data/LES_dd/psfc_oldinsight100m.ncm1_2.txt" |
---|
13 | ########################################################## |
---|
14 | |
---|
15 | # load data |
---|
16 | data = np.loadtxt(namefile,delimiter=";") |
---|
17 | t = data[:,0] ; n = data[:,1] ; s = data[:,2] ; d = data[:,3] |
---|
18 | |
---|
19 | # remove size and drop point when no vortex detected |
---|
20 | d[np.where(n==0)] = np.nan |
---|
21 | s[np.where(n==0)] = np.nan |
---|
22 | |
---|
23 | ## PLOTS |
---|
24 | |
---|
25 | number = ppplot.plot1d() |
---|
26 | number.f = n |
---|
27 | number.x = t |
---|
28 | number.linestyle = '' |
---|
29 | number.marker = '.' |
---|
30 | number.color = 'b' |
---|
31 | number.xlabel = "Local time (hour)" |
---|
32 | number.ylabel = "Detected vortices" |
---|
33 | number.makeshow() |
---|
34 | |
---|
35 | drop = ppplot.plot1d() |
---|
36 | drop.f = d |
---|
37 | drop.x = t |
---|
38 | drop.linestyle = '' |
---|
39 | drop.marker = '.' |
---|
40 | drop.color = 'r' |
---|
41 | drop.fmt = "%.1f" |
---|
42 | drop.xlabel = "Local time (hour)" |
---|
43 | drop.ylabel = "Maximum drop of detected vortices (Pa)" |
---|
44 | drop.makeshow() |
---|
45 | |
---|
46 | size = ppplot.plot1d() |
---|
47 | size.f = s |
---|
48 | size.x = t |
---|
49 | size.linestyle = '' |
---|
50 | size.marker = '.' |
---|
51 | size.color = 'g' |
---|
52 | size.xlabel = "Local time (hour)" |
---|
53 | size.ylabel = "Maximum size of detected vortices (m)" |
---|
54 | size.makeshow() |
---|
Note: See
TracBrowser
for help on using the repository browser.