STARE index variables should have an attribute listing the names of the lat/lon variables used in computing that index.
For example:
double Latitude_5km(i_5km, j_5km) ;
Latitude_5km:long_name = "latitude" ;
Latitude_5km:units = "degrees_north" ;
double Longitude_5km(i_5km, j_5km) ;
Longitude_5km:long_name = "longitude" ;
Longitude_5km:units = "degrees_east" ;
uint64 STARE_index_5km(i_5km, j_5km) ;
STARE_index_5km:long_name = "SpatioTemporal Adaptive Resolution Encoding (STARE) index" ;
STARE_index_5km:variables = "Scan_Start_Time, Solar_Zenith, Solar_Azimuth, Water_Vapor_Infrared, Quality_Assurance_Infrared" ;
How do we know that the STARE index goes with those lat/lon variables, instead of two other lat/lon variables that might be in the file?