Closed DaniJonesOcean closed 2 months ago
@eredding02 As discussed earlier, I think this one is related to our new mask approach. I think it actually makes sense that DeepSensor can't do much with a list of lat/lon points - it probably needs to be formulated as a density channel!
Closing and redirecting to this issue, which I think is the logical next step:
https://github.com/CIGLR-ai-lab/GreatLakes-TempSensors/issues/35
Bug Report: Handling Latitude-Longitude Pairs in
DataProcessor
Description
There seems to be an issue when processing a dataset of simple latitude and longitude (lat-lon) pairs using
DataProcessor
. TheDataProcessor
expects additional data columns, and setting an index on just these coordinate columns results in an empty DataFrame. This creates confusion when handling scenarios where users only want to manage spatial location data without additional variables.Steps to Reproduce
Create a DataFrame of Lat-Lon Pairs:
Set Index and Attempt Processing:
Expected Behavior
The
DataProcessor
should handle simple lat-lon pairs gracefully without requiring additional "dummy" variables or resulting in an empty DataFrame when only spatial coordinates are provided.Actual Behavior
The process fails unless a data column is introduced. Setting the index on lat-lon pairs with no additional data results in an empty DataFrame, causing confusion and unnecessary complexity.
Suggested Solution
Option to Handle Lat-Lon Pairs Directly:
DataProcessor
for handling datasets consisting solely of spatial coordinate data.Improved Error Messaging:
Example Fix Using xarray (Optional Normalization)
Additional Context
This flexibility is essential for various applications where users only need to manage spatial locations without additional metrics, ensuring a more streamlined and user-friendly processing interface.
Requested Action
Please review this behavior to enhance support for simpler datasets, ensuring that
DataProcessor
can handle pure lat-lon spatial data gracefully. Consider enhancing error messages and providing better documentation to help users understand necessary data structures better.