Does select with a wildcard on file names include a cat operation
Added by Noam Chomsky about 5 years ago
Say there are many files one for each year
clim_2000.nc
clim_2001.nc
clim_2002.nc
...
...
clim_2010.nc
Does this operation essentially perform a cat+select? And will output.nc include all selected variables in the correct time order? 2000,2001,etc?cdo select,name=temp,precip,hum 'clim_*.nc' output.nc
Before I was doing a loopfor i=2000 to 2010
cdo select,name=temp,precip,hum clim_$i.nc tmp_$i.nc
followed by a cat
cdo cat 'tmp_*.nc' output.nc
But it seems that the above select already includes a cat.
Also when I tried
cdo cat -select,name=temp,precip,hum 'clim_*.nc' output.nc
I get "Segmentation fault (core dumped)", so that makes me think this kind of select already includes cat
Replies (1)
RE: Does select with a wildcard on file names include a cat operation - Added by Karin Meier-Fleischer about 5 years ago
Hi Noam,
with
cdo select,name=temp,precip,hum 'clim_*.nc' output.nc
you are doing an internal cat because you use the * in the file name.
I don't know why you get a segmentation fault because the call is correct with or without the quote signs. Which version of CDO are you using?
-Karin