[Thread Prev][Thread Next][Index]

Re: [ferret_users] Re: whether any provision is available to use shell commands, with ferret



Hi Ashkay,

Yes, nesting grave accents is tricky. You probably need to break things
up into a few steps

I would define a symbol first for  "variable" first and then define your
new anomaly variable. I presume "variable" is a string variable.

def symbol var `variable[d=2]`
let/units="`($var),RETURN=units`"/TITLE="`anomaly_title`"/`anomaly_var`=($var)_anomaly

Cheers,
Russ


On Tue, 2013-03-05 at 16:15 +1100, Akshay Hegde wrote:
> do you have any idea about this
> 
> LET/units="``variable`[d=2],RETURN=units`"/TITLE="`anomaly_title`"
> `anomaly_var` = `variable`_anomaly
> 
> unable to get units here,,, grave accents..problem
> 
> 
> please help..
> 
> 
> Thanks in advance,,
> 
> Akshay
> 
> On Mon, Jan 7, 2013 at 12:57 PM, Akshay Hegde <akshay.k.hegde@xxxxxxxxx> wrote:
> >
> > Whether its possible to use shell commands in ferret...something like
> > this...
> > because modifying many files kills time, if its possible something like this
> > using for loop, it will be helpful..
> >
> >
> > sp for file in *.nc; do ! not working...
> >
> > use $file
> >
> > !do some operation say
> >
> > let/units="meter"/title="my title" myvariable1 = xyz_new1
> >
> > let/units="cm"/title="my title" myvariable2 = xyz_new2
> >
> > list/file=$file_modifile.nc/format=cdf/clobber xyz_new1, xyz_new2
> > done
> >
> >
> > Awaiting for reply...
> >
> >
> >
> > - Akshay




[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce / NOAA / OAR / PMEL / Ferret

Privacy Policy | Disclaimer | Accessibility Statement