Hi everybody,
 
I recently wrote a GX that involves several GridTrnd() and GridWind(); operations. My problem that I would like to find a solution to is that the GX involes several(on the order of 100) iterations of GridTrnd_IMU(), GridBool_IMU(), GridWind_IMU(); etc. Each iteration is performed in a loop structure. The GX takes a long time in GX terms(on the order of 45sec-2min) even for a small input grid. I'm just wondering if anybody can give a idea on how I could speed things up.
 
I'm creating IMG objects for the grids I'm using. I tried creating the IMG objects in memory(i.e. with CreateMem_IMG) but then when I used GridBool to combine IMG1 and IMG2(where both IMG's are created in memory) into a resultant "temp" grid, "temp.grd" was empty. Am I not using the CreateMem() function properly?
 
I think the biggest problem slowing me down is that some of these functions seem to have their own progress bar built internally into the function. Is there any way  I can overide this or eliminate the progess bar. I tried doing it by SetInteractive_SYS(0) and Progress_SYS(0) but I haven't got this to work.
 
 
I also found I have to create and destroy some IMG objects in each loop. I've found that if I create an IMG object, IMG1(where IMG1 is READWRITE and is  tied to a grid named "out.grd") and then use,
 
 GridWind_IMU(IMG1, "out.grd", IMU_WIND_GRID, rMin, rMax, ...)
 
I get an error message that out.grd cannot be accessed. Am I not doing something right here?
 
Aaron Balasch
Sky Hunter Technologies Inc.
Suite 101, 1725 10th Avenue S.W.
Calgary, Alberta T3C 0K1
email: [EMAIL PROTECTED]
phone: 403-228-2175
fax: 403-244-7955

Reply via email to