Writting a BIL in ASCII format

Trimble, Beheen btrimble at SFWMD.GOV
Thu Oct 12 11:36:47 PDT 2006


Frank, 

 

I can see you are all over the net helping and answering people's
questions. I really thank you for what you are doing. I wish I could be
you! Right now I am doing my master and working full time and don't have
much time to devote. I promise after I graduate (next april) I will help
you guys.

 

This is my problem/question:

 

I was surfing the web to use gdal libs to read an ESRI BIL file and
write it out in ascii format. I think the gdal_translate will do but I
am not sure which option is which! Below is the header info. If you
please fill the blank for me, if that is the way!

 

1) I am using header information to translate to ascii grid, is this
gives me an ascii file?

 

2) Not sure what to put in place of '?' below

 

gdal_translate -ot Byte -of AAIGrid -b 3 -outsize ? ? -srcwin ? ? ? ?
-projwin 510724.036 106267.487 531636.641 83405.401 -a_srs ? -a_ullr
510724.036 106267.487 531636.641 83405.401 -a_nodata -9999 -mo ? -co ?
dq0512ne.bil dq0512ne.asc

 

 

3) Give me a hint on how to associate a color file with the resulting
ascii file.

 

Thanks a lot

Beheen

 

 

======================

% gdalinfo dq0512ne.bil

 

Driver: EHdr/ESRI .hdr Labelled

Size is 1062, 1161

Coordinate System is `'

Origin = (510724.035667,106267.486836)

Pixel Size = (19.69171875,-19.69171875)

Corner Coordinates:

Upper Left  (  510724.036,  106267.487)

Lower Left  (  510724.036,   83405.401)

Upper Right (  531636.641,  106267.487)

Lower Right (  531636.641,   83405.401)

Center      (  521180.338,   94836.444)

Band 1 Block=1062x1 Type=Byte, ColorInterp=Undefined

  Overviews: 264x288, 131x143, 64x70, 31x34

Band 2 Block=1062x1 Type=Byte, ColorInterp=Undefined

  Overviews: 264x288, 131x143, 64x70, 31x34

Band 3 Block=1062x1 Type=Byte, ColorInterp=Undefined

  Overviews: 264x288, 131x143, 64x70, 31x34

=====================

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20061012/36a12d46/attachment.htm>


More information about the MapServer-users mailing list