Analogous to a GeoTIFF file format, but in PNG form for easier editing. Single variable. Part of Geospatiale III.
Methods
(static) applyArealClamping(arg0_options) → {Float64Array}
Applies areal scaling or non-linear constraint clamping to a raster surface. Supports linear proportional scaling as well as variance-preserving logit adjustments.
Parameters:
| Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
arg0_options |
Object
|
|
Returns:
- Type:
-
Float64Array
Clamped pixel data.
(static) convertToGeoJSON(arg0_file_path, arg1_file_path, arg2_optionsopt)
Transforms a PNG raster map to GeoJSON MultiPolygons, ignoring specified colours.
Parameters:
| Name | Type | Attributes | Description | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
arg0_file_path |
string
|
||||||||||
arg1_file_path |
string
|
||||||||||
arg2_options |
Object
|
<optional> |
|
(static) dasymetricBlur(arg0_optionsopt)
Dasymetrically blurs border regions where ushc regions are artificial/statistical artefacts.
Parameters:
| Name | Type | Attributes | Description | |||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
arg0_options |
Object
|
<optional> |
|
(static) dasymetricBlurTimeseries(arg0_options) → {Promise.<void>}
Blurs artificial administrative boundaries into smooth spatial population gradients across a timeseries sequence in parallel.
Parameters:
| Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
arg0_options |
Object
|
|
Returns:
- Type:
-
Promise.<void>
(static) dasymetricCohortScale(arg0_options) → {Promise.<void>}
Proportionally redistributes multiple demographic/economic cohort rasters to reconcile with an anchor population raster. Supports national fallback injection for coastline and spatial boundary mismatches.
Parameters:
| Name | Type | Description | ||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
arg0_options |
Object
|
|
Returns:
- Type:
-
Promise.<void>
(static) dasymetricScale(arg0_options) → {Float64Array}
Scales an auxiliary surface to match target regional aggregates per spatial zone. Formula: V_i_new = V_i * (T_target / sum(V_k)).
Parameters:
| Name | Type | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
arg0_options |
Object
|
|
Returns:
- Type:
-
Float64Array
Dasymetrically scaled pixel buffer.
(static) executeParallelRaster(arg0_options) → {Promise.<Float64Array>}
Executes a raster calculation over a 2D domain in parallel using WebGL GPU shaders if available, or chunked multi-threaded asynchronous processing with cooperative yielding.
Parameters:
| Name | Type | Description | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
arg0_options |
Object
|
|
Returns:
- Type:
-
Promise.<Float64Array>
Resulting pixel data buffer.
(static) executeWorkerTask(arg0_task, arg1_optionsopt) → {Promise.<any>}
Dispatches a single task to the next available worker in the pool.
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
arg0_task |
Object
|
||
arg1_options |
Object
|
<optional> |
Returns:
- Type:
-
Promise.<any>
(static) generateDeltaSeries(arg0_output_folder_path, arg1_optionsopt) → {Promise.<void>}
Generates a delta series for a specific timeseries, used for later covariates.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
arg0_output_folder_path |
string
|
||||||||||||||||||||||
arg1_options |
Object
|
<optional> |
|
Returns:
- Type:
-
Promise.<void>
(static) getCoastalWaterMask(arg0_land_area, arg1_buffer_distanceopt, arg2_optionsopt) → {Uint8Array}
Generates or retrieves from cache a boolean mask of continental coastal water cells. Water cells (land_area === 0) within buffer_distance of continental land (land_area > 0) are marked as 1, while open ocean island nations and interior water remain 0.
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
arg0_land_area |
Object
|
string
|
Land area raster object or file path. |
||
arg1_buffer_distance |
number
|
<optional> |
5 |
Coastal buffer radius in pixels. |
arg2_options |
Object
|
<optional> |
Returns:
- Type:
-
Uint8Array
(static) getImageSum(arg0_file_pathopt, arg1_optionsopt) → {number}
Fetches the total sum of all int/float values within an image.
Parameters:
| Name | Type | Attributes | Description | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
arg0_file_path |
string
|
Object
|
<optional> |
The file path to the image or loaded raster image object. |
||||||||||
arg1_options |
Object
|
<optional> |
|
Returns:
- Type:
-
number
(static) getLandwardBufferMask()
Alias for backwards compatibility.
(static) getPolygonCentroid(arg0_pixels) → {Array.<number>|null}
Returns the centroid of a given polygon, given its pixels.
Parameters:
| Name | Type | Description |
|---|---|---|
arg0_pixels |
Array.<Array.<number>>
|
Returns:
- Type:
-
Array.<number>|null
(static) getRGBAFromPixel(arg0_image_object, arg1_index, arg2_optionsopt) → {Array.<number>}
Fetches the RGBA value of a pixel based on its index.
Parameters:
| Name | Type | Attributes | Description | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
arg0_image_object |
Object
|
string
|
Image object or file path. |
|||||||||||
arg1_index |
number
|
Pixel index. |
|||||||||||
arg2_options |
Object
|
<optional> |
|
Returns:
- Type:
-
Array.<number>
(static) getRasterNeighbourAverage(arg0_geopng_array, arg1_x, arg2_y, arg3_height, arg4_width) → {number}
Returns the average (assuming a number-formatted GeoPNG) of the Moore neighbourhood surrounding a pixel.
Parameters:
| Name | Type | Description |
|---|---|---|
arg0_geopng_array |
Array.<number>
|
|
arg1_x |
number
|
|
arg2_y |
number
|
|
arg3_height |
number
|
|
arg4_width |
number
|
Returns:
- Type:
-
number
(static) getWorkerPool(arg0_optionsopt) → {Array.<Worker>}
Initialises and retrieves the persistent worker thread pool for geoprocessing.
Parameters:
| Name | Type | Attributes | Description | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
arg0_options |
Object
|
<optional> |
|
Returns:
- Type:
-
Array.<Worker>
(static) indexArealMasks(arg0_options) → {Object}
Pre-indexes pixel indices and calculates total land area for each partition defined in areal_masks. Caches spatial topology to avoid redundant O(N) pixel loops across multi-year timeseries.
Parameters:
| Name | Type | Description | |||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
arg0_options |
Object
|
|
Returns:
- Type:
-
Object
{ mask_areas: Object, mask_pixel_indices: Object, total_pixels: number, width: number, height: number }
(static) kNNBin(arg0_input_path, arg1_output_path, arg2_optionsopt)
Robustly eliminates specific colours by binning them to the nearest available non-binned colour.
Parameters:
| Name | Type | Attributes | Description | |||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
arg0_input_path |
string
|
|||||||||||||||||||||||||||
arg1_output_path |
string
|
|||||||||||||||||||||||||||
arg2_options |
Object
|
<optional> |
|
(static) linearInterpolation(arg0_from_file_path, arg1_to_file_path, arg2_output_file_path, arg3_optionsopt) → {Object}
Interpolates between two number raster images based on a fraction.
Parameters:
| Name | Type | Attributes | Description | |||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
arg0_from_file_path |
string
|
Object
|
|||||||||||||||||||||||||||||||||||||||||||||||
arg1_to_file_path |
string
|
Object
|
|||||||||||||||||||||||||||||||||||||||||||||||
arg2_output_file_path |
string
|
|||||||||||||||||||||||||||||||||||||||||||||||
arg3_options |
Object
|
<optional> |
|
Returns:
- Type:
-
Object
(static) loadImage(arg0_file_path, arg1_optionsopt) → {Object}
Loads an image into the assigned variable.
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
arg0_file_path |
String
|
Input PNG file path. |
|
arg1_options |
Object
|
<optional> |
Returns:
- Type:
-
Object
(static) loadNumberFromPixel(arg0_image_object, arg1_index, arg2_optionsopt) → {number}
Loads an int or float value from a pixel based on its index.
Parameters:
| Name | Type | Attributes | Description | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
arg0_image_object |
Object
|
string
|
Image object or file path. |
|||||||||||
arg1_index |
number
|
Pixel index. |
|||||||||||
arg2_options |
Object
|
<optional> |
|
Returns:
- Type:
-
number
(static) loadNumberRasterImage(arg0_file_path, arg1_optionsopt) → {Object|Object}
Loads a number raster image into the assigned variable.
Parameters:
| Name | Type | Attributes | Description | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
arg0_file_path |
string
|
Object
|
The file path to load or image object. |
|||||||||||
arg1_options |
Object
|
<optional> |
|
(static) loadNumberRasterImageAsync(arg0_file_path, arg1_optionsopt) → {Promise.<{width: number, height: number, data: Float64Array}>}
Asynchronously loads a number raster image from a PNG file without blocking the event loop.
Parameters:
| Name | Type | Attributes | Description | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
arg0_file_path |
string
|
Object
|
File path or already-parsed raster object. |
|||||||||||
arg1_options |
Object
|
<optional> |
|
Returns:
- Type:
-
Promise.<{width: number, height: number, data: Float64Array}>
(static) operateNumberRasterImage(arg0_optionsopt)
Runs an operation on a raster image for a file.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
arg0_options |
Object
|
<optional> |
|
(static) processArealTimeseries(arg0_options) → {Promise.<void>}
Concurrently processes a timeseries of rasters with areal constraint clamping.
Parameters:
| Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
arg0_options |
Object
|
|
Returns:
- Type:
-
Promise.<void>
(static) processTimeseriesParallel(arg0_options) → {Promise.<Array.<any>>}
Concurrently processes an array of timeseries steps (e.g. years) with true multithreading / multiprocessing.
Parameters:
| Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
arg0_options |
Object
|
|
(static) regulariseLogTail(arg0_options) → {Float64Array|Object}
Applies C1-continuous log-tail regularisation and robust IQR outlier management to a raster surface. Prevents explosive statistical boundaries while preserving local variance.
Parameters:
| Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
arg0_options |
Object
|
|
Returns:
- Type:
-
Float64Array|Object
Regularised pixel data buffer or metadata object if return_metadata is true.
(static) saveNumberRasterImage(arg0_optionsopt)
Saves a number raster image to a file.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
arg0_options |
Object
|
<optional> |
|
(static) saveNumberRasterImageAsync(arg0_options) → {Promise.<{width: number, height: number, data: Buffer}>}
Asynchronously encodes and writes a number raster image to disk.
Parameters:
| Name | Type | Description | |||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
arg0_options |
Object
|
|
Returns:
- Type:
-
Promise.<{width: number, height: number, data: Buffer}>
(static) saveNumberToPixel(arg0_image_object, arg1_index, arg2_number, arg3_optionsopt) → {Array.<number>}
Saves an int/float value to a pixel based on the corresponding index.
Parameters:
| Name | Type | Attributes | Description | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
arg0_image_object |
string
|
Object
|
The image object to use. |
|||||||||||
arg1_index |
number
|
The index of the pixel to save the number to. |
|||||||||||
arg2_number |
number
|
string
|
The number to save to the pixel. |
|||||||||||
arg3_options |
Object
|
string
|
<optional> |
Options object or format string ('int32', 'float32', 'greyscale').
|
Returns:
- Type:
-
Array.<number>
(static) savePercentageRasterImage(arg0_input_file_path, arg1_output_file_path, arg2_optionsopt) → {Object}
Saves a percentage raster image to a file based on a number raster image.
Parameters:
| Name | Type | Attributes | Description | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
arg0_input_file_path |
string
|
The file path to the number raster image to save the percentage raster image from. |
|||||||||||
arg1_output_file_path |
string
|
The file path to save the percentage raster image to. |
|||||||||||
arg2_options |
Object
|
<optional> |
|
Returns:
- Type:
-
Object
(static) shatter(arg0_input_prefix, arg1_output_prefix, arg2_optionsopt) → {Promise.<(Object|undefined)>}
Shatters a temporal series of rasters into a combined unique areal mask raster and records its historical lineage.
Parameters:
| Name | Type | Attributes | Description | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
arg0_input_prefix |
string
|
The path prefix of the input PNG files (e.g. "path/to/gini_"). |
|||||||||||
arg1_output_prefix |
string
|
The path prefix for output files (saves to |
|||||||||||
arg2_options |
Object
|
<optional> |
Configuration options.
|
Returns:
- Type:
-
Promise.<(Object|undefined)>
Traced lineage mapping RGBA pixel representations to chronological value paths.
(static) terminateAllWorkers()
Safely terminates all active background geoprocessing worker threads.