File Import and Normalization - Console Commands
Wed Nov 09 2022 21:14:53 GMT+0000 (Coordinated Universal Time)
Saved by
@hcflores
// View Invalidation Queue
c3Grid(InvalidationQueue.countAll())
// View Status of import
c3Grid(SourceFile.get("MySourceCollection_MySourceFile.csv").sourceStatus())
// Trigger normalization via a header Type
MyTimeSeriesHeaderType.refreshNormalization({force: true, async: true})
// View normalized time series data
var normalizedData = NormalizedTimeseriesPersister.getId(
id = MyHeaderType.normalizedTimeseriesKey(
headerId = "MyHeaderID",
tsField = "MyQuantityField"
),
spec = NormalizedTimeseriesGetSpec.make({
timeRange: NormalizedTimeseriesRange.make({
start: "2015-01-01",
end: "2019-06-01"
})
})
);
c3Grid(normalizedData.values)
content_copyCOPY
Comments