Upon checking all the variables, I see nothing suspicious but the order of the variable has changed. "zeta2" is now No. 1 in the variable list whereas it was No. 18 before the operation. Is there any way to preserve the previous order or change the order back to where it was?
The difference I see between the zeta2 of the two files is that the order of metadata has changed (Screenshot Attached). My guess is this "may" cause the problem, as the model maybe looking for the FillValue information in the wrong line. Any idea how to fix this?
Hi Charlie, Thanks for your prompt response. As you guessed, the result of subtraction is all 0s except for coordinate variables and zeta2. But do you have any idea about what else in the nc file could have changed after my ncap2 operation, other than the variable values? I am sure something has changed because the error I am getting in my model occurs only if I operate ncap2 on the variable values, no error if I don't, and I am not changing anything other than the values (the model is stable enough...
(nco/4.9.3) Hi, I have an nc file with a several variables. All I want to do is - Multiply the "zeta2" variable values with a randomly generated (normally distributed) number Replace the current "zeta2" variable values with the modified values maintaining the order Keep the rest of the data from the file intact. As a test case, I have tried multiplying the "zeta2" variable values with 0.5 and replace the variable with updated values. I tried this command - ncap2 -s 'zeta2=zeta2*0.5' fort.68.nc newfort.68.nc...