[Thread Prev][Thread Next][Index]

Re: [ferret_users] how to do embedded expression inside an embedded expression with grave accent



☺ Welcome.

On Wed, Oct 10, 2018 at 10:07 PM Xiaoyu Bai <xbai1@xxxxxxxx> wrote:
repeat/range=1:7/name=aa (use file_name_`aa`.nc) is a good idea. I have a handicap that I use let files_CNRM=spawn("ls -1 /home/xbai1/Tracmip/family1/*CNRM*.nc") to identify my files before I read them in. Ferret doesn't let me to use syntax `spawn("ls -1 /home/xbai1/Tracmip/family1/*CNRM*.nc")` because grave accent has the highest priority. 😹 

Thanks a lot. 
Xiaoyu

On Wed, Oct 10, 2018 at 11:52 AM Satyesh Ghetiya <satyeshghetiya@xxxxxxxxx> wrote:
Hi,


On Wed, Oct 10, 2018 at 9:05 PM Xiaoyu Bai <xbai1@xxxxxxxx> wrote:
Hi Ghetiya,

Yes, I wan to read all the files in through the repeat loop. When you say nested loop, do you mean let datset=0; repeat/range=1:8 (let datset=`datset+1`; use `files_CNRM[X=datset]`)? It didn't work.

^ Yes, you are correct, I also encountered similar problem, it seems ferret is not taking nested definition of variable.


--
G Satyesh



--
Xiaoyu


--
G Satyesh



--
Xiaoyu


--
G Satyesh


[Thread Prev][Thread Next][Index]