From 2b164ea6335d958313be4f62c18501ab00c25252 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Fri, 3 Jul 2020 16:10:36 +0100 Subject: [PATCH] identify: fix actual size --- src/Subcommands/identify/index.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Subcommands/identify/index.mjs b/src/Subcommands/identify/index.mjs index 5071a4b..5ede5e7 100644 --- a/src/Subcommands/identify/index.mjs +++ b/src/Subcommands/identify/index.mjs @@ -8,7 +8,7 @@ import Terrain50 from 'terrain50'; function summarise_obj(obj) { console.log(`Format: ASC`); console.log(`Claimed size: ${obj.meta.ncols}x${obj.meta.nrows}`); - console.log(`Actual size: ${obj.data.length}x${obj.data[0].length}`); + console.log(`Actual size: ${obj.data[0].length}x${obj.data.length}`); console.log(`Lower-left corner: (${obj.meta.xllcorner}, ${obj.meta.yllcorner})`); console.log(`Cell size: ${obj.meta.cellsize}`); if(typeof obj.meta.NODATA_value !== "undefined")