mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-15 15:52:21 +00:00
fix(fires): report a 00:45 UTC detection as 00:45, not "45"
get_active_fires joined FIRMS acq_date and the unpadded acq_time, so a detection at 00:45 UTC came back as "2026-01-01 45". The row now uses acquisitionMsUtc, which pads the time, and reports an ISO UTC timestamp like the other tool times.
This commit is contained in:
1 parent
ac8dc84f3c
commit
57df5f61ba
4 files changed
+24
-3
No files matched your search
@@ -1,5 +1,6 @@
|
||||
/** Natural hazard queries: earthquakes and active fires. */
|
||||
|
||||
import { acquisitionMsUtc } from '../../data/firmsCsv.js';
|
||||
import { suggestView } from '../views.js';
|
||||
import { defineTool, ToolError } from '../catalog.js';
|
||||
import { AREA_SCHEMA, areaContains, resolveArea } from '../area.js';
|
||||
@@ -114,8 +115,7 @@ export const getActiveFires = defineTool({
|
||||
lon: fire.lon,
|
||||
frp_mw: fire.frp ?? null,
|
||||
confidence: fire.confidence ?? null,
|
||||
acquired:
|
||||
[fire.acqDate, fire.acqTime].filter(Boolean).join(' ') || null,
|
||||
acquired: isoTime(acquisitionMsUtc(fire.acqDate, fire.acqTime)),
|
||||
satellite: fire.satellite ?? null,
|
||||
day_night: fire.daynight ?? null,
|
||||
})),
|
||||
|
||||
Reference in new issue
Block a user