Project

General

Profile

Help with Remapping ICON Results to Flight Path Using Nearest Neighbour Method

Added by Stefan Versick 17 days ago

Hi everyone,

I'm working on a project where I need to remap ICON model results to a flight path. I have netCDF files for both the ICON results and the flight path. The flight path netCDF files contain time (time), latitude (lat(time)), longitude (lon(time)), altitude (altitude(time)), pressure (pressure(time)), and the variables (variables(time)) I want to remap.

Remapping to the horizontal coordinates (lat, lon) is straightforward, but I'm unsure how to handle the altitude since it changes with each coordinate. If remapping to altitude is too complex, I'm okay with initially getting the whole column.

My main challenge is remapping different time steps from the ICON results to the flight path (nearest time step in ICON for each time step of the flight path). I'm not sure how to approach this or if it's even possible. The remapping method required by my project is nearest neighbour. If remapping doesn't work, is there a way to achieve this using interpolation routines (even if it's not nearest neighbour)?

One potential solution I thought of is splitting the files according to matching time steps in ICON and the flight path file, then looping over them. However, I need to do this for several hundred (possibly over a thousand) flight paths, so I'm looking for a simpler, one-liner command with operator chaining.

Any advice or suggestions would be greatly appreciated!

Thank you!


Replies (1)

RE: Help with Remapping ICON Results to Flight Path Using Nearest Neighbour Method - Added by Karin Meier-Fleischer 17 days ago

There is no one line command. You have to take care about varying time, lat, lon, and altitude for different variables and stored in many files. I recommend to write a Python script.

    (1-1/1)