args in NCL

From: Stefan L <kermitt_at_nyahnyahspammersnyahnyah>
Date: Thu, 11 Jan 2007 16:26:51 +0100

Hi all NCL users,

 

I wonder if anybody could help me about a problem I encounter.

I used before GrADS to map my models datas.

I try now to use NCL.

 

The problem is that I don't succeed in launching a ncl script with args.

I explain :

 

Into GrADS, I could run my GrADSscript like this :

 

Gradsnc -lbc "run /var/tmp/mapTemperatures.gs 1 0 0"

 

In the GrADS script I wrote

 

Function main(args)

 

TT850=subwrd(args,1)

TT500=subwrd(args,2)

TT700=subwrd(args,3)

 

Then

1 was affected to variable TT850

0 was affected to variable TT500 and

0 was affected to variable TT700.

 

I don't find anywhere how to do this under NCL.

 

How can I give arguments to my NCL script ?

 

Does anybody can help me ?

 

Best regards

 

Stefan

_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Jan 11 2007 - 08:26:51 MST

This archive was generated by hypermail 2.2.0 : Thu Jan 11 2007 - 10:16:54 MST