New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@fourscore/copernicus

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fourscore/copernicus

## Overview

latest
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

Copernicus SDK

Overview

Login

import { login } from '@fourscore/copernicus';

const username = "someusername";
const password = "somepassword";
const accessToken = await login(username, password);

Process API

import { SentinelHub } from '@fourscore/copernicus';

const evalscript = `
  //VERSION=3
  function setup() {
    return {
      input: ["B02", "B03", "B04"],
      output: {
        bands: 3,
        sampleType: "AUTO",
      },
    }
  }

  function evaluatePixel(sample) {
    return [2.5 * sample.B04, 2.5 * sample.B03, 2.5 * sample.B02]
  }
`;

const request: SentinelHub.ProcessRequest = {
  input: {
    bounds: {
      properties: {
        crs: "http://www.opengis.net/def/crs/OGC/1.3/CRS84",
      },
      bbox: [
        13.822174072265625,
        45.85080395917834,
        14.55963134765625,
        46.29191774991382,
      ],
    },
    data: [
      {
        type: "sentinel-2-l2a",
        dataFilter: {
          timeRange: {
            from: "2022-10-01T00:00:00Z",
            to: "2022-10-31T00:00:00Z",
          },
        },
      },
    ],
  },
  output: {
    width: 512,
    height: 512,
    responses: [
      {
        identifier: "default",
        format: {
          type: "image/png",
        },
      },
    ],
  },
  evalscript,
};

const imgBytes: Uint8Array = await SentinelHub.process(
  request,
  accessToken,
);

FAQs

Package last updated on 16 Nov 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts