Skip to content

Commit

Permalink
remove .js in effort to skip eslint, quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
bacalj committed Jul 20, 2024
1 parent 6272b78 commit 4076de6
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,17 @@
* We will use the parent record for selection by CODAP Users, and the
* subordinate records for addressing NOAA datasets.
*/
const fs = require('fs');
const console = require('console');
const process = require('process');
const fs = require("fs");
const console = require("console");
const process = require("process");

const kDeltaSq = 0.0001; // distance in degrees within which two stations are considered the same.

console.error("HELLO?");

function configure() {
let configuration = {};
configuration.progName = process.argv[1].replace(/.*\//, '');
configuration.progName = process.argv[1].replace(/.*\//, "");
let isdStationsFile = process.argv[2];
if (!(isdStationsFile && fs.existsSync(isdStationsFile) ) ) {
usage(configuration);
Expand All @@ -43,7 +43,7 @@ function configure() {

let ghcndStationsFile = process.argv[3];
if (ghcndStationsFile && !fs.existsSync(ghcndStationsFile)) {
printErrorAndExit(`${configuration.progName}: File doesn't exist: ${ghcndStationsFile}`);
printErrorAndExit(`${configuration.progName}: File doesn not exist: ${ghcndStationsFile}`);
}
configuration.ghcndStationsFile = ghcndStationsFile;
return configuration;
Expand Down Expand Up @@ -298,7 +298,7 @@ function main() {
try {
// 1 Read ISD Stations File
const isdStationsFilePath = configuration.isdStationsFile;
const isdStationsRawText = fs.readFileSync(isdStationsFilePath, 'utf8');
const isdStationsRawText = fs.readFileSync(isdStationsFilePath, "utf8");
const isdStations = JSON.parse(isdStationsRawText);
console.error(`1 ISD ARE READ: total: ${isdStations.length} ISD stations.`);

Expand All @@ -315,7 +315,7 @@ function main() {
if (configuration.ghcndStationsFile) {
// Read GHCND Stations File
const ghcndStationsFilePath = configuration.ghcndStationsFile;
const ghcndStationsRawText = fs.readFileSync(ghcndStationsFilePath, 'utf8');
const ghcndStationsRawText = fs.readFileSync(ghcndStationsFilePath, "utf8");
const ghcndStations = JSON.parse(ghcndStationsRawText);
console.error(`4 GHCND READ: total ${ghcndStations.length}`);

Expand Down

0 comments on commit 4076de6

Please sign in to comment.