#!/usr/bin/env bash set -euo pipefail Yr_Ope=${1} Mn_Ope=${2} Dy_Ope=${3} #Dir_Inp="/home/tanpv/Progs/CLI/Dr/outputs/Ope/2026/07/01/" #Dat_out="/home/tanpv/Progs/CLI/dro/PDF/20260701" #Shape_VN7="/home/tanpv/Progs/CLI/dro/VN_SubRegs/Vietnam7.shp" Dir_Inp="/home/tanpv/Progs/CLI/Dr/outputs/Ope/${Yr_Ope}/${Mn_Ope}/${Dy_Ope}/" mkdir -p /home/tanpv/Progs/CLI/dro/PDF/${Yr_Ope}${Mn_Ope}${Dy_Ope} Dat_out="/home/tanpv/Progs/CLI/dro/PDF/${Yr_Ope}${Mn_Ope}${Dy_Ope}/" # Set this to the actual location of the Vietnam7 shapefile. Shape_VN7="/home/tanpv/GrADS_SCR/VN_SubRegs1/Vietnam7.shp" Inpfile="${Dir_Inp%/}/Dr_Prob.nc" if [[ -e ${Inpfile} ]]; then python3 pl_dr_prob_grfill.py \ --year "${Yr_Ope}" \ --month "$((10#${Mn_Ope}))" \ --day "$((10#${Dy_Ope}))" \ --input "${Inpfile}" \ --output-dir "${Dat_out}" \ --shape "${Shape_VN7}" \ --nlead 6 else echo "${Inpfile} does not exist" fi