UNPKG

netcdf4-wasm

Version:

NetCDF4 library compiled to WebAssembly with TypeScript bindings

20 lines 609 B
"use strict"; // Dimension class similar to netcdf4-python Object.defineProperty(exports, "__esModule", { value: true }); exports.Dimension = void 0; class Dimension { constructor(name, size, isUnlimited = false) { this.name = name; this.size = size; this.isUnlimited = isUnlimited; } __len__() { return this.size; } toString() { const sizeStr = this.isUnlimited ? 'unlimited' : this.size.toString(); return `<netCDF4.Dimension '${this.name}': size = ${sizeStr}>`; } } exports.Dimension = Dimension; //# sourceMappingURL=dimension.js.map