Hey everyone
I have a rectilinear xarray file (180 x 360) one of the attributes tells me the outflow point (to the ocean) of each watershed.
I have a curvilinear grid (coarser res x = 149 by y =182) with another variable I want to use.
I am looking for a way to “map” my output points from my rectilinear grid onto my curvilinear grid to find the values of the cells.
I have tried using interp with method=‘nearest’ (linear misses tons of values only 20 basins out of 2600) but this still misses roughly half of my exit points.
I wondered if there is an “easy” way to see which cell(s) a given long / lat falls in in a curvilinear grid? The annoying things is using geoviews I can superpose these datasets!!
Would Spatial pandas help out here?