Re: landsea mask

From: Alan Brammer <abrammer_at_nyahnyahspammersnyahnyah>
Date: Wed Mar 21 2012 - 16:58:16 MDT

Hi Alex,

        Possibly really simple are you loading all the appropriate files.

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/contributed.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl"

Alan.

##############################
Alan Brammer
PhD Student,

Department of Atmospheric and Environmental Sciences,
University at Albany,
State University of New York
Albany, NY, 12222

abrammer@albany.edu

##############################

On Mar 21, 2012, at 6:43 PM, Alexander Semenov wrote:

>
> Hello,
>
> I'm using landsea mask. Yet I ran into an error:
>
> fatal:Undefined identifier: (landsea_mask) is undefined, can't continue
> fatal:Execute: Error occurred at or near line 166 in file double_sst.ncl
>
>
> That's how it is in my script: I have a variable "I_avg" - a function of lat and lon:
>
>
> a = addfile("$NCARG_ROOT/lib/ncarg/data/cdf/landsea.nc","r")
> lsm_I_avg = landsea_mask(a->LSMASK,I_avg&lat,I_avg&lon) ; read in land sea mask, and pass it and
> I_avg = mask(I_avg,lsm_I_avg.eq.0,False)
>
> --
> regards
>
> *******************************************************
> Alexander Semenov
>
> PhD Student - Research Assistant
> International Arctic Research Center
> Department of atmospheric sciences
> University of Alaska Fairbanks
>
> 930 Koyukuk dr, 408c3
> Fairbanks, AK, USA, 99775
> work phone +19074742672
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed Mar 21 16:58:37 2012

This archive was generated by hypermail 2.1.8 : Tue Mar 27 2012 - 08:50:24 MDT