Commit fcedc265 authored by Modellers Operational's avatar Modellers Operational

Bug fixes to WRF archive retrieval

parent 8c42ca8a
......@@ -26,8 +26,8 @@ d_comp=0
n=0
until [ "$d_comp" = "$END_DAY" ]
do
((n++))
d=$(date -d "$START_DAY + $n days" +${WRF_ARCHIVE_DATEFMT})
d_comp=$(date -d "$START_DAY + $n days" +%Y-%m-%d)
cp /pml${WRF_ARCHIVE_DIR}/*${d}*/wrfout_d03_* raw_wrf_file_${n}.nc
((n++))
done
......@@ -6,8 +6,6 @@
module purge
module load nco
set -eu
files=($(\ls raw_wrf_file*))
# Now convert to FVCOM forcing files. These files have all had their first
......@@ -18,12 +16,12 @@ files=($(\ls raw_wrf_file*))
n=0
for this_file in "${files[@]}"; do
((n++))
echo ${this_file}
./wrf_to_fvcom_ceto -i ${this_file} -o wnd_file_${n}.nc -latitude 55.0
wrf_to_fvcom_ceto -i ${this_file} -o wnd_file_${n}.nc -latitude 55.0
ncrcat -O -h wnd_file_${n}.nc wnd_file_trim_${n}.nc
rm ${this_file}
rm wnd_file_${n}.nc
((n++))
done
ncrcat -O -h $(\ls -1 wnd_file_trim*.nc | sort -u) wnd_file.nc
......
[command]
default = bash ./get_wrf_files.sh ${START_DAY} ${END_DAY} ${WRF_ARCHIVE_DATEFMT} ${WRF_ARCHIVE_DIR} ${ROSE_DATAC}; bash ./merge_files.sh;
ln -sf wnd_file.nc ${ROSE_DATAC}/${GRID_NAME}_wnd.nc
ln -sf ${PWD}/wnd_file.nc ${ROSE_DATAC}/${GRID_NAME}_wnd.nc
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment