Re: GMT output Format
Paul Wessel <[email protected]>
| Newsgroups | gmane.comp.gis.gmt.user |
|---|---|
| Message-ID | <[email protected]> |
Yes, thanks Remko for reminding me of that. I'd like to do some time trial testing with this approach. This is interesting for OSX users: http://www.tekrevue.com/tip/how-to-create-a-4gbs-ram-disk-in-mac-os-x/ and of course you can do similar things on other OSs. On Jan 20, 2014, at 8:26 PM, Remko Scharroo <[email protected]> wrote: > A solution to you “I/O problem” is to write all the temporary files, including the PS file to a “virtual disk” (remember those?). > If you make sure that GMT_TMPDIR is on a virtual disk and you run everything in your script like this > > . gmt_shell_functions.sh > > gmt_init_tmpdir > > ps=$GMT_TMPDIR/output.ps > > step1 -K > $ps > step2 -O -K >> $ps > stepn -O >> $ps > > ps2raster -Tg -A -P -E300 -D$GMT_TMPDIR $ps > mv $GMT_TMPDIR/*.png . > > gmt_remove_tmpdir > > Then you have no disk I/O caused by intermediate files. > > Remko > > On 21 Jan 2014, at 01:41, J.J. Green <[email protected]> wrote: > >> Mark, >> >>> OK, but do I have to write a PS file, first, then convert, then read in >>> the raster in order to display it? I'm just looking for the most >>> efficient means to display a jpeg or png in my app without costly disk >>> I/O... >> >> Disk I/O is small beer compared to the cost of rasterisation. Not much >> you can do about that (except to wait for Moore to take away the pain) >> I think. >> >> Jim >> -- >> J.J. Green, Seaview Sensing Ltd., >> http://seaviewsensing.com >> >> To unsubscribe, send the message "signoff gmt-help" to [email protected] >> > > To unsubscribe, send the message "signoff gmt-help" to [email protected] To unsubscribe, send the message "signoff gmt-help" to [email protected]