Re: how to see variables and their dimensions in ncl

From: Sudheer Joseph <sjo.india_at_nyahnyahspammersnyahnyah>
Date: Wed Sep 15 2010 - 05:37:23 MDT

Thank you very much Hoffman,
I tried using function after removing area weighting parameter and it
appears it took the function but gives out the below error does it mean that
missing values in netcdf files are not acceptable ? in which case what can I
replace them with??

See http://www.ncl.ucar.edu/ for more details.
ncl 0> load "bpas_xyt.ncl"
(0) band_pass_latlon_time: currently, missing data not allowed:
nMsg=438920

with best regards,
Sudheer

On Wed, Sep 15, 2010 at 3:33 PM, Hoffman Cheung <hoffmancheung@gmail.com>wrote:

> Sudheer,
>
> I think the calling function statement in this example s mixed with that in
> band_pass_area_time, which have five arguments.
>
> http://www.ncl.ucar.edu/Document/Functions/Diagnostics/band_pass_area_time.shtml
>
> As band_pass_latlon_time only applies the filter on a grid point each time,
> it is not necessary to weigh the latitude. In other words, it should work by
> deleting the argument wgty({latS:latN}).
>
> Regards,
> Hoffman
>
> 2010/9/15 Sudheer Joseph <sjo.india@gmail.com>
>
>> Thank you Hoffman,
>> But below is a paste from the example given in the same link, if it is given in this way will it take as 4 inputs ? I am some what new to ncl,
>>
>>
>> I tried this way too and I made sure that data is read to the ncl work space correctly and the code breaks exactly at bpass.
>> Sudheer
>>
>>
>>
>> lonL = 0. ; GM ; =60 Indian Ocean
>> lonR = 360. ; ; =280 East Pacific
>>
>> srate = 1 ; daily means
>> bpf = (/20,100,201/) ; MJO ... suggested by MJO WG [WMO]
>> wgty = *latRegWgt* <http://www.ncl.ucar.edu/Document/Functions/Contributed/latRegWgt.shtml>(x&lat, "double", 0)
>> opt = False
>> ; pass in area of interest
>> bpass = *band_pass_latlon_time* (x(:,{latS:latN},{lonL:lonR} \
>> ,srate, bpf, wgty({latS:latN}), opt)
>>
>> *printVarSummary* <http://www.ncl.ucar.edu/Document/Functions/Built-in/printVarSummary.shtml>( bpass )
>>
>>
>>
>> On Wed, Sep 15, 2010 at 2:27 PM, Hoffman Cheung <hoffmancheung@gmail.com>wrote:
>>
>>> 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
>>>>
>>>>
>>>
>>
>>
>> --
>> 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
>>
>
>

-- 
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
Received on Wed Sep 15 04:37:31 2010

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