[Python] Assign values from array 1 to array 2 with different grid based on nearest lonlat...

Discussão em 'Python' iniciado por Stack, Julho 16, 2025.

  1. Stack

    Stack Membro Participativo

    I have two NetCDF4 files with different grids and dimensions (but both approximately cover the same area, see images below). One has information on land-use, the other on topography. [​IMG] [​IMG]

    I now want to add this topography variable to the land-use file by assigning each elevation value in the topography file to the correct gridcell in the land-use file based on the nearest lonlat coordinate.

    How would I do this in Python?

    Continue reading...

Compartilhe esta Página