Refaire la figure LES avec threshold et colorbar noir et blanc
import numpy as np
import apss_lib
%matplotlib inline
import matplotlib.pyplot as mpl
def addhirise(damin,damax):
mpl.plot([10,10],[damin,damax],"m--")
mpl.plot([15,15],[damin,damax],"m--")
mpl.plot([68,68],[damin,damax],"m--")
mpl.plot([85,85],[damin,damax],"m--")
Images HiRISE
sol 9 6dec sol 14 11dec sol 68 4fev sol 84 21fev
apss_lib.multisol(code="HWS",solini=0,solsol=90,ttinter=[[8,17]]) #; addhirise(0,30)
apss_lib.multisol(code="HWS",solini=0,solsol=90,compute="std",ttinter=[[8,17]]) #; addhirise(1,3.5)
apss_lib.multisol(code="HWS",solini=0,solsol=90,compute="max",ttinter=[[8,17]]) #; addhirise(10,30)
apss_lib.multisol(code="HWS",solini=0,solsol=90,compute="mean",ttinter=[[8,17]]) #; addhirise(3,11)
apss_lib.multisol(code="HWS",solini=0,solsol=200,ttinter=[[8,17]]) #; addhirise(0,30)
apss_lib.multisol(code="HWS",solini=0,solsol=200,compute="std",ttinter=[[8,17]]) #; addhirise(1,3.5)
apss_lib.multisol(code="HWS",solini=0,solsol=200,compute="max",ttinter=[[8,17]]) #; addhirise(10,30)
apss_lib.multisol(code="HWS",solini=0,solsol=200,compute="mean",ttinter=[[8,17]]) #; addhirise(3,11)
#apss_lib.multisol(solini=0,solsol=90,code="HWS",freq=0.1,win=3700,ttinter=[[8,17]]) ; addhirise(0,14)
## corrected variability
nx = 16 #32 #24 #16
ny = 4 #6
lim = 0.99 # to select regular (complete) sols
import numpy as np
import ppplot
ppplot.changefont(16)
stab = ["above_0p3","above_0p5","above_1p0","above_2p0"]
#stab = ["above_0p3"]
for sss in stab:
sol, ratio, ndd, extdrop = np.loadtxt("/home/aspiga/cloud/InSight/WORKFLOW_drops/output/txt_sol_to_sol/solDD_"+sss+".txt",unpack=True,skiprows=1)
fig = ppplot.figuref(x=nx,y=ny)
pl = ppplot.plot1d(fig=fig)
pl.xmin = 0
pl.xmax = 90
pl.nxticks = 10
pl.ymin = 0
pl.ymax = np.max(ndd/ratio)+1
pl.nyticks = np.min([pl.ymax - pl.ymin + 1, 10])
pl.fmt = '%.0f'
pl.xlabel = "InSight sol"
pl.ylabel = r'# pressure drops' #per hour'
pl.linestyle = ""
pl.marker = "s"
pl.title = "pressure drops " + sss.replace("p",".").replace("_"," ") + " Pa"
##########################
## regular points first
w = np.where(ratio >= lim)
pl.f = ndd[w]/ratio[w]
pl.x = sol[w]
pl.color = "b"
pl.make()
##########################
## reconstructed points second
w = np.where( (0.5 < ratio) * (ratio <= lim) )
pl.f = np.floor(ndd[w]/ratio[w])
pl.x = sol[w]
pl.color = "c"
pl.make()
#pl.linestyle = '--'
#pl.marker = ""
#pl.color = "m"
#pl.f = [pl.ymin,pl.ymax] ; pl.x = [10,10] ; pl.make()
#pl.f = [pl.ymin,pl.ymax] ; pl.x = [15,15] ; pl.make()
#pl.f = [pl.ymin,pl.ymax] ; pl.x = [68,68] ; pl.make()
#pl.f = [pl.ymin,pl.ymax] ; pl.x = [85,85] ; pl.make()
## corrected variability
nx = 16 #32 #24 #16
ny = 4 #6
lim = 0.99 # to select regular (complete) sols
import numpy as np
import ppplot
ppplot.changefont(16)
stab = ["above_0p3","above_0p5","above_1p0","above_2p0"]
#stab = ["above_0p3"]
for sss in stab:
sol, ratio, ndd, extdrop = np.loadtxt("/home/aspiga/cloud/InSight/WORKFLOW_drops/output/txt_sol_to_sol/solDD_"+sss+".txt",unpack=True,skiprows=1)
fig = ppplot.figuref(x=nx,y=ny)
pl = ppplot.plot1d(fig=fig)
pl.xmin = 0
pl.xmax = 200
pl.nxticks = 10
pl.ymin = 0
pl.ymax = np.max(ndd/ratio)+1
pl.nyticks = np.min([pl.ymax - pl.ymin + 1, 10])
pl.fmt = '%.0f'
pl.xlabel = "InSight sol"
pl.ylabel = r'# pressure drops' #per hour'
pl.linestyle = ""
pl.marker = "s"
pl.title = "pressure drops " + sss.replace("p",".").replace("_"," ") + " Pa"
##########################
## regular points first
w = np.where(ratio >= lim)
pl.f = ndd[w]/ratio[w]
pl.x = sol[w]
pl.color = "b"
pl.make()
##########################
## reconstructed points second
w = np.where( (0.5 < ratio) * (ratio <= lim) )
pl.f = np.floor(ndd[w]/ratio[w])
pl.x = sol[w]
pl.color = "c"
pl.make()
#pl.linestyle = '--'
#pl.marker = ""
#pl.color = "m"
#pl.f = [pl.ymin,pl.ymax] ; pl.x = [10,10] ; pl.make()
#pl.f = [pl.ymin,pl.ymax] ; pl.x = [15,15] ; pl.make()
#pl.f = [pl.ymin,pl.ymax] ; pl.x = [68,68] ; pl.make()
#pl.f = [pl.ymin,pl.ymax] ; pl.x = [85,85] ; pl.make()
data = np.genfromtxt("/home/aspiga/data/InSight/nsyt_tau_report.txt",dtype=None,names=True,skip_footer=1)
ppplot.changefont(16)
fig = ppplot.figuref(x=nx,y=ny)
pl = ppplot.plot1d(fig=fig)
pl.f = data["TAU"]
pl.x = data["SolLMST24"]
pl.linestyle = ''
pl.marker = '.'
pl.xmin = 0
pl.xmax = 90
pl.nxticks = 10
pl.ymin, pl.ymax, pl.nyticks = 0.6,2.0,12
#pl.ylabel = r'Pressure (Pa) minus $P_{min}=%i$ Pa' % (np.min(pp))
pl.ylabel = r'IDC opacity (tau)'
pl.xlabel = 'InSight sol'
pl.fmt = "%.1f"
pl.color = "b"
pl.marker = "o"
pl.linestyle = "-"
pl.make()
#pl.linestyle = '--'
#pl.marker = ""
#pl.color = "m"
#pl.f = [pl.ymin,pl.ymax] ; pl.x = [10,10] ; pl.make()
#pl.f = [pl.ymin,pl.ymax] ; pl.x = [15,15] ; pl.make()
#pl.f = [pl.ymin,pl.ymax] ; pl.x = [68,68] ; pl.make()
#pl.f = [pl.ymin,pl.ymax] ; pl.x = [85,85] ; pl.make()
apss_lib.multisol(code="WD",solini=0,solsol=90,ttinter=[[8,17]],compute="mean")
apss_lib.multisol(code="WD",solini=0,solsol=90,ttinter=[[8,17]],compute="std")