Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Environment reference

Runtime configuration is done with environment variables. Set them before launching ncv.

VariableValuesDefaultPurpose
NCVIEW_THREADSintegermin(CPUs, 8)Parallel rasterization threads (RAYON_NUM_THREADS is also honored). The conservative default avoids hogging HPC head-node resources.
NCVIEW_IMAGE_PROTOCOLkitty, sixel, iterm2, cellsauto-detectedOverride graphics capability detection. Auto-detection identifies iTerm2 from environment hints; Kitty and Sixel are selected only through this override or a positive capability match. An explicit setting is honored as given.
NCVIEW_SCIENTIFIC_RENDERING1 / 01 (locked)Keep nearest-neighbor scientific rendering, or allow interpolation (0).
NCVIEW_IMAGE_FILTERnearest, lanczos3, catmull-rom, triangle, gaussiannearestImage filter when scientific rendering is unlocked.
NCVIEW_CELL_PIXEL_SIZEWxH pixels, e.g. 10x20from the terminalTerminal cell size used to size graphics images and map mouse clicks. Set it when the terminal does not report usable pixel dimensions (common over SSH); known 640x480 placeholders and reports under 4x8 pixels per cell are ignored, and 10x20 is assumed.
NCVIEW_ANONYMOUS_ACCESStruthy (1, true, yes, on, y)autoForce credential-free access for public S3/GCS/Azure objects. Any other value, including 0, leaves the automatic decision in charge rather than forcing signed access. Auto mode uses ambient credentials if present, otherwise a cached metadata-endpoint probe, and selects anonymous access when neither yields credentials.
NCVIEW_LAND_DETAIL110m, 50m, 10m, auto110mCoastline resolution after enabling the b backdrop; auto selects by zoom level.
NCVIEW_UG_INTERMEDIATE_SPACING_DEGdegrees, 0 < x <= 900.25Cell size of the regular latitude/longitude grid that unstructured-grid fields (currently MPAS) are regridded onto. Smaller values sharpen the map but cost more per read.
NCVIEW_COLORMAPSdirectory—Extra directory of .ncmap files for the palette catalog.
NCVIEW_LIB_DIRdirectory—Also searched for colormaps, including share/ncview/colormaps.
NCVIEWBASEdirectory—Also searched for colormaps, including share/ncview/colormaps.
NCVIEW_EXPORT_DIRdirectorycurrent directoryWhere e writes exports.
NCVIEW_EXPORT_BACKGROUNDtransparent, whitetransparentExport canvas background.
NCVIEW_EXPORT_TEXTdark, lightdarkExport text/border color (light for dark slides).
NCVIEW_EXPORT_FONTfont listFira Code, monospaceSVG export font selection (PNG always uses the embedded font).
NCVIEW_SESSION_DIRdirectoryplatform defaultWhere per-dataset session state is stored.

Notes

  • Secrets are never read from arguments; cloud credentials come from ambient provider configuration (AWS_*, GOOGLE_*, AZURE_*).
  • NCVIEW_IMAGE_FILTER and i-cycling only take effect when NCVIEW_SCIENTIFIC_RENDERING=0; the default preserves exact scientific cells.
  • Malformed .ncmap files discovered via any colormap path are ignored at startup rather than causing an error.