1.0.4 • Published 3 years ago
sentinelhub v1.0.4
SENTINEL HUB
package to access sentinel open data by Sentinel HUB
INSTALLATION
npm install --save sentinelhub
or
yarn install sentinelhub
USAGE
Get Authorization Token
You must create OAuth Client by Sentinel HUB Dashboard
const sentinelhub = require('sentinelhub');
sentinelHUB.getToken(clientID, clientSecret, (err, token) => {
....
});
Get Blob Satellite's Image
const sentinelhub = require('sentinelhub');
const options = {
token: <YOUR OAUTH TOKEN>,
evalscript: <custom evalscript v3>,
bbox: [13,45,15,47],
fromUTC: '2019-04-01T00:00:00Z',
toUTC: '2019-06-30T00:00:00Z',
width: 512,
height: 512
};
sentinelAPI.runProcess(options, (err, blob_image) => {
});