comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: ENVI_CONVERT_FILE_MAP_PROJECTION processing times
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: ENVI_CONVERT_FILE_MAP_PROJECTION processing times [message #77558 is a reply to message #77490] Wed, 07 September 2011 19:07 Go to previous message
Martin Landsfeld is currently offline  Martin Landsfeld
Messages: 2
Registered: September 2011
Junior Member
On Sep 3, 5:35 am, "devin.wh...@gmail.com" <devin.wh...@gmail.com>
wrote:

>
> The main issue I see with your code is the DIMS keyword usage and your
> lack of the GRID keyword.  Your call should look like this:
>
> ENVI_CONVERT_FILE_MAP_PROJECTION, fid=gcov_fid, $
>    pos=pos, dims=dims, o_proj=srtm_proj, $
>    o_pixel_size=srtm_pix_size, $
>    out_name=out_name, warp_method=2, $
>    resampling=2, background=0, $
>    grid=[50,50]
>
> You can't rely on the API to know that it only needs the first five
> elements of whatever array you pass it.  Some routines do check to
> make sure the DIMS array has only five elements.  The next time you
> run interactive reprojection with Triangulation, note the number of
> grid points it uses in X and Y and supply those to your call.  I
> *think* the interactive defaults are [50,50], but I don't recall what
> the API defaults are.  If they are higher than that, it would go a
> long way towards explaining the increased processing time (denser grid
> = longer processing time).  FYI:  WARP_METHOD=3 will always give you
> the best results, but it is definitely the slowest option.
>

Thanks Devin,

It turns out that the grid parameter is crucial to the processing
times I was getting. The grid default for the API is 25x25, whereas
the default for ENVI batch is 10x10. On my smallest test case,
10000x10000 pixels, I ran the following tests:

grid=[10,10], time = 176 sec
grid=[15,15], time = 55 sec
grid=[20,20], time = 18 sec
grid=[50,50], time = 5 sec

Obviously the 10 pixel spacing default of control points for the
warping is too fine for large files!
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Direct vs Function Graphics Contour Plots
Next Topic: Contour Plot with Handful of Colors

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 20:10:46 PDT 2025

Total time taken to generate the page: 0.00359 seconds