Hello,
I have a netcdf file and I am trying to convert it to a text file.
Here is the information of my input file:
TIMESTEPS=2920
LONPOINTS=537
LATPOINTS=225
INPUTVARS=(PSFC U10 V10)
And I am trying this:
for m in {1..2929}; do
for l in {1..1}; do
for INPUTVAR in ${INPUTVARS[@]}; do
let tmp = if ${INPUTVAR}[l=${l},m=${m}] eq (-9e+33) then (-9999) else ${INPUTVAR}[l=${l},m=${m}]
set var/bad=-9999 tmp
list/file="${OUTPUT}"/append/nohead "CHANGE"; list/file="${OUTPUT}"/append/nohead/format=(${LONPOINTS}(f10.2)) tmp
done
done
done
But the problem is list/format=(${LONPOINTS}(f10.2)) lists the data from lower row. Is there any way that I can list the data from first row in the up then the generated text file become similar to what I see if I simply use list?!
Thanks,
Sanaz