I have a large dataframe, df, which I have created from multiple files of scattered, irregular data.
The df is very long (8131596) and has the columns: date, latitude, longitude, var1, var2.
I would ideally like to create a 2D grid/map of certain latitude/longitude bounding box, and apply my df so any data that falls within that lat/lon is included. Or, create 2D lat/lon grid from my data and I can cut it later (ie, end up with a 2D 'image' / matrix).
I will then interpolate between these irregular points, ending up with essentially a data field for each of the variables in the df.
However I am a bit stuck with what is the best way to go about this. I think perhaps mesh grid will be involved, but I can't seem to find any previous questions/help that relates this situation.
Any suggestions greatly appreciated!