Pumping: the weather of the stations with a position written into data/<SERIAL>/weather/ (extraction/weather.py, after pump.py); the mm (corr_x_mm, corr_y_mm by the sensor_id of each row) and targets.csv with the references (pattern_type, distance_mm, mm_per_px); --replace pumps a range again
pump.py --check passes; the mm and targets.csv parts are not yet run against the database (no VPN). stations.txt: NIEDERHORN and NORDEND without a position (outside Switzerland). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
9adc38f9b9
commit
ea0228a73a
8 files changed
+205
-22
No files matched your search
+3
-1
@@ -1,6 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
# Pumping under WSL. Reads the credentials from the .env at the root of the repository (never versioned),
|
||||
# runs pump.py in a throwaway uv environment (4 packages), then absolute.py (x / y in absolute).
|
||||
# runs pump.py in a throwaway uv environment (4 packages), then absolute.py (x / y in absolute) and weather.py (the
|
||||
# MeteoSwiss weather of the stations with a position, data/<STATION>/weather/).
|
||||
# extraction/pump.sh update of the tracked stations, images included (the scheduler)
|
||||
# extraction/pump.sh --from D --to E [SERIAL] any other call: the arguments go to pump.py as they are
|
||||
# Output appended to out/pump.log; one pumping at a time (lock out/pump.lock).
|
||||
@@ -21,5 +22,6 @@ flock -n 9 || { echo "A pumping is already running." >&2; exit 1; }
|
||||
--with sqlalchemy --with psycopg2-binary --with pandas --with boto3 \
|
||||
python "$here/pump.py" "$@")
|
||||
python3 "$here/absolute.py" # x / y in absolute on every station
|
||||
python3 "$here/weather.py" # the weather of every station with a position: its missing and last days
|
||||
echo "=== $(date -u +%Y-%m-%dT%H:%MZ) end"
|
||||
} 2>&1 | tee -a "$root/out/pump.log"
|
||||
Reference in new issue
Block a user