You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add README and improve docstrings and WEL update logic
Added a new README for the Dash app with setup and usage instructions. Added or improved docstrings throughout dash_app.py and ckan_publish.py for better code clarity. Updated flopy_wel_map.py to handle dtype preservation in WEL stress period data updates, ensuring correct array types and empty period handling.
Dash dashboard for visualizing WEL/RCH data, selecting cells on a map, applying rate updates, and publishing updated WEL files back to CKAN with provenance metadata.
4
+
5
+
## Quick start
6
+
7
+
1. Create a virtual environment.
8
+
2. Install dependencies:
9
+
10
+
```
11
+
pip install -r dash/requirements-dash.txt
12
+
```
13
+
14
+
3. Run the app:
15
+
16
+
```
17
+
python dash/dash_app.py
18
+
```
19
+
20
+
The app listens on http://localhost:8050 by default.
21
+
22
+
## Environment variables
23
+
24
+
-`FLOPY_DATA_DIR`: Directory where CKAN resources are downloaded (default: `ckan_data`).
25
+
-`FLOPY_OUTPUT_WEL`: Default output WEL path (default: `barton_springs_updated.wel`).
26
+
-`FLOPY_CKAN_URL`: CKAN base URL (default: `https://ckan.tacc.utexas.edu`).
27
+
-`FLOPY_CKAN_JWT`: CKAN JWT to skip login flow.
28
+
-`FLOPY_TAPIS_USERNAME`: Tapis username (used if `FLOPY_CKAN_JWT` is not set).
29
+
-`FLOPY_TAPIS_PASSWORD`: Tapis password (used if `FLOPY_CKAN_JWT` is not set).
30
+
31
+
## App flow
32
+
33
+
- Select a dataset, flux source (WEL or RCH), and stress periods.
34
+
- Lasso or click cells on the map to build a selection.
35
+
- Set a rate update mode (set or scale) and apply changes.
36
+
- Provide a dataset name, output filename, and change summary.
37
+
- Click Apply + Save to write the updated WEL and publish to CKAN.
38
+
39
+
## Files
40
+
41
+
-`dash/dash_app.py`: Dash UI and callbacks.
42
+
-`dash/ckan_publish.py`: CKAN/Tapis helpers and publish logic.
0 commit comments