MERGE_GRID
Added by kunal bali over 5 years ago
Dear CDO users,
I am trying to merge the grids of two different files using
<>
cdo mergegrid file_01.nc file_02.nc
<>
but it's not working at least for the attached files. please let me know how to sort out this problem.
regards
Kunal
mask_himachal1.nc (1.52 MB) mask_himachal1.nc | shapefile_himachal_state | ||
mask_Jnk1.nc (1.52 MB) mask_Jnk1.nc | shapefile_JnK |
Replies (1)
RE: MERGE_GRID - Added by Ralf Mueller over 5 years ago
since you did not write, what exactly is the problem, here is my analysis:
- I could run the command with cdo-1.9.6 without problems
- both input files have identical grids, so I doubt that
mergegrid
is the operator you need - there is nothing to merge here:% cdo sinfov mask_himachal1.nc mask_Jnk1.nc [Wed 2019-06-05|12:28:10] Warning (cdfScanVarAttr): NetCDF: Variable not found - lat_bnds Warning (cdfScanVarAttr): NetCDF: Variable not found - lon_bnds File format : NetCDF -1 : Institut Source T Steptype Levels Num Points Num Dtype : Parameter name 1 : unknown unknown c instant 1 1 396000 1 I32 : mask_array Grid coordinates : 1 : lonlat : points=396000 (600x660) lon : 68.025 to 97.975 by 0.05 degrees_east lat : 5.025 to 37.975 by 0.05 degrees_north Vertical coordinates : 1 : surface : levels=1 Warning (cdfScanVarAttr): NetCDF: Variable not found - lat_bnds Warning (cdfScanVarAttr): NetCDF: Variable not found - lon_bnds File format : NetCDF -2 : Institut Source T Steptype Levels Num Points Num Dtype : Parameter name 1 : unknown unknown c instant 1 1 396000 1 I32 : mask_array Grid coordinates : 1 : lonlat : points=396000 (600x660) lon : 68.025 to 97.975 by 0.05 degrees_east lat : 5.025 to 37.975 by 0.05 degrees_north Vertical coordinates : 1 : surface : levels=1 cdo sinfon: Processed 2 variables [0.01s 40MB]
- coordinate bounds are not present in the file although they are mentioned as the value of the
bounds
attribute of both lon and lat.
cheers
ralf