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

Home » Public Forums » archive » Re: landscan data
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: landscan data [message #46954 is a reply to message #46949] Sun, 15 January 2006 08:06 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
matthias.demuzere@geo.kuleuven.be writes:

> Is there anyone that has experience in reading the Landscan data in
> IDL? The LandScanTM Dataset comprises a worldwide population database
> compiled on a 30" X 30" latitude/longitude grid. The LandScan Dataset
> files are available in an ESRI raster binary format.
>
> Now I have all the data, but I really don=B4t succeed in reading in this
> dataset. The data includes also a header file with the following
> information:
>
> ncols 43200
> nrows 20880
> xllcorner -180
> yllcorner -90
> cellsize 0.00833333333333
> NODATA_value -9999
> byteorder LSBFIRST

I presume you tried something like this. What happened?

OpenR, lun, 'yourfile.dat', /Get_Lun, /Swap_If_Big_Endian
image = IntArr(43200L, 2088L)
ReadU, lun, image
Free_Lun, lun

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Binary file with different DATA_TYPES
Next Topic: landscan data

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

Current Time: Mon Dec 08 12:23:10 PST 2025

Total time taken to generate the page: 0.01095 seconds