Interactive interface for browsing global, full-resolution satellite imagery
remove anti-meridian matching for day handler
Mike McGann54e3d005b04e
diff --git a/web/js/data/handler.js b/web/js/data/handler.jsindex a3da15540..a1d355491 100644--- a/web/js/data/handler.js+++ b/web/js/data/handler.js@@ -649,28 +649,74 @@ export function dataHandlerHalfOrbit(config, model, spec) {return self;};-export function dataHandlerVIIRSSwathDay(config, model, spec) {- return dataHandlerVIIRSSwath(config, model, {+export function dataHandlerVIIRSSwathDay(config, model) {+ var self = dataHandlerBase(config, model);++ var spec = {startTimeDelta: -180,endTimeDelta: 180,maxDistance: 270,eastZone: 300,westZone: 1380- });+ };++ var init = function () {+ // Normal north-south extent minus a degree on each side. This removes+ // granules that misbehave at the poles+ self.extents[CRS_WGS_84] = [-180, -59, 180, 59];+ };++ self._submit = function (queryData) {+ var queryOptions = {+ time: model.time,+ startTimeDelta: spec.startTimeDelta,+ endTimeDelta: spec.endTimeDelta,+ data: queryData+ };++ return self.cmr.submit(queryOptions);+ };++ self._processResults = function (data) {+ var results = {+ meta: {},+ granules: data+ };++ // var productConfig = config.products[model.selectedProduct];+ var chain = dataResultsChain();+ chain.processes = [+ dataResultsGeometryFromCMR(),+ dataResultsTransform(model.crs),+ dataResultsExtentFilter(model.crs, self.extents[model.crs]),+ dataResultsTimeFilter({+ time: model.time,+ eastZone: spec.eastZone,+ westZone: spec.westZone,+ maxDistance: spec.maxDistance+ }),+ dataResultsTimeLabel(model.time),+ // End of one granule is 60 seconds behind the start of the next granule.+ // Use delta of -60.+ dataResultsConnectSwaths(model.crs, -60)+ ];+ return chain.process(results);+ };++ init();+ return self;};-export function dataHandlerVIIRSSwathNight(config, model, spec) {- return dataHandlerVIIRSSwath(config, model, {+export function dataHandlerVIIRSSwathNight(config, model) {+ var self = dataHandlerBase(config, model);++ var spec = {startTimeDelta: 0,endTimeDelta: 0,maxDistance: 270,eastZone: 0,westZone: 1440- });-};--export function dataHandlerVIIRSSwath(config, model, spec) {- var self = dataHandlerBase(config, model);+ };var init = function () {// Normal north-south extent minus a degree on each side. This removes