Re: how to see variables and their dimensions in ncl

From: Hoffman Cheung <hoffmancheung_at_nyahnyahspammersnyahnyah>
Date: Wed Sep 15 2010 - 02:57:26 MDT

Dear Sudheer,

There are 5 arguments in your calling function:
*band_pass_latlon_time* (x(:,{latS:latN},{lonL:lonR}),srate, bpf,
wgty({latS:latN}), opt)

1. x(:,{latS:latN},{lonL:lonR})
2. srate
3. bpf
4. wgty({latS:latN})
5. opt

If you check the menu, there should be only four arguments:
http://ncl.ucar.edu/Document/Functions/Diagnostics/band_pass_latlon_time.shtml

Regards,
Hoffman

2010/9/15 Sudheer Joseph <sjo.india@gmail.com>

> Thank you Mary
> I had posted the below question to ncl-talk but I am not sure if it is
> successfully posted to the group as I did not see a copy of the mail. Can
> you please post it correctly or answer the below question??
>
>
> Dear Ncl Guru,
> I was trying to use the csm functions and trying
> to follow an example given at
>
> http://www.ncl.ucar.edu/Document/Functions/Diagnostics/band_pass_latlon_time.shtml
> As I could not locate diagnostics.ncl in
> $NCARG_ROOT/lib/ncarg/nclscripts/csm/
> I made a soft link of
> by ln -s diagnostics_cam.ncl diagnostics.ncl.
> Am I correct in doing so? is it a name difference only or the 2 files are
> really different?. if so where can I download the file?
>
>
> I was getting errors on calling function
>
> I tried the below change
> *band_pass_latlon_time* (x(:,{latS:latN},{lonL:lonR}),srate, bpf, wgty({latS:latN}), opt)
>
> but function gave an error saying it expects only 4 arguments. I had the impression that
>
> Is ncl interprets this differently??
>
>
> bpass = *band_pass_latlon_time* (x(:,{latS:latN},{lonL:lonR} \
>
>
> as below
>
> fatal:syntax error: line 21 in file bpas_xyt.ncl before or near \n
> ,srate,bpf,wgty({latS:latN}),opt)
> -----------------------------------^
>
> fatal:Variable (bpass) is undefined
> fatal:Execute: Error occurred at or near line 22 in file bpas_xyt.ncl
>
> fatal:Variable (bpass) is undefined
> fatal:Execute: Error occurred at or near line 23 in file bpas_xyt.ncl
> is "\" simply a new line character and whether a closing bracket is required for completing the definition of x??.
> ,srate, bpf, wgty({latS:latN}), opt)
>
>
>
> with best regards
>
>>
>> Sudheer
>>
>>
>> **********************************************************************************
>> Sudheer Joseph
>>
>> Scientist
>>
>> Indian National Centre for Ocean Information Services (INCOIS)
>> Ocean Valley, Post Box No# 21,
>> IDA Jeedimetla P.O.
>> Hyderabad, Ranga Reddy District - 500 055
>> Andhra Pradesh, India.
>> TEl:+91-40-23044600(R),Tel:+91-9440832534(Mobile)
>> Tel:+91-40-23886047(O),Fax:+91-40-23892910(O)
>> E-mail:sjo@rediffmail.com <E-mail%3Asjo@rediffmail.com>;
>> sudheer.joseph@yahoo.com; sjo@incois.gov.in.
>> Web- http://oppamthadathil.tripod.com
>> --------------* ---------------
>> "The ultimate measure of a man is
>> not where he stands in moments of
>> comfort and convenience, but where
>> he stands at times of challenge and
>> controversy."
>> Martin Luther King, Jr.
>> "What we have done for ourselves alone dies with us.
>> What we have done for others and the world remains and is immortal."
>> - Albert Pines
>> _______________________________________________
>> ncl-talk mailing list
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>
>>
>>
>
>
> --
> with best regards
>
> Sudheer
>
>
> **********************************************************************************
> Sudheer Joseph
>
> Scientist
>
> Indian National Centre for Ocean Information Services (INCOIS)
> Ocean Valley, Post Box No# 21,
> IDA Jeedimetla P.O.
> Hyderabad, Ranga Reddy District - 500 055
> Andhra Pradesh, India.
> TEl:+91-40-23044600(R),Tel:+91-9440832534(Mobile)
> Tel:+91-40-23886047(O),Fax:+91-40-23892910(O)
> E-mail:sjo@rediffmail.com <E-mail%3Asjo@rediffmail.com>;
> sudheer.joseph@yahoo.com; sjo@incois.gov.in.
> Web- http://oppamthadathil.tripod.com
> --------------* ---------------
> "The ultimate measure of a man is
> not where he stands in moments of
> comfort and convenience, but where
> he stands at times of challenge and
> controversy."
> Martin Luther King, Jr.
> "What we have done for ourselves alone dies with us.
> What we have done for others and the world remains and is immortal."
> - Albert Pines
>
> _______________________________________________
> 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 Sep 15 01:57:45 2010

This archive was generated by hypermail 2.1.8 : Thu Sep 16 2010 - 11:05:24 MDT