From: Elinor Martin <emartin_at_nyahnyahspammersnyahnyah>
Date: Tue Nov 01 2011 - 12:29:52 MDT

I am running into problems using landsea_mask. The simple script and errors are shown below. I am using version 5.2.1

load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl"

a = addfile("$NCARG_ROOT/lib/ncarg/data/cdf/landsea/nc", "r")
lsdata = a-> LSMASK

nlat = 128
lat = latGau(nlat, "lat","latitude","degrees_north")

lsm = landsea_mask(lsdata,lat,lon)

+ lsm = landsea_mask(lsdata,lat,lon)
fatal:Conditional statements (if and do while) require SCALAR logical values, see all and any functions
fatal:Execute: Error occurred at or near line 2417 in file $NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl

fatal:Execute: Error occurred at or near line 13 in file TEST.ncl

Elinor Martin
Post Doctoral Research Associate
Department of Earth and Atmospheric Sciences
University at Albany, SUNY

ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
Received on Tue Nov 1 12:29:59 2011

This archive was generated by hypermail 2.1.8 : Fri Nov 04 2011 - 08:43:41 MDT