Commit fc2fa073 authored by Laura LINDEPERG's avatar Laura LINDEPERG
Browse files

minor changes

parent 0d8f3f31
......@@ -43,7 +43,7 @@ shp_watersheds = gpd.read_file(shp_watersheds_path)
# List of the stations'codes
watershed_code = shp_watersheds.loc[:,'Code']
# Get a sample of them for test
code_for_test = watershed_code.loc[402:]
code_for_test = watershed_code.loc[0:1]
# code_for_test = ['V1015810']
# code_for_test = ['V2814020', 'V5045020', 'H4033010', 'S4214010']
# code_for_test = ['E6456510', 'A7642010']
......@@ -53,8 +53,8 @@ code_for_test = watershed_code.loc[402:]
# problematic_watersheds = pd.DataFrame()
studied_watersheds = pd.DataFrame()
for i in code_for_test:
# for i in watershed_code:
# for i in code_for_test:
for i in watershed_code:
# Get the station's name
watershed_stations_i = shp_watersheds[shp_watersheds.loc[:, 'Code'] == i]
watershed_name_i = watershed_stations_i.loc[:, 'Nom'].values[0]
......@@ -67,7 +67,7 @@ for i in code_for_test:
watershed_i.extract_banquehydro_discharge_timeseries(banquehydro_foldername)
safran_timeseries_i = pd.read_csv(safran_foldername+i+'_safran_timeseries.csv')
watershed_i.hydro_climatic_fluxes.safran_timeseries = safran_timeseries_i
watershed_i.extract_hydrological_signatures(adimensioned='yes')
watershed_i.extract_hydrological_signatures(adimensioned='no')
# watershed_i.extract_geologic_properties_from_filename(BDLisa_filepath+i+'_BDLisa.shp')
# watershed_i.geologic_properties.extract_average_age_geology(BRGM_filepath+i+'_BRGM.shp')
......@@ -79,7 +79,7 @@ for i in code_for_test:
# save object using pickle
# filename_i = 'C:/Users/laura.lindeperg/Documents/INRAE_2021/CODE/fhysa/Object_watershed/watershed_'+i
filename_i = 'C:/Users/laura.lindeperg/Documents/INRAE_2021/CODE/fhysa/Object_watershed/Adim/watershed_adim_'+i
filename_i = 'C:/Users/laura.lindeperg/Documents/INRAE_2021/CODE/fhysa/Object_watershed/Dim/watershed_dim_'+i
outfile_i = open(filename_i, 'wb')
pickle.dump(watershed_i, outfile_i)
outfile_i.close()
......
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