Commit 3fa3960e authored by luroth's avatar luroth
Browse files

SE

parent 1470dce0
......@@ -552,6 +552,9 @@ def process_begin_stem_elongation(paths_campaigns, graph=True):
# Plot
if graph:
path_graphs = path_global_trait_csvs / "stem_elongation_plots"
path_graphs.mkdir(exist_ok=True)
plt.scatter(df_plot_group.yday, df_plot_group.value)
x_range = np.arange(np.min(df_plot_group.yday), np.max(df_plot_group.yday), 1)
plt.scatter(df_plot_group_lm.yday, df_plot_group_lm.value)
......@@ -563,7 +566,7 @@ def process_begin_stem_elongation(paths_campaigns, graph=True):
plt.xlabel("Day of year")
plt.ylabel("Predicted delta to BBCH 30 (days)")
#plt.show()
plt.savefig("/home/luroth/Downloads/figs/" + plot_label + ".png")
plt.savefig(path_graphs / (plot_label + ".png"))
plt.close()
# Convert back to date
......
from GroundAerialCoverage import CanopyAnalysis
from pathlib import Path
path_p = Path("P:")
#path_p = Path("/home/luroth/public")
campaign_dates = ["20180322", "20180325", "20180402", "20180404", "20180406", "20180411", "20180417", "20180419",
"20180420", "20180427"]
if __name__ == "__main__":
base_path_campaign = path_p / "Evaluation/UAV/_Processed_/ETHZ_eschikon_FPWW022_lot1"
GSD = 0.001
paths_campaigns = []
date_folders = base_path_campaign.glob('[0-9]*')
for date_folder in date_folders:
campaign_date = date_folder.name
if campaign_date in campaign_dates:
print("Adding", campaign_date)
paths_campaigns.append(date_folder / "28m_M600P")
CanopyAnalysis.process_begin_stem_elongation(paths_campaigns)
\ No newline at end of file
from GroundAerialCoverage import CanopyAnalysis
from pathlib import Path
path_p = Path("P:")
#path_p = Path("/home/luroth/public")
if __name__ == "__main__":
base_path_campaign = path_p / "Evaluation/UAV/_Processed_/ETHZ_eschikon_FPWW022_lot1"
GSD = 0.001
# CC, LA
date_folders = base_path_campaign.glob('[0-9]*')
for date_folder in date_folders:
campaign_date = date_folder.name
path_campaign = base_path_campaign / campaign_date / '28m_M600P'
# Clean old files
patterns = ["*_CC_nadir.csv", "*_CC_LC.csv", "*_LA.csv", "*_AI.csv"]
CanopyAnalysis.clean_trait_folder(path_campaign, patterns)
if int(campaign_date) <= 20180420:
print("Processing", campaign_date)
CanopyAnalysis.process_NadirCC_LCCC_LA_AI(path_campaign, campaign_date, GSD)
\ No newline at end of file
from GroundAerialCoverage import CanopyAnalysis
from pathlib import Path
path_p = Path("P:")
#path_p = Path("/home/luroth/public")
campaign_dates = ["20180322", "20180325", "20180402", "20180404", "20180406", "20180411", "20180417", "20180419",
"20180420", "20180427"]
if __name__ == "__main__":
base_path_campaign = path_p / 'Evaluation/UAV/_Processed_/DSP_genevey_DSWW001'
GSD = 0.001
paths_campaigns = []
date_folders = base_path_campaign.glob('[0-9]*')
for date_folder in date_folders:
campaign_date = date_folder.name
if int(campaign_date) <= 20190411 and int(campaign_date) > 20190101:
campaign_date = date_folder.name
print("Adding", campaign_date)
paths_campaigns.append(date_folder / "28m_M600P")
CanopyAnalysis.process_begin_stem_elongation(paths_campaigns)
\ No newline at end of file
......@@ -2,7 +2,7 @@ from GroundAerialCoverage import CanopyAnalysis
from pathlib import Path
path_p = Path("P:")
path_p = Path("/home/luroth/public")
#path_p = Path("/home/luroth/public")
campaign_dates = ["20190319", "20190322", "20190324", "20190329", "20190402", "20190409", "20190412", "20190415", "20190418"]
......
from GroundAerialCoverage import CanopyAnalysis
from pathlib import Path
path_p = Path("P:")
#path_p = Path("/home/luroth/public")
campaign_dates = ["20190319", "20190322", "20190324", "20190329", "20190402", "20190409", "20190412", "20190415", "20190418"]
if __name__ == "__main__":
base_path_campaign = path_p / "Evaluation/UAV/_Processed_/ETHZ_eschikon_FPWW024_lot4"
GSD = 0.001
paths_campaigns = []
date_folders = base_path_campaign.glob('[0-9]*')
for date_folder in date_folders:
campaign_date = date_folder.name
if campaign_date in campaign_dates:
print("Adding", campaign_date)
paths_campaigns.append(date_folder / "28m_M600P")
CanopyAnalysis.process_begin_stem_elongation(paths_campaigns)
\ No newline at end of file
from GroundAerialCoverage import CanopyAnalysis
from pathlib import Path
path_p = Path("P:")
#path_p = Path("/home/luroth/public")
if __name__ == "__main__":
base_path_campaign = path_p / "Evaluation/UAV/_Processed_/ETHZ_eschikon_FPWW024_lot4"
GSD = 0.001
# CC, LA
date_folders = base_path_campaign.glob('[0-9]*')
for date_folder in date_folders:
campaign_date = date_folder.name
if int(campaign_date) <= 20190418:
print("Processing", campaign_date)
path_campaign = base_path_campaign / campaign_date / '28m_M600P'
# Clean old files
patterns = ["*_CC_nadir.csv", "*_CC_LC.csv", "*_LA.csv", "*_AI.csv"]
CanopyAnalysis.clean_trait_folder(path_campaign, patterns)
CanopyAnalysis.process_NadirCC_LCCC_LA_AI(path_campaign, campaign_date, GSD)
\ No newline at end of file
Supports Markdown
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