Skip to content

Commit

Permalink
deploy/sit
Browse files Browse the repository at this point in the history
  • Loading branch information
jbyrne committed May 20, 2024
1 parent 3ce3f29 commit d8c5175
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions src/jpl/utils/SearchDatasets.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,14 +159,18 @@ define([
var resolutionAndCoordinateSystemObject = additionalMetadataObject.spatialExtent.horizontalSpatialDomain.resolutionAndCoordinateSystem
var relatedUrlsArray = additionalMetadataObject.relatedUrls
if (resolutionAndCoordinateSystemObject) {
var resolutionObjects = resolutionAndCoordinateSystemObject.horizontalDataResolution.genericResolutions
var resolutionObjects = resolutionAndCoordinateSystemObject.horizontalDataResolution
if (resolutionObjects) {
resolutionObjects.forEach(function(resolutionObject) {
var acrossTrack = resolutionObject.xdimension
var alongTrack = resolutionObject.ydimension
var unit = resolutionObject.unit
datasetObject["Dataset-Resolution"].push({"Dataset-AcrossTrackResolution": acrossTrack, "Dataset-AlongTrackResolution": alongTrack, "Unit": unit})
});
if(resolutionObjects.genericResolutions) {
resolutionObjects.genericResolutions.forEach(function(resolutionObject) {
var acrossTrack = resolutionObject.xdimension
var alongTrack = resolutionObject.ydimension
var unit = resolutionObject.unit
datasetObject["Dataset-Resolution"].push({"Dataset-AcrossTrackResolution": acrossTrack, "Dataset-AlongTrackResolution": alongTrack, "Unit": unit})
});
} else {
datasetObject["Dataset-Resolution"].push({"error": "Not Available"})
}
} else {
// Resolution not available by error
datasetObject["Dataset-Resolution"].push({"error": "Not Available"})
Expand Down

0 comments on commit d8c5175

Please sign in to comment.