remapil from one SCRIP grid to another
Added by Vladimir Vovo over 10 years ago
Hello, i have netCDF file with some data (src_var.nc
) and netCDF file with it's grid in proper SCRIP format (src_grid.nc
).
The goal is to interpolate it to another grid (i also have SCRIP-file of this grid - dst_grid.nc
).var). Result file is (dst_var.nc
)
Is it possible?
Replies (6)
RE: remapil from one SCRIP grid to another - Added by Jaison-Thomas Ambadan over 10 years ago
try, for example:
cdo -remapcon,dst_grid.nc -setgrid,src_grid.nc src_var.nc dst_var.nc
RE: remapil from one SCRIP grid to another - Added by Vladimir Vovo over 10 years ago
Thank you but unfoturnately I got this message:
cdo remapcon: Started child process "setgrid,src_grid.nc src_var.nc (pipe1.1)".
cdo remapcon (Abort): Unsupported grid type: generic
HDF5-DIAG: Error detected in HDF5 (1.8.11) thread 0:
#000: H5T.c line 1761 in H5Tclose(): not a datatype
major: Invalid arguments to routine
minor: Inappropriate type
Error (cdf_close) : NetCDF: HDF error
Do you know where I should try to find a problem?
RE: remapil from one SCRIP grid to another - Added by Jaison-Thomas Ambadan over 10 years ago
I think the error message is from HDF5 library and not directly from CDO. It would be helpful if you could upload your input files and the output of "cdo -V"
Anyway, try the same with remapbil or remapnn instead of remapcon
RE: remapil from one SCRIP grid to another - Added by Vladimir Vovo over 10 years ago
1) Files in the attachment.
2) I tried nn, con, bil.
3) $ cdo -V
Climate Data Operators version 1.6.3 (http://code.zmaw.de/projects/cdo)
Compiled: by vovo on vovo-N53SV (x86_64-unknown-linux-gnu) Jul 18 2014 17:08:55
Compiler: mpicc -std=gnu99 -O3 -xHost -ip -no-prec-div -static-intel
version: unknown
Features: PTHREADS NC4 Z
Libraries:
Filetypes: srv ext ieg grb nc nc2 nc4 nc4c
CDI library version : 1.6.3 of Jul 18 2014 17:08:40
CGRIBEX library version : 1.6.3 of Jan 8 2014 19:55:18
netCDF library version : 4.1.3 of Jul 18 2014 16:05:20 $
HDF5 library version : 1.8.11
SERVICE library version : 1.3.1 of Jul 18 2014 17:08:19
EXTRA library version : 1.3.1 of Jul 18 2014 17:08:11
IEG library version : 1.3.1 of Jul 18 2014 17:08:16
FILE library version : 1.8.2 of Jul 18 2014 17:08:11
dst_grid.nc (776 KB) dst_grid.nc | |||
src_grid.nc (697 KB) src_grid.nc | |||
src_var.nc (6.44 MB) src_var.nc |
RE: remapil from one SCRIP grid to another - Added by Jaison-Thomas Ambadan over 10 years ago
okay, the problem is there are varaibles in your input files that cannot be interpolated, so you just need to select the 2D/3D variable(s) that you want to remap/interpolate using selvar like:
cdo -remapcon,dst_grid.nc -selvar,t_an -setgrid,src_grid.nc src_var.nc dst_var.nc
and it works fine!
RE: remapil from one SCRIP grid to another - Added by Vladimir Vovo over 10 years ago
Thank you very much!