Remapping script for NetCDF files This script will remap a variable or variables of a NetCDF file to a `INT8` or `UINT8` datatype. This script allows discrete data to be used for voxel layers in ArcGIS. If a discrete variable has a datatype larger than a byte, the data will automatically be wrapped. To control the mapping of values (aka codes) to a value within the range of a byte datatype, this script was created. A brief summary of the item is not available. Add a brief summary about the item.
Code sample
by
Item created: Apr 14, 2022 Item updated: Nov 28, 2023 Number of downloads: 76
Description
NC-remap
Remapping script for NetCDF files
This script will remap a variable or variables of a NetCDF file to a `INT8` or `UINT8` datatype. This script allows discrete data to be used for voxel layers in ArcGIS. If a discrete variable has a datatype larger than a byte, the data will automatically be wrapped. To control the mapping of values (aka codes) to a value within the range of a byte datatype, and special values (such as fill value) must also be mapped in the same manner.
See the README in the archive for more info.
Parameters
Input NC File - The input NetCDF file to remap. This tool does *not* overwrite this input file. It is open in read only mode.
Input Map JSON File - A JSON file that will map the variables and their codes to another value. All codes must be set, unless lenient option is used. See below for the structure.
Output NC File - The location to store the output. Should be in form of `myFile.nc`
*The lenient Flag allows the user to have more leniency in their JSON map. This is for users who are okay with automatic wrapping of values in their source data or automatic wrapping of their codes if the codes exist outside the range of the `uint8`/`int8` datatypes. It is recommended to clearly define all codes in the JSON map.
An in-depth description of the item is not available.
Layers
Tools
Tables
Basemap
Project Contents:
Solution Contents
Contents
Layers
Screenshots
Terms of Use
No special restrictions or limitations on using the item's content have been provided.
Details
Dashboard views: Desktop
Source:
Creating data in:
Published as:
Other Views:
Dependent items in the recycle bin
Applicable: 2d
Size: 7.609 KB
ID: 282a2480623d4419928bb1aec550b3ad
Image Count: 0
Image Properties
Layer Drawing
Using tiles from a cache
Dynamically from data
Share
Owner
Folder
Categories
This item has not been categorized.
Comments (0)