Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
daymet-single-pixel-client
Advanced tools
Client API to DAYMET's Single Pixel Extraction web service
Client API to DAYMET's Single Pixel Extraction Tool web service
https://daymet.ornl.gov/single-pixel-tool-guide
var Daymet = require("daymet-single-pixel-client");
// Depending on your environment:
require("es6-promise").polyfill();
require("cross-fetch/polyfill");
// Daymet does not allow cross-origin requests. If your code runs in a
// browser, then you can use this to use a CORS proxy:
// Daymet.Gateway.init({ url: 'https://your-proxy-here.com/single-pixel' });
var options = {
end: new Date(946904400000), // 2000-01-03
start: new Date(946731600000), // 2000-01-01
vars: ["tmin", "tmax", "dayl", "prcp", "swe"]
};
var format = "json";
var lat = 47; // In WGS84 datum.
var lon = -122;
Daymet.Api.getApiData(lat, lon, format, options).then(response => {
console.log(JSON.stringify(response.data, null, 2));
});
Output from the demo code above:
{
"loc": [
47,
-122
],
"Elevation": "476 m",
"citation": "Thornton; P.E.; M.M. Thornton; B.W. Mayer; Y. Wei; R. Devarakonda; R.S. Vose; and R.B. Cook. 2016. Daymet: Daily Surface Weather Data on a 1-km Grid for North America; Version 3. ORNL DAAC; Oak Ridge; Tennessee; USA. http://dx.doi.org/10.3334/ORNLDAAC/1328",
"LCC": [
-1580107.11,
686640.75
],
"Tile": "12269",
"data": {
"tmin (deg c)": [
0,
-0.5,
-1.5
],
"prcp (mm/day)": [
11,
4,
11
],
"dayl (s)": [
30067.19921875,
30412.80078125,
30412.80078125
],
"tmax (deg c)": [
4,
3,
3.5
],
"year": [
2000,
2000,
2000
],
"yday": [
1,
2,
3
],
"swe (kg/m^2)": [
0,
0,
0
]
}
}
FAQs
Client API to DAYMET's Single Pixel Extraction web service
The npm package daymet-single-pixel-client receives a total of 0 weekly downloads. As such, daymet-single-pixel-client popularity was classified as not popular.
We found that daymet-single-pixel-client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.