Commit graph

44 commits

Author SHA1 Message Date
Timon 7b347ddba6 Fix: Revert run_phase1_growing_window to original GitHub version (off-by-one fix) and move test scripts to harvest_detection_experiments/tests 2026-01-15 09:08:07 +01:00
Timon 458b8247be Cleanup: Fix CI formula, reorganize shell scripts and test files
- Fixed CI calculation: changed from NDVI (NIR-Red)/(NIR+Red) to correct NIR/Green-1 formula in:
  * process_single_tile() function
  * create_ci_band() utility function
  * Updated create_mask_and_crop() documentation

- Renamed numbered shell scripts for clarity (matching R script numbering):
  * 01_run_planet_download -> 10_planet_download.sh
  * 02_run_ci_extraction -> 20_ci_extraction.sh
  * 03_run_growth_model -> 30_growth_model.sh
  * 04_run_mosaic_creation -> 40_mosaic_creation.sh
  * 09_run_calculate_kpis -> 80_calculate_kpis.sh
  * 10_run_kpi_report -> 90_kpi_report.sh

- Archived obsolete shell scripts to old_sh/:
  * build_mosaic.sh, build_report.sh, interpolate_growth_model.sh
  * 05_run_dashboard_report.sh, 06_run_crop_messaging.sh
  * 11_run_yield_prediction.sh/ps1
  * runcane.sh, runpython.sh, smartcane.sh, update_RDS.sh

- Deleted test/debug files and temporary outputs:
  * analyze_*.R, benchmark_gpu_vs_cpu.py, convert_angata_harvest.py
  * debug_mosaic.R, examine_kpi_results.R, generate_sar_report.R
  * inspect_8band_structure.R, inspect_tif_bands.R
  * old_working_utils.R, predict_harvest_operational.R
  * run_kpi_calculation.R, run_report.R, simple_sar_test.R
  * data_validation_tool/, harvest_ci_pattern_analysis.png, kpi_debug.out

- Enhanced harvest prediction: Added threshold tuning (0.40-0.45) and field type handling

- Enhanced mosaic creation: Improved tile detection and routing logic
2026-01-14 16:58:51 +01:00
Timon 62106eeb3b Update: source() calls to reference renamed util files (20_, 30_, 40_) 2026-01-14 11:24:27 +01:00
Timon ab19c2b99d Rename: python scripts to match pipeline stage numbers 2026-01-14 11:21:05 +01:00
Timon fc7e5f1ee0 Enhance download progress feedback and optimize tile overlap checks
- Added a progress bar to the tile download process for better user feedback.
- Simplified the tile overlap checking logic in the R script to improve performance and readability.
2026-01-13 11:30:38 +01:00
Timon 4f5bb1be9f test 2026-01-12 16:40:51 +01:00
Timon cb63cf00b8 updated code to fit in workflow better 2026-01-12 16:33:23 +01:00
Timon d1303dd218 testing new branch 2026-01-12 14:56:54 +01:00
Timon 182d13d593 wip 2026-01-12 14:55:25 +01:00
Timon dc7c346854 updated whole workflow and architercutre md 2026-01-12 09:34:13 +01:00
Timon d22dc2f96e commit all stuff 2026-01-06 14:17:37 +01:00
Timon d5fd4bb463 Add KPI reporting system and deployment documentation
Major Changes:
- NEW: Scripts 09 & 10 for KPI calculation and enhanced reporting
- NEW: Shell script wrappers (01-10) for easier execution
- NEW: R packages flextable and officer for enhanced Word reports
- NEW: DEPLOYMENT_README.md with complete deployment guide
- RENAMED: Numbered R scripts (02, 03, 04) for clarity
- REMOVED: Old package management scripts (using renv only)
- UPDATED: Workflow now uses scripts 09->10 instead of 05

Files Changed: 90+ files
New Packages: flextable, officer
New Scripts: 09_run_calculate_kpis.sh, 10_run_kpi_report.sh
Documentation: DEPLOYMENT_README.md, EMAIL_TO_ADMIN.txt

See DEPLOYMENT_README.md for full deployment instructions.
2025-10-14 11:49:30 +02:00
Martin Folkerts d258a2bf2e cleaned the folders, made some parameters 2025-09-05 15:23:41 +02:00
Martin Folkerts b169669d64 fix splitting area was set to wide 2025-07-23 08:30:45 +02:00
Timon 81e68096ba changed the evalscript, less strict version 2025-07-21 11:15:09 +02:00
Timon 6efcc8cfec Fix CI report pipeline: update tmap v4 syntax, add continuous color scales, fix formatting
- Updated all CI maps to use tm_scale_continuous() for proper tmap v4 compatibility
- Added fixed color scale limits (1-8 for CI, -3 to +3 for differences) for consistent field comparison
- Fixed YAML header formatting issues in CI_report_dashboard_planet.Rmd
- Positioned RGB map before CI overview map as requested
- Removed all obsolete use_breaks parameter references
- Enhanced error handling and logging throughout the pipeline
- Added new experimental analysis scripts and improvements to mosaic creation
2025-06-19 20:37:20 +02:00
Timon fbc8f5e11b wip 2025-04-22 17:43:11 +02:00
Timon 29e2867b41 adding docx 2025-03-25 10:42:04 +01:00
Martin Folkerts c8ef406545 added Catalog package with config and changed iteration to use available_slots 2024-11-11 10:26:02 +01:00
Martin Folkerts c131b18cec added source from cleanup sentinal Code branch 2024-11-07 11:48:23 +01:00
Timon 119084ec41 only download images on dates with actual data, not empty dates 2024-11-01 17:04:17 +01:00
Martin Folkerts f08da04c3b added DownloadCreditsCommand some updates 2024-10-23 09:34:52 +02:00
Martin Folkerts dce7344947 updated project 2024-08-26 14:01:57 +02:00
Martin Folkerts 64a576d638 okay 2024-08-20 17:01:58 +02:00
Martin Folkerts 1e841a0aa6 wip 2024-06-18 09:17:57 +02:00
Martin Folkerts e2138a378a some updates 2024-05-13 19:35:17 +02:00
Martin Folkerts 5886f59bd8 wip 2024-04-18 13:43:14 +02:00
Timon 238520ff89 parameterised harvestdata etc 2024-03-12 22:18:57 +01:00
Martin Folkerts e996a274db merged testing 2024-03-05 09:40:46 +01:00
Timon 6807b30312 redady for merge 2024-03-05 09:20:34 +01:00
Martin Folkerts c222314950 wip 2024-03-05 09:15:46 +01:00
Timon 61e91708ab adding latest files, still learning... 2024-03-04 17:23:29 +01:00
Timon 86f4a49d30 minor changes in script to get it running on my device 2024-03-04 12:15:23 +01:00
Timon 07a54eab25 minor changes 2024-03-01 16:32:53 +01:00
Martin Folkerts 2c84747ff0 wip 2024-01-22 09:54:15 +01:00
Martin Folkerts 4c22ab6758 wip 2024-01-03 22:06:03 +01:00
Martin Folkerts 3fb55ddcce added rule for missing mergedTifs; 2023-12-24 18:02:17 +01:00
Martin Folkerts c40ff0c79f updated scripts 2023-12-12 11:20:05 +01:00
Martin Folkerts 4c730c0167 wip 2023-10-24 17:08:04 +02:00
Martin Folkerts 4a6a24ed6b wip 2023-10-22 21:45:20 +02:00
Martin Folkerts 02eb832c83 split smartcane in to smartcane and runcane 2023-10-22 21:20:44 +02:00
Martin Folkerts 5aeda5991b wip 2023-10-18 22:01:14 +02:00
Martin Folkerts 568565bc76 wip 2023-10-16 15:45:52 +02:00
Martin Folkerts 78e6567182 wip 2023-10-10 17:02:35 +02:00