Skip to content

Commit

Permalink
Merge branch 'develop' into release/4.17.2
Browse files Browse the repository at this point in the history
# Conflicts:
#	package-lock.json
#	package.json
  • Loading branch information
James Wood authored and James Wood committed May 21, 2024
2 parents 96c9368 + 9cc76da commit a79d12d
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions src/jpl/utils/SearchDatasets.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,16 +159,20 @@ 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
// Resolution not available by error.
datasetObject["Dataset-Resolution"].push({"error": "Not Available"})
}
} else {
Expand Down

0 comments on commit a79d12d

Please sign in to comment.