I already downloaded the "bmng" data (world.200406.3x86400x43200.bin.gz) and I finished to decompress it (it takes 10 GB ).
After searching with google how to convert a binary picture to an other format without sucess , I ask you if you know an utility or a "SINGLE" command line (as t00fri ) which can do it (I hope ).
Thanks for the help
Convert Binary image (.BIN) to other image format (e.g. PNG)
Convert Binary image (.BIN) to other image format (e.g. PNG)
Motherboard: Intel D975XBX2
Processor: Intel Core2 E6700 @ 3Ghz
Ram: Corsair 2 x 1GB DDR2 PC6400
Video Card: Nvidia GeForce 8800 GTX 768MB GDDR3 384 bits PCI-Express 16x
HDD: Western Digital Raptor 150GB 10000 rpm
OS: Windows Vista Business 32 bits
Processor: Intel Core2 E6700 @ 3Ghz
Ram: Corsair 2 x 1GB DDR2 PC6400
Video Card: Nvidia GeForce 8800 GTX 768MB GDDR3 384 bits PCI-Express 16x
HDD: Western Digital Raptor 150GB 10000 rpm
OS: Windows Vista Business 32 bits
I have already got Imagemagick but it doesn't support ".bin" format:
http://www.imagemagick.org/script/formats.php
I am not sure that NetPBM recognize ".bin" images:
http://netpbm.sourceforge.net/doc/index.html#formats
http://www.imagemagick.org/script/formats.php
I am not sure that NetPBM recognize ".bin" images:
http://netpbm.sourceforge.net/doc/index.html#formats
Motherboard: Intel D975XBX2
Processor: Intel Core2 E6700 @ 3Ghz
Ram: Corsair 2 x 1GB DDR2 PC6400
Video Card: Nvidia GeForce 8800 GTX 768MB GDDR3 384 bits PCI-Express 16x
HDD: Western Digital Raptor 150GB 10000 rpm
OS: Windows Vista Business 32 bits
Processor: Intel Core2 E6700 @ 3Ghz
Ram: Corsair 2 x 1GB DDR2 PC6400
Video Card: Nvidia GeForce 8800 GTX 768MB GDDR3 384 bits PCI-Express 16x
HDD: Western Digital Raptor 150GB 10000 rpm
OS: Windows Vista Business 32 bits
- cartrite
- Posts: 1978
- Joined: 15.09.2005
- With us: 19 years 2 months
- Location: Pocono Mountains, Pennsylvania, USA Greate Grandfother from Irshava, Zakarpattia Oblast Ukraine
Fightpit wrote:
IM can open the .bin file. Rename it to .rgb and give dimensions and depth info on the command line.
Edit: It's been a while and the depth may be wrong or unnecessary.
I have already got Imagemagick but it doesn't support ".bin" format:
IM can open the .bin file. Rename it to .rgb and give dimensions and depth info on the command line.
Code: Select all
convert -size 86400x43200 -depth 8 world.200406.3x86400x43200.rgb blue-marble.png
Edit: It's been a while and the depth may be wrong or unnecessary.
VivoBook_ASUSLaptop X712JA_S712JA Intel(R) UHD Graphics 8gb ram. Intel(R) Core(TM) i5-1035G1 CPU @ 1.00GHz, 1190 Mhz, 4 Core(s), 8 Logical Processor(s) 8 GB ram. Running on Windows 11 and OpenSuse 15.4
It doesn't work with or without depth option
EDIT: I have a bug with this post and I don't know why ...
EDIT: I have a bug with this post and I don't know why ...
Last edited by Fightspit on 30.09.2006, 19:27, edited 3 times in total.
Motherboard: Intel D975XBX2
Processor: Intel Core2 E6700 @ 3Ghz
Ram: Corsair 2 x 1GB DDR2 PC6400
Video Card: Nvidia GeForce 8800 GTX 768MB GDDR3 384 bits PCI-Express 16x
HDD: Western Digital Raptor 150GB 10000 rpm
OS: Windows Vista Business 32 bits
Processor: Intel Core2 E6700 @ 3Ghz
Ram: Corsair 2 x 1GB DDR2 PC6400
Video Card: Nvidia GeForce 8800 GTX 768MB GDDR3 384 bits PCI-Express 16x
HDD: Western Digital Raptor 150GB 10000 rpm
OS: Windows Vista Business 32 bits
t00fri wrote:You need ~ > 50 GB FREE space where you started convert. IM is highly inefficient and incredibly slow for VERY big files. It's just not suited...
Wow 50 GB thanks for advise.
I do the conversion directly with my custom code, which is VERY easy and fast.
Edit: Unnecessary to aks him to test his code
Last edited by Fightspit on 01.10.2006, 15:28, edited 1 time in total.
Motherboard: Intel D975XBX2
Processor: Intel Core2 E6700 @ 3Ghz
Ram: Corsair 2 x 1GB DDR2 PC6400
Video Card: Nvidia GeForce 8800 GTX 768MB GDDR3 384 bits PCI-Express 16x
HDD: Western Digital Raptor 150GB 10000 rpm
OS: Windows Vista Business 32 bits
Processor: Intel Core2 E6700 @ 3Ghz
Ram: Corsair 2 x 1GB DDR2 PC6400
Video Card: Nvidia GeForce 8800 GTX 768MB GDDR3 384 bits PCI-Express 16x
HDD: Western Digital Raptor 150GB 10000 rpm
OS: Windows Vista Business 32 bits
- cartrite
- Posts: 1978
- Joined: 15.09.2005
- With us: 19 years 2 months
- Location: Pocono Mountains, Pennsylvania, USA Greate Grandfother from Irshava, Zakarpattia Oblast Ukraine
I just looked at my bash history and i think the - depth 8 was used. I couldn't find that exact command though. I used to get those eof errors and it was caused by not enough memory or pixel cache that a too small. IM would crash with a eof when it ran out of memory. The other reason I got them was the file was corrupted by the extraction process.
If you have the space you need to set an environment variable for IM's pixel cache. I beleive IM needed about 60 GB to process a rgb file that large.
If you have the space you need to set an environment variable for IM's pixel cache. I beleive IM needed about 60 GB to process a rgb file that large.
VivoBook_ASUSLaptop X712JA_S712JA Intel(R) UHD Graphics 8gb ram. Intel(R) Core(TM) i5-1035G1 CPU @ 1.00GHz, 1190 Mhz, 4 Core(s), 8 Logical Processor(s) 8 GB ram. Running on Windows 11 and OpenSuse 15.4
If you have access to Photoshop try renaming the extension to .raw and input the image parameters in the 'Photoshop RAW Options' dialog:
Dimensions
Width: 86400
Height: 43200
Channels
Count: 3
Depth: 8 bits
Byte Order: Mac
Header
Size: 0
----------
Note: I don't recall if the byte order is Mac ("Big Endian") or IBM PC ("Little Endian") so try one or the other if the file loads improperly.
----------
BTW, unless you REALLY need this file in this form it might be easier just to use the 500 meter non-shaded BMNG PNG tiles. They're exactly the same.
Lone
Dimensions
Width: 86400
Height: 43200
Channels
Count: 3
Depth: 8 bits
Byte Order: Mac
Header
Size: 0
----------
Note: I don't recall if the byte order is Mac ("Big Endian") or IBM PC ("Little Endian") so try one or the other if the file loads improperly.
----------
BTW, unless you REALLY need this file in this form it might be easier just to use the 500 meter non-shaded BMNG PNG tiles. They're exactly the same.
Lone