Commit 576fd9c2 authored by BROSSE's avatar BROSSE
Browse files

mise a jour de la suppression des radiales avec un vent vrai > 20 Nds

parent 1f640140
......@@ -67,7 +67,7 @@ import datetime
import time
#import plotly.express as px
import matplotlib.pyplot as plt
import matplotlib.dates as md
# import matplotlib.dates as md
from matplotlib import colors
# from sklearn.cluster import KMeans
import math
......@@ -86,25 +86,26 @@ import pymovies_3d.core.echointegration.ei_classification as classif
import pymovies_3d.core.util.utils as ut
import pymovies_3d.visualization.map_drawing as md
import pymovies_3d.core.export.export_sonarNetCdf as export
# import pymovies_3d.core.export.export_sonarNetCdf as export
####################################################################################################
#
# Initialisation des variables : A modifier selon les besoins
#
####################################################################################################
path_evt = 'D:/PELGAS19/Casino/casino_pelgas2019.csv'
path_evt = 'E:/Nouveau dossier/PELGAS19/Casino/casino_pelgas2019.csv'
C,Entete,index_events,date_heure = ic.import_casino (path_evt)
datedebut,datefin,heuredebut,heurefin,name, vit_vent_vrai,dir_vent_vrai = ic.infos_radiales(C)
#supression des variables qui ne sont plus utiles
del C,Entete,index_events,date_heure
for i in range (len(vit_vent_vrai) ):
if (vit_vent_vrai[i]>=20.0):
del datedebut[i],datefin[i],heuredebut[i],heurefin[i],name[i]
indice_vit_vent_vrai_sup = np.where(np.array(vit_vent_vrai)>=20)
datedebut = np.delete(np.array(datedebut),indice_vit_vent_vrai_sup).tolist()
heuredebut = np.delete(np.array(heuredebut),indice_vit_vent_vrai_sup).tolist()
datefin = np.delete(np.array(datefin),indice_vit_vent_vrai_sup).tolist()
heurefin = np.delete(np.array(heurefin),indice_vit_vent_vrai_sup).tolist()
name = np.delete(np.array(name),indice_vit_vent_vrai_sup).tolist()
# # essais
# datedebut = datedebut[0:10]
# heuredebut = heuredebut[0:10]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment