NCL Website header
NCL Home > Documentation > Tools

scrip_check_input

scrip_check_input tests whether the coordinates of all cells in a SCRIP input grid file are entered in counterclockwise order and also tests whether the cell centers are in the interior or on the boundary of the cells.

This tool was added in version 5.0.0.

Synopsis

  scrip_check_input input_file 

Description

scrip_check_input takes as its single argument the name of a NetCDF-formatted file that is to be used as an input file for the SCRIP (Spherical Coordinate Remapping and Interpolation) package. This script tests whether the coordinates of all cells in the input file are entered in counterclockwise order and also tests whether the cell centers are in the interior or on the boundary of the cells. See the SCRIP document for details on the formatting of the input files.

If incorrect conditions are encountered, the indices of the offending cells are printed. If no incorrectly entered cells are encountered a message is issued to that effect.