-
Notifications
You must be signed in to change notification settings - Fork 6
Toolbox Key Elements
Christina Zorenboehmer edited this page Apr 21, 2025
·
1 revision
| Component | Details |
|---|---|
| Login System | Handles authentication using OAuth2 for the Sen2Cube.at server. Refreshes tokens automatically before they expire. Monitors inactivity and logs out users if needed. |
| Global Session Management | Uses a GLOBAL_VALS dictionary to store login state, tokens, user info, selected factbase/knowledgebase, and job status across tool interactions. |
| Parameter Updating | Dynamically enables, disables, or updates ArcGIS tool parameters based on user inputs (e.g., once logged in, show factbase list). Includes error checking/ input validation. |
| Threading | Background threads manage: - Token refresh - Inactivity monitoring without freezing the ArcGIS Pro GUI. |
| Inference Submission | Packages user selections into a Sen2Cube.at Inference API request and submits it. |
| Inference Monitoring | Periodically checks the server for job completion status (Succeeded, Failed, or Aborted). Displays updates to user. |
| Results Download and Import | Once the inference is complete, results (GeoTIFFs, CSVs) are downloaded into the specified output folder and added directly into the active ArcGIS Pro map. |
| Error Handling | All inputs are validated and any error messages are shown to the user during login, AOI selection, date selection, and inference submission. |