Re: copy_VarCoords

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Fri Feb 25 2011 - 08:30:40 MST

On Feb 24, 2011, at 10:15 PM, gibies george wrote:

> Here is some part of my ncl script.
> ..........................
> .........................
> ..........................
> ssn = vector
> copy_VarCoords(vector,ssn)
> ..........................
> .........................
> .........................
> Which lead to the following error.
>
> fatal:Execute: Error occurred at or near line 192 in file $NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl
>
> fatal:Execute: Error occurred at or near line 3254 in file multipps.ncl
>
> Can anybody tell the reason?

There's not enough information here. Is this the full error message? What version of NCL do you have (ncl -V)?

Doing this:

   ssn = vector

makes it unnecessary to call copy_VarCoords, because this a a full variable-to-variable copy. UNLESS, "ssn"
already existed before that, then there might be some cases where the metadata doesn't get copied.

Are you sure it's the above two lines that caused the problem? If so, you should print out information about the
variables to see if there's anything wrong with them:

  printVarSummary(ssn)
  printVarSummary(vector)

Please try to do some debugging on your own to figure out the problem. "printVarSummary" can be very useful for this.

--Mary

>
>
>
> --
> Gibies George, CSIR-RF,
> Climate and Global Modelling Division,
> Indian Institute of Tropical Meteorology,
> Dr. Homi Bhabha Road,
> NCL (P. O.), Pashan,
> Pune 411008, India.
>
> http://sites.google.com/site/gibiesge/
>
> Think about the environment. Save paper; Save Trees. Please don't print this e-mail unless it is necessary.
> _______________________________________________
> 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 Fri Feb 25 08:30:47 2011

This archive was generated by hypermail 2.1.8 : Fri Feb 25 2011 - 08:50:46 MST