That worked thank you very much, that got the NCO command working properly!
I tried removing the -o and received an error saying: "ncap2: ERROR dimension Time is not in list of dimensions available to nco_var_fll() ncap2: HINT This could be a symptom of TODO nco1045. Workaround is avoid use of append mode (i.e., -A switch) in ncap2." When I run the ncap2 code by itself it works just fine on a single file, its only giving me issues in the batch file.
Hello, I was hoping to get a little help with running NCAP2 in a batch file so that I can change multiple netcdf files at a time. So my current problem is when I try to run my code it says ERROR file TT=TT+1 not found. It does not exist on the local filesystem, nor does it match remote filename patterns. My current code looks like: -#!/bin/bash WORKPATH=/home/Desktop/Test NEWWORKPATH=/home/Desktop/Edited cd $WORKPATH find . -name '.nc' -exec cp {} $NEWWORKPATH \; cd $NEWWORKPATH iterator=$(find ....