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

Home » Public Forums » archive » connecting to a server to retrieve data (optimizing)
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: connecting to a server to retrieve data (optimizing) [message #41941 is a reply to message #41806] Mon, 29 November 2004 15:16 Go to previous messageGo to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
nunoragil@yahoo.com (Nuno Gil) writes:
> Craig,
> I'm having some problems writing the image.
> If you try this link it will download a 16-bit signed Integer tiff
> image with 2816 KB:
> http://iceds.ge.ucl.ac.uk/cgi-bin/wcs?REQUEST=GetCoverage&am p;COVERAGE=srtm&SERVICE=WCS&map=wcs.map&BBOX=46, -25,47,-24&FORMAT=GEOTIFFINT16&CRS=EPSG:4326&RES X=0.00083333&RESY=0.00083333
>
> However, if trying to get it via IDL with:
> img=INTARR(1200,1200)
> READU, in, img
> WRITEU,out,img
> I can only get a 2813 KB file and cannot open it properly.
> 1200x1200 are the number of pixels of the image.
> By the way, if I declare the array bigger than this (lets say
> 2001x2001) the READU issues an "End of file encountered" error.

What if you read the image in smaller chunks instead of reading it all
at once?

Craig

--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@REMOVEcow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Online Marketing
Next Topic: Compilation error with code from ENVI Help

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

Current Time: Fri Oct 10 10:35:25 PDT 2025

Total time taken to generate the page: 0.55917 seconds