values substitution
Added by David Schubert about 10 years ago
Dear all,
I want to substitute the values in the larger grid (data_big.nc) witho those from the smaller grid (data_small.nc) but keeping the values outside the smaller grid range intact. What is the best way to do this? I've tried to merge but without success.
Thank you in advance.
Regards,
David
data_big.nc (74.3 KB) data_big.nc | |||
data_small.nc (77.6 KB) data_small.nc |
Replies (4)
RE: values substitution - Added by Jaison-Thomas Ambadan about 10 years ago
did you try mergegrid - have a look at "cdo -h mergegrid"
RE: values substitution - Added by David Schubert about 10 years ago
Yes i have tried it.
Before doing mergegrid i renamed the variable names because they where different in the files.
After that i tried mergegrid but i get this error message: cdo mergegrid (Abort): Input streams have different structure!
RE: values substitution - Added by Jaison-Thomas Ambadan about 10 years ago
okay, the problem is, as you said, they are different variables/parameters and levels; try for example
cdo mergegrid -setlevel,0 -setparam,179.128 data_big.nc -setlevel,0 -setparam,179.128 data_small.nc ofile.nc
Cheers,
Jaison
PS: I didn't verify the output
RE: values substitution - Added by David Schubert about 10 years ago
Hello Jason,
thank you very much. This is exactly what i wanted.
Cheers,
David