Conversation
This was needed when wanted to apply a mask to a file with a temporal axis. cdo seems to keep only the first time step...
|
Some items are missing :
But, maybe more important, here is what I get with CDO when multiplying a file with a time axis by a file with no time axis :
which weakens the rationale for the new operator The CDO I used is :
|
|
Concerning the documentation and example, I will push it once complete. With CDO version 1.9.8, I have issues multiplying a CORDEX like file with its mask. The result of the CDO command line is the following and the output file does not contain the time line or the variable tas (only the mask variable):
|
|
Maybe the meaningful difference between both test is that my mask1.nc has a time dimension (of size 1). But CDO behavior in your case is odd : it tries to "fill up" the wrong stream, the one which already has a time dimension ... |
610370a to
9454f68
Compare
xmul.py (in directory scripts) make multiplications of fields using xarray.
There is no limit in the number of input files, masks and constant can also be provided.
The function xfmul call this script.
It can be used to apply a mask to netcdf files containing a temporal axis.
In this case, it seems that CDO discards the temporal axis...