My goal is to create a raster from points with values based on at least 3 unique IDs within a cell. Cells that had fewer than 3 points with unique IDs will have value NA. See below for clarification. I looked at Selecting set number of points within polygon grid cells using QGIS? hoping to adapt it, but am still stuck.
I created a fishnet with certain cell size that I think may be reasonable. Now, I want to identify the number points within each cell with unique IDs (here, VesselID). Next, I want to assign NAs to my field of interest (here, AdjPounds) for points that do not fit the "minimum 3 unique IDs in the cell criteria". I thought about using the Intersect tool, but don't know how to add the criteria.
Can you help?
This is probably best done in Python, but I'm not familiar with that language yet.
More context: I will need to reiterate this process for several similar files and ultimately conduct raster math to get an average raster. I assume I will need to choose the same cell size when I create the rasters to avoid resampling to obtain the final "average" raster.