Hi everybody,
I interpolated hycom data on a new grid, but I have a problem and the new interpolation file does not coincide on a grid in the boundaries,
could you please explain to me how to solve this problem?
looking forward to any suggestions.
Best,
Pooran
interpolation
Re: interpolation
I don't understand what you are saying. What exactly is the problem? What tools are you using?
-
- Posts: 72
- Joined: Fri Jan 31, 2014 5:54 pm
- Location: Khoramshahr Marine Science and Technology Universi
Re: interpolation
Dear Kate,kate wrote:I don't understand what you are saying. What exactly is the problem? What tools are you using?
Actually, I don't want to use Roms model, I am going to find a good way to interpolation hycom data ( with resolution 1/18 degree) on my grid ( with resolution 2 min).
I used cdo to do it, but I did not get a good interpolation in the boundaries.
I was wondering if you could tell me the best way to remap or interpolation data.
Thank you in advance.
Pooran
Re: interpolation
Well, the steps you need to take might well depend on what you are planning to use the interpolated fields for. For ROMS, we typically use something like the scrip or ESMPy remapping tools for the horizontal remapping, but sometimes the land masks don't match and we need to do some lateral extrapolation too.
-
- Posts: 72
- Joined: Fri Jan 31, 2014 5:54 pm
- Location: Khoramshahr Marine Science and Technology Universi
Re: interpolation
Dear Kate,kate wrote:Well, the steps you need to take might well depend on what you are planning to use the interpolated fields for. For ROMS, we typically use something like the scrip or ESMPy remapping tools for the horizontal remapping, but sometimes the land masks don't match and we need to do some lateral extrapolation too.
I would really appreciate your useful information, if it is possible could you please tell me more details about extrapolation,
which software is good to do it? sorry if my question is simple, It is my first time to do this work.
Regards,
Pooran
Re: interpolation
Well, it depends. I would use pyroms, others would use Matlab. pyroms comes with a HYCOM interpolation example using scrip (which has to be compiled).
-
- Posts: 72
- Joined: Fri Jan 31, 2014 5:54 pm
- Location: Khoramshahr Marine Science and Technology Universi
Re: interpolation
Many thanks for your helpkate wrote:Well, it depends. I would use pyroms, others would use Matlab. pyroms comes with a HYCOM interpolation example using scrip (which has to be compiled).
-
- Posts: 43
- Joined: Wed Nov 30, 2016 11:18 pm
- Location: University of Massachusetts Dartmouth
Re: interpolation
You can also use basic python/matlab routines for interpolation. For my grids, I do interpolation from HYCOM/NCODA to the ROMS grid using scipy.griddata and scipy.interp1d.
griddata is for 2D interpolation: I use it for transforming the fields from HYCOM meshgrid to the ROMS meshgrid. And for the 1D interpolation from HYCOM vertical grid to ROMS sigma grid, I use interp1d.
griddata is for 2D interpolation: I use it for transforming the fields from HYCOM meshgrid to the ROMS meshgrid. And for the 1D interpolation from HYCOM vertical grid to ROMS sigma grid, I use interp1d.