wiki:bov2jpeg

Version 1 (modified by Jonathan, 12 years ago) ( diff )

Bov2Jpeg

The AstroBEAR repository comes with the source for another program called bov2jpeg which can convert bov files to jpeg images. It uses the ImageObject and the various io modules in AstroBEAR to load a bov file, and create a .ppm image file and then it calls the system command 'convert' which assumes that ImageMagick's convert is installed. It will probably break if you take run it on a little/big endian machine when the bov/dat files were produced on a big/little endian machine.

  • Building
    make bov2jpeg
    
  • Usage
     bov2jpeg file(s) [ [ log | linear ] [ minvalue [ maxvalue ]]] 
    
  • Example
     bov2jpeg out/Mass_along_1_*.bov log 1.0 1000.0
    
  • If you want to use a different color map than the default, add a cmap.data file to your working directory that has the number of points followed by that many rgb triplets
    5
    0 0 0
    0 0 127
    0 127 255
    0 191 255
    255 255 255
    
Note: See TracWiki for help on using the wiki.