Hi,
I am trying to something fairly straightforward and can't seem to get it to work correctly? I just want to extract one variable from a set of netcdf files, choose the same hyperslap and append this subset of data several times to single file.
I am using something like the following:
ncks -A -v PSL -d lat,20.,90. ha0060.nc out.slp.nc
ncks -A -v PSL -d lat,20.,90. ha0061.nc out.slp.nc
.
.
.
.
ncks always replies "WARNING Overwriting attribute ... and simply keeps overwriting the data in out.slp.nc instead of appending to it. This same thing happens when I do it interactively and enter 'a' when prompted if I would like to append or overwrite. What am I doing wrong?
Thanks,
Bill
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
"append" does not mean to NCO what you think it does.
See the manual on this point "append vs. concatenate"
My guess is that ncrcat is the operator that will do what
you are trying, however, and do it in a single command.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I am trying to something fairly straightforward and can't seem to get it to work correctly? I just want to extract one variable from a set of netcdf files, choose the same hyperslap and append this subset of data several times to single file.
I am using something like the following:
ncks -A -v PSL -d lat,20.,90. ha0060.nc out.slp.nc
ncks -A -v PSL -d lat,20.,90. ha0061.nc out.slp.nc
.
.
.
.
ncks always replies "WARNING Overwriting attribute ... and simply keeps overwriting the data in out.slp.nc instead of appending to it. This same thing happens when I do it interactively and enter 'a' when prompted if I would like to append or overwrite. What am I doing wrong?
Thanks,
Bill
"append" does not mean to NCO what you think it does.
See the manual on this point "append vs. concatenate"
My guess is that ncrcat is the operator that will do what
you are trying, however, and do it in a single command.