Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://www.naic.edu/~phil/aosoft/mapsmerge.html
Дата изменения: Thu Nov 4 00:00:09 2010 Дата индексирования: Tue Oct 2 05:35:49 2012 Кодировка: Поисковые слова: earth's atmosphere |
mapsmerge is a program to merge mulitple maps into a single map. The merged map will have mapsperrow maps horizontally in a row and (nummaps + mapsperrow -1)/mapsperrow maps vertically. Any slots at the end with no data are zero filled. The map files are real*4 data stored in row major order (stored by rows).
The input map filenames are listed in the file filelist with 1 filename per line. Each map should be numrows by numcols and contain real*4 data.
The program reads all the maps into memory, and then outputs one row at a time. The output is written to standard output.
The merged map can be converted to a byte/pixel map with scaleto8bitsr and from a byte/pixel map to sun raster format with map8bittorf.
Suppose there are 10 input maps that are each 100 (hor) by 200 (ver) pixels of real*4 data with file names mapf1 thru mapf10. Place the 10 filenames mapf1 thru mapf10 1 per line in the file junkfile. Let the output file be called map.out. If we want 3 files horizontally in the output map and a line of zeros between each map we could use:
The above map could be converted to a sun raster file map via:
~phil/util/filters/mapsmerge.c location of source code
Content-type: text/html