Commit graph

237 commits

Author SHA1 Message Date
Nik Verweel fd0e0d0cc6 Updated translations 2026-02-20 10:55:35 +01:00
Nik Verweel 24fd5bb8b3 Merge remote-tracking branch 'origin/code-improvements' into translation 2026-02-18 16:02:27 +01:00
Nik Verweel 4ba2d5d84f Upload translation strings 2026-02-18 15:36:08 +01:00
Nik Verweel fa5db056a4 Initial localisation report text 2026-02-18 15:30:49 +01:00
Timon aaea7f62c7 Remove unused KPI field analysis directory from project setup function 2026-02-18 15:26:27 +01:00
Timon a2d9f00ed1 Merge branch 'review_perField_code' into code-improvements 2026-02-18 15:22:37 +01:00
Timon 55d67ef503 Merge branch 'code-improvements' into review_perField_code 2026-02-18 15:17:11 +01:00
Timon 29a85357a5 Refactor field analysis utilities and reporting; update column names for alerts, enhance directory setup, and improve KPI calculation robustness. 2026-02-18 14:53:44 +01:00
Timon 1500bbcb1c Refactor KPI calculations and reporting utilities; normalize field details columns, update area change metrics, and enhance .gitignore for PNG exceptions. 2026-02-18 13:26:32 +01:00
Timon b2d4093601 Refactor KPI reporting and status alert logic; streamline directory structure for KPI reports and enhance field analysis summaries with additional metrics and alerts. 2026-02-18 12:02:25 +01:00
Timon f1821dab59 Enhance project configuration and reporting utilities; update .gitignore for PNG exceptions, add CI change thresholds, and improve historical data handling in KPI calculations. 2026-02-18 10:54:42 +01:00
Timon af5c53e084 Refactor patchiness KPI calculation to combine Gini Coefficient and Moran's I for comprehensive field heterogeneity assessment; update report to reflect new metrics and interpretations. 2026-02-18 10:09:10 +01:00
Timon 1f677f2626 Update terminology from DOY to DAH across multiple scripts and reports for consistency in crop age calculations 2026-02-18 09:36:54 +01:00
Timon f0a3afad52 Refactor risk assessment terminology in reports; replace 'Weed Risk' with 'Patchiness Risk' and update related calculations and alerts for consistency 2026-02-17 22:15:33 +01:00
Timon 253ff51ca2 Add field patchiness KPI calculation and update summaries; replace weed pressure metrics with patchiness metrics in reports 2026-02-17 21:57:34 +01:00
Timon 34159b3003 Enhance yield prediction capabilities by integrating Random Forest model with Forward Feature Selection; add robust data loading and validation for harvesting data across multiple utility scripts. 2026-02-17 15:02:30 +01:00
Timon 640e239815 Refactor field processing logic to simplify page breaks and enhance markdown formatting in CI report 2026-02-17 14:13:51 +01:00
Timon 14bd0fa47a Normalize field detail column names for consistency and improve centroid calculation in cane supply report 2026-02-17 14:00:32 +01:00
Timon e4e19df0c7 Update CI report parameters and improve map legend configurations
- Changed report date in CI report for cane supply to "2026-02-04".
- Updated output file naming convention for agronomic support report to reflect new report date.
- Enhanced map creation functions to allow customizable legend positions and improved layout settings.
- Adjusted widths for map arrangements to ensure better visual representation.
- Fixed minor issues in ggplot aesthetics for clearer legend positioning and improved readability.
- Corrected field size unit from hectares to acres in KPI summary generation.
2026-02-17 13:46:43 +01:00
Timon e7ab4295cf chore: Comment out return statement in calculate_weed_presence_kpi function for debugging 2026-02-17 08:00:03 +01:00
DimitraVeropoulou 2e683d0c6d Refactor KPI report generation to improve data handling and summary table creation; update field details mapping and enhance logging for better traceability. 2026-02-16 17:25:03 +01:00
DimitraVeropoulou e966d778f4 Enhance area change KPI calculation to handle multiple field naming conventions and improve interpretation logic for missing previous data 2026-02-16 16:05:54 +01:00
Timon a1fc01632a Add ignored directories to renv settings for better version control management 2026-02-16 15:34:00 +01:00
DimitraVeropoulou e16d920eea 1. removed gap score 2.fixed morans I to calculate per-field 2026-02-16 15:06:37 +01:00
DimitraVeropoulou 5f2dca0a92 remove gap score calculation --> moved to common 2026-02-16 15:05:52 +01:00
DimitraVeropoulou 35e474cf5c Add gap score calculation to common utils 2026-02-16 14:46:16 +01:00
DimitraVeropoulou 8e2d796b41 Added aura in client type map 2026-02-16 14:45:00 +01:00
DimitraVeropoulou 3f08326308 removed redudant variable definition 2026-02-16 12:12:16 +01:00
DimitraVeropoulou cea3f9a0e5 changed the path for cane supply too 2026-02-16 12:05:40 +01:00
DimitraVeropoulou 0503a93bcd fixed the path that the excel is being saved to 2026-02-16 11:51:10 +01:00
DimitraVeropoulou 951eb487b8 Refactor KPI export function to excel file that matches cane supply strycture 2026-02-16 11:04:31 +01:00
Timon 8bc151ee4c chore: Remove obsolete .gitignore files from python_app and r_app 2026-02-16 10:28:33 +01:00
DimitraVeropoulou a9840171cb Enhance logging functionality and update report generation scripts
- Improved safe_log function to include timestamps and conditional logging
- Added diagnostic messages for field visualization processing
- Updated CI map rendering parameters for consistency
- Refined raster mapping functions in report_utils for clarity
- Added .png files to .gitignore
2026-02-16 10:21:55 +01:00
Timon d075302efa feat: Add spectral extraction and analysis scripts for SC-161 and SC-162
- Implemented `run_spectral_extraction.py` to batch extract spectral indices (NDVI, BSI, NDWI) from 4-band TIFF files, saving results in a structured CSV format.
- Created `spectral_features.py` for calculating various spectral indices, including NDVI, BSI, NDWI, CI_green, CI_red, GNDVI, SAVI, and EVI2.
- Added Jupyter notebook `02_season_normalization_analysis.ipynb` for analyzing season-length normalization, comparing ESA and Angata spectral indices, and visualizing growth patterns.
- Included functions for computing season age, plotting trajectories, and performing peak and amplitude analysis.
2026-02-16 10:11:43 +01:00
DimitraVeropoulou 684050d459 fixed the "key insights" calculation 2026-02-12 17:27:21 +01:00
DimitraVeropoulou eb1b7772e5 changed the named of the generated excel and rmd back to "kpi_summary_tables_week", as the 90 requests 2026-02-12 17:16:41 +01:00
DimitraVeropoulou 3106871a81 Remove the creation of weekly_tile_max_mosaic folder 2026-02-12 16:55:34 +01:00
DimitraVeropoulou be29e4fcb3 round to 2 decimals the gap score 2026-02-12 15:44:41 +01:00
DimitraVeropoulou 750db99a41 fixed the KPIs calculation for agronomic utils, fixed the path for saving the excel and rds, updated the main file 2026-02-12 15:43:58 +01:00
DimitraVeropoulou 13015f6ec0 Fix the output path so excel, rds and csv are saved in the same folder 2026-02-12 13:50:57 +01:00
DimitraVeropoulou 7eeed342f3 Update the cane supply main and util script (with the 2σ gap score) 2026-02-12 13:47:35 +01:00
Timon d81f1a4e5a Enhance cum_ci_plot function with dynamic max values for x-axis breaks 2026-02-12 08:47:30 +01:00
Timon Weitkamp dbc097e42c
Merge pull request #9 from TimonWeitkamp/review_perField_code
Review per field code
2026-02-11 15:11:13 +01:00
Timon bb23e4eca7 Remove obsolete KPI validation and overview maps aggregation scripts 2026-02-11 14:47:39 +01:00
DimitraVeropoulou 613b35fc59 add missing bracket to gap score function 2026-02-11 14:44:09 +01:00
Timon 4cd62ab82e Enhance report utility functions and add validation scripts
- Updated `create_CI_map` and `create_CI_diff_map` functions to enforce a 1:1 aspect ratio for consistent map sizing.
- Modified `ci_plot` function to adjust widths of arranged maps for better layout.
- Changed raster merging method in `aggregate_per_field_mosaics_to_farm_level` from `mosaic` to `merge` for improved handling of field data.
- Introduced `test_kpi_validation.R` script to validate the structure of KPI RDS files, ensuring expected KPIs are present.
- Added `test_overview_maps_aggregation.R` script to test the aggregation pipeline for overview maps, including loading field mosaics, creating a farm-level mosaic, and generating visualizations.
2026-02-11 14:32:36 +01:00
DimitraVeropoulou 97d1ea33f1 add the 2σ calculate_gap_filling_kpi in common utils + comment out old function 2026-02-11 14:03:58 +01:00
DimitraVeropoulou 4968162bfc Add huss in the client type map 2026-02-11 13:31:56 +01:00
Timon b6fa1956c0 Enhance debugging output and improve date handling in TIFF removal script; update report utility functions for better map layout and historical data handling. 2026-02-11 09:48:07 +01:00
Timon 2d6f062c27 changes again 2026-02-10 22:11:58 +01:00