Michael Merrell | 15 May 22:39
Picon

Re: Clipping Mask and GRD Masked

Paul,
 
Did you receive the files? I received a message that the file size was to large but was not sure if it still went through.

On Tue, May 15, 2012 at 3:24 PM, Michael Merrell <michael.merrell <at> mail.utexas.edu> wrote:
Paul,
 
I do not see any red or 255/0/0 in the salt_bw.cpt (attached as well). I have attached the salt_thickness_test_surface.grd and the $region is 269.47/269.85/26.99/27.323 and $map is M6.0. Thanks for taking a look at this.

On Tue, May 15, 2012 at 2:56 PM, Paul Wessel <pwessel <at> hawaii.edu> wrote:
Hi Michael-

First, please verify you have 4.5.7 since we fixed something very much like this in 4.5.7:

2011-05-09      pwessel
       * grdimage.c:           When image is grayscale and -Q is used then image must be
                               converted to 24-bit and we set NaN color to a non-gray value.

Assuming you do have 4.5.7:  Check that salt_bw.cpt is correct (no red or 255/0/0 there).  If OK and if possible, please zip up your salt_thickness_test_surface.grd and tell me what $region and $map is and I will have a look.

Paul Wessel, Professor
Dept. of Geology & Geophysics
SOEST, University of Hawaii at Manoa
1680 East-West Rd, Honolulu, HI 96822 USA
1-808-956-4778(phone)/5154(fax)

On May 15, 2012, at 8:17 AM, Michael Merrell wrote:

> GMT Help,
>
> Version 4.5.7
>
> I have the following script below where I clip a GRD file using "grdmask" and anything outside of the clipping polygon I set to "NaN". I then use makecpt to make a color palette and set NaN to white. For some reason the entire background/NaN is coming out red and I can not seem to figure out why. I have attach an image of what the problem is. Note that the big rotated rectangle is the file wideazi_outline.xy
>
>
> psbasemap -R$region -J$map -G255/255/255 -Bf0.03a0.05WeSn -Lf269.6595/27.4/27.4/20 -P -K -V > $target.ps
> grdmask salt_thickness_polygon.xy -R$region -I0.0001 -NNaN/1/1 -fg -G$Masked_Surface.grd -V
>
> # This says if the masked_surface is NAN then disregard it and output a new surface
> grdmath $Surface.grd $Masked_Surface.grd OR = salt_thickness_test_surface.grd -V
>
> # Makes a color pallette and sets NAN values to white
> makecpt -Cgray -I -T0/15100/50 -M --COLOR_NAN=255/255/255 -V -Z > salt_bw.cpt
>
> grdimage salt_thickness_test_surface.grd -J$map -R$region -E300 -P -Q -V -K -O -Csalt_bw.cpt>> $target.ps
> grdcontour salt_thickness_test_surface.grd -C2000 -J$map -A4000 -GD20km -R$region -O -K -V >> $target.ps
>
> psclip wideazi_outline.xy -R$region -J$map -V -O -K >> $target.ps
>
>
> --
> Sincerely,
> Michael
>
> Michael P. Merrell
> Master's of Geological Sciences Candidate
> Jackson School of Geosciences
> The University of Texas at Austin
> michael.merrell <at> mail.utexas.edu
> (918) 284-5757
>
> "All models are wrong but some are useful"
>
>
>
>
> To unsubscribe, send the message "signoff gmt-help" to listserv <at> lists.hawaii.edu <BASEMAP.jpg>

To unsubscribe, send the message "signoff gmt-help" to listserv <at> lists.hawaii.edu



--
Sincerely,
Michael
 
Michael P. Merrell
Master's of Geological Sciences Candidate
Jackson School of Geosciences
The University of Texas at Austin
 
"All models are wrong but some are useful"

 

 





--
Sincerely,
Michael
 
Michael P. Merrell
Master's of Geological Sciences Candidate
Jackson School of Geosciences
The University of Texas at Austin
(918) 284-5757
 
"All models are wrong but some are useful"

 

 


To unsubscribe, send the message "signoff gmt-help" to listserv <at> lists.hawaii.edu
Michael Merrell | 15 May 20:17
Picon

Clipping Mask and GRD Masked

GMT Help,
 
Version 4.5.7
 
I have the following script below where I clip a GRD file using "grdmask" and anything outside of the clipping polygon I set to "NaN". I then use makecpt to make a color palette and set NaN to white. For some reason the entire background/NaN is coming out red and I can not seem to figure out why. I have attach an image of what the problem is. Note that the big rotated rectangle is the file wideazi_outline.xy
 
 
psbasemap -R$region -J$map -G255/255/255 -Bf0.03a0.05WeSn -Lf269.6595/27.4/27.4/20 -P -K -V > $target.ps
grdmask salt_thickness_polygon.xy -R$region -I0.0001 -NNaN/1/1 -fg -G$Masked_Surface.grd -V

# This says if the masked_surface is NAN then disregard it and output a new surface
grdmath $Surface.grd $Masked_Surface.grd OR = salt_thickness_test_surface.grd -V

# Makes a color pallette and sets NAN values to white
makecpt -Cgray -I -T0/15100/50 -M --COLOR_NAN=255/255/255 -V -Z > salt_bw.cpt

grdimage salt_thickness_test_surface.grd -J$map -R$region -E300 -P -Q -V -K -O -Csalt_bw.cpt>> $target.ps
grdcontour salt_thickness_test_surface.grd -C2000 -J$map -A4000 -GD20km -R$region -O -K -V >> $target.ps

psclip wideazi_outline.xy -R$region -J$map -V -O -K >> $target.ps


--
Sincerely,
Michael
 
Michael P. Merrell
Master's of Geological Sciences Candidate
Jackson School of Geosciences
The University of Texas at Austin
 
"All models are wrong but some are useful"

 

 


To unsubscribe, send the message "signoff gmt-help" to listserv <at> lists.hawaii.edu
Gery . | 15 May 15:30
Picon
Favicon

dash line in pslegend


Hello,

This is very likely a very basic question but so far haven't found the right way to make this, I'm trying to plot a horizontal dashed line in a legend using pslegend, this is what I have:

S .2i - .025i -                2p,red,-                .5i  =)p

I know that .025i above control the size of the line, but it just appears one very small line, and I thought I will get a dashed line instead.

Any hint is very welcome!!!!

Cheers,

Gery

To unsubscribe, send the message "signoff gmt-help" to listserv <at> lists.hawaii.edu

Paul Wessel | 14 May 05:32
Favicon

Re: Retain attributes using 'blockmedian'

Hi Jan Erik and others-

I have added a preliminary -Er option to blockmedian and blockmode that appends the record number of the
median/mode as the last output column.  It has not been tested very much; please give feedback.  This is GMT5
subversion only. Because output takes place via a double, the max number of records is 2^53 or
9,007,199,254,740,992 which should be plenty.  If your SOURCE_IDs are text or not record numbers then you
can use the output to extract the value of the source id from the given record.

Paul

On May 11, 2012, at 12:53 PM, Paul Wessel wrote:

> On May 11, 2012, at 5:48 AM, Joaquim Luis wrote:
> 
>> On 11-05-2012 16:14, Walter (HF) Smith wrote:
>>> Joaquim is a developer.
>>> 
>>> Walter
>> 
>> Which doesn't make my idea the 'official one'. It was just a thought for a quick way to solve this issue.
>> 
>> Joaquim
>> 
>>> 
>>> On May 11, 2012, at 11:09 AM, Jan Erik Arndt wrote:
>>> 
>>>> Thanks for your inputs,
>>>> 
>>>> Joaquim, I think this is a nice approach. I am just wondering, if it's possible to obtain BLK_W (which I
imagine is the weightvalue corresponding to BLK_Z) it should also be possible to obtain the blockmedian
value from the fifth attribute(SOURCE_ID) directly. I think I will take a look on the source code soon, and
see what I can do and keep you informed if I find a nicer solution.
>>>> 
>>>> Until then I am of course keen to know what the developers are thinking and if there might already is a
more easy way?
>>>> 
>>>> Jan
>>>> 
>>>> Am 11.05.2012 16:07, schrieb Joaquim Luis:
>>>>> Jan,
>>>>> 
>>>>> I think a very pedestrian but easy to hack solution may be implemented by you right away.
>>>>> The idea is to embed the SOURCE_ID into the weight and save the weights instead of the Z's
>>>>> 
>>>>> Considering that attributing weights to data is always a somewhat subjective assignment, you can
use weights with high numbers.
>>>>> Lets say minimum weight is 10000
>>>>> Next use small numbers to to the source_id (probably 0-255 will be enough)
>>>>> add weights and source_ids (for example)
>>>>> 10000 + 255 = 10255
>>>>> this, in terms of weighting is barely distinguishable from, let's say, 15000
>>>>> 
>>>>> Now see the blockmedian.c code (current SVN version GMT5) and replace line 168
>>>>> 
>>>>>        extra[k] = 0.5 * (data[node].a[BLK_Z] + data[node1].a[BLK_Z]);
>>>>> 
>>>>> by
>>>>> 
>>>>>        extra[k] = data[node1].a[BLK_W] - 10000;        // or 'node' if you prefer
>>>>> 
>>>>> 
>>>>> and line 175
>>>>> 
>>>>>        extra[k] = data[node].a[BLK_Z];
>>>>> 
>>>>> by
>>>>> 
>>>>>        extra[k] = data[node].a[BLK_W] - 10000;
>>>>> 
>>>>> 
>>>>> Of course, the 10000 in the above lines assume that you started your minimum weight start at 10000,  AND
will screw the normal functioning of blockmedian, so you better make it a copy under another name.
>>>>> 
>>>>> Joaquim
>>>>> 
>>>>>> I could send you my code but you would have to hack it much more than you would have to hack the C source
for blockmedian in GMT.
>>>>>> 
>>>>>> Mine was called "imgbm" for img block median, and it worked on data using native binary ints for the
depth, source id, and position. The position was recorded as an integer index to a cell in an 'img' style
file (Smith and Sandwell type bathymetry/gravity stuff). So it read and wrote a list of native binary
ints, and it simply sorted the list in a structured way.
>>>>>> 
>>>>>> So it did not have the functionality of blockmedian for I/O and such.
>>>>>> 
>>>>>> I don't have time to do this myself right now, so I hope the development team is looking at this. It
looks easy to add but there might be some side effects with blockmode and blockmean. In principle we would
have optionally 4 or 5, rather than 3 or 4, elements per data structure. There would be an option switch
similar to -W which would have to increment the number of elements, and that would have to control the I/O so
that the Source_ID got read and written. Then it could be carried along in the structure.
>>>>>> 
>>>>>> One would have to be careful that, if both the -W and Source_ID options were turned on, the weight got
loaded in the right place, so that the machinery that does weighted CDFs would continue to work right.
>>>>>> 
>>>>>> Walter
>>>>>> 
>>>>>> 
>>>>>> On May 11, 2012, at 4:07 AM, Jan Erik Arndt wrote:
>>>>>> 
>>>>>>> The SOURCE_ID's are representing cruises, compilations or even digitized nautical charts.
These are all having an attribute WEIGHT, which is used in 'blockmedian' option '-W' to prioritize high
quality data sets against data sets with lower quality.
>>>>>>> 
>>>>>>> What I am aiming for is a unique ID for every gridcell to visualize which source is responsible the
one value extracted by 'blockmedian'. This will give information about which source finally is used for
the following gridding process. In cells with an even number of points this of course means losing the
SOURCE_ID of the deeper value, but thats no problem since I only want to have one unique value per cell.
Getting the SOURCE_ID of the shallower point in case of an even point amount would be the best solution for
my purposes I think.
>>>>>>> 
>>>>>>> Cheers,
>>>>>>> Jan
>>>>>>> 
>>>>>>> Am 11.05.2012 09:32, schrieb Florian Wobbe:
>>>>>>>> Jan,
>>>>>>>> 
>>>>>>>> is your SOURCE_ID unique for each data point or is this an attribute that multiple points share
(e.g. date or cruise name). In the latter case, how would you expect SOURCE_ID to be retained - e.g. when 2
shiptracks with different ID cross? Walter's blockmedian keeps the SOURCE_ID with the lowest elevation
so one ID would be lost in this case. I would prefer this output instead:
>>>>>>>> 
>>>>>>>> x, y, numPointsInThisBlock,<list of all SOURCE_ID's (n=numPointsInThisBlock) ordered by weight>
>>>>>>>> 
>>>>>>>> This way, you know which SOURCE_ID's contributed to a certain output point of blockmedian.
>>>>>>>> 
>>>>>>>> For blockmedian numPointsInThisBlock may be 1 or 2, so max. 2 numPointsInThisBlock SOURCE_ID's
are listed.
>>>>>>>> 
>>>>>>>> An interesting feature would be to prefer certain SOURCE_ID's. Say you know that the data quality
of shiptrack 0815 is worse than that of other tracks. You may wish to discard the information of 0815 in a
block where other points contribute as well but retain the information if its the only one available.
>>>>>>>> 
>>>>>>>> Florian
>>>>>>>> 
>>>>>>>>> Yes that is the point Walter. This would be the easiest and in fact the only way to determine which
source at last is responsible for the value of a specific cell of the grid. If that extension on
'blockmedian' exists, the source id grid generation would become much easier. So I am excited about the
developers opinion.
>>>>>>>>> 
>>>>>>>>> Walter, just in case this extension is not available now, would you be so kind offering me your
special blockmedian version? That would fasten up my work a bit and I would definitely appreciate it a lot.
>>>>>>>>> 
>>>>>>>>> Thanks,
>>>>>>>>> Jan
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> -- 
>>>>>>>>> Dipl.-Ing. Jan Erik Arndt
>>>>>>>>> 
>>>>>>>>> Email:
>>>>>>>>> Jan.Erik.Arndt <at> awi.de
>>>>>>>>> 
>>>>>>>>> Address:
>>>>>>>>> Alfred Wegener Institute
>>>>>>>>> Van-Ronzelen-Str. 2
>>>>>>>>> D-27568 Bremerhaven
>>>>>>>>> 
>>>>>>>>> Telephone:     +49(471)4831-1369
>>>>>>>>> Fax:             +49(471)4831-1977
>>>>>>>>> 
>>>>>>>>> Am 10.05.2012 22:38, schrieb Walter (HF) Smith:
>>>>>>>>>> I understand exactly what Jan Erik wants to do. We do the same thing in the SRTM30PLUS gridded
bathymetry process, where each cell is assigned the median depth and also the source identification
number that contributed that value.
>>>>>>>>>> 
>>>>>>>>>> Keith is right that if there are an even number of data points (unweighted case) or if the
cumulative distribution midpoint falls between two values (weighted case), then there can be an
ambiguity. For a project like bathymetry it may make sense in the ambiguous cases to default one way or the
other, for example to always choose the ID number of the shallower point.
>>>>>>>>>> 
>>>>>>>>>> I built a special version of blockmedian to do this for our project. But I think the GMT
developers discussed adding this extension to blockmedian. I wrote the original but I haven't looked
under the hood in awhile to see what it now does.
>>>>>>>>>> 
>>>>>>>>>> Developers, do you want to comment? Is this something blockmedian and blockmode can do, or
could do with an extension, and if so, is it worth adding this?
>>>>>>>>>> 
>>>>>>>>>> Thanks,
>>>>>>>>>> 
>>>>>>>>>> Walter
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> Walter H F Smith
>>>>>>>>>> Chairman, GEBCO TSCOM/SCDB
>>>>>>>>>> Geophysicist, Laboratory for Satellite Altimetry
>>>>>>>>>> NOAA NESDIS code E/RA-31
>>>>>>>>>> 1335 East West Hwy, room 5408
>>>>>>>>>> Silver Spring MD 20910-3226
>>>>>>>>>> tel 301-713-7212 (NEW 26-01-2012)
>>>>>>>>>> fax 301-713-3136
>>>>>>>>>> Walter.HF.Smith <at> noaa.gov
>>>>>>>>>> http://www.star.nesdis.noaa.gov/star/Smith_WHF.php
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> On May 10, 2012, at 11:36 AM, Keith Pickering wrote:
>>>>>>>>>> 
>>>>>>>>>>> I'm not sure this is logically possible. If the number of data sources is odd, you will always
have a single source from which the resulting gridblock is taken; but if the number of data sources is even,
then the gridblock result should be the mean of the two central data sources. Therefore it is always
possible to have more than one data source for any resulting grid block.
>>>>>>>>>>> 
>>>>>>>>>>> Keith Pickering
>>>>>>>>>>> 
>>>>>>>>>>> 
>>>>>>>>>>> On Thu, May 10, 2012 at 9:05 AM, Jan Erik Arndt<Jan.Erik.Arndt <at> awi.de>     wrote:
>>>>>>>>>>> Dear Paul, Walter and all others,
>>>>>>>>>>> 
>>>>>>>>>>> I am currently using some GMT programs to generate a bathymetric grid using data from several
sources. One of these steps is 'blockmedian'. Before this step every point used in the calculation has the
values 'LON LAT DEP WEIGHT SOURCE_ID'. I intent to create a source id grid afterwards. Unfortunately
after 'blockmedian' the information about the SOURCE_ID gets lost and I have not found a way of retaining
that information within the standard 'blockmedian' program.
>>>>>>>>>>> 
>>>>>>>>>>> So my question is:
>>>>>>>>>>> Is it possible to retain the attributes, like 'SOURCE_ID', corresponding to the blockmedian
value using the standard commands or would I have to work on the 'blockmedian' code itself to keep this information?
>>>>>>>>>>> 
>>>>>>>>>>> Many thanks in advance,
>>>>>>>>>>> Jan
>>>>>>>>>>> 
>>>>>>>>>>> To unsubscribe, send the message "signoff gmt-help" to listserv <at> lists.hawaii.edu
>>>>>>>>>>> 
>>>>>>>>>>> To unsubscribe, send the message "signoff gmt-help" to listserv <at> lists.hawaii.edu
>>>>>>>>>> To unsubscribe, send the message "signoff gmt-help" to listserv <at> lists.hawaii.edu
>>>>>>>>> To unsubscribe, send the message "signoff gmt-help" to listserv <at> lists.hawaii.edu
>>>>>>>> To unsubscribe, send the message "signoff gmt-help" to listserv <at> lists.hawaii.edu
>>>>>>> To unsubscribe, send the message "signoff gmt-help" to listserv <at> lists.hawaii.edu
>>>>> To unsubscribe, send the message "signoff gmt-help" to listserv <at> lists.hawaii.edu
>>>> To unsubscribe, send the message "signoff gmt-help" to listserv <at> lists.hawaii.edu
>>> To unsubscribe, send the message "signoff gmt-help" to listserv <at> lists.hawaii.edu
>>> 
>>> 
>> 
>> To unsubscribe, send the message "signoff gmt-help" to listserv <at> lists.hawaii.edu
> 

To unsubscribe, send the message "signoff gmt-help" to listserv <at> lists.hawaii.edu

Daniel Cole | 12 May 03:53

Losing Parts of Map - psclip issue?

 

The basics of my mapping script is laid out below.  Most of the maps I am making are between 10 and 1000 acres, and contain points with z values scattered inside one to 20 adjacent polygons.   The problem I am having is that if the shape is much longer than it is wide (more than about a 3:1 ratio) it starts cutting off the top of the image.

 

I assume that it is the psclip doing that , but I don’t understand why it would crop the map inside of the polygon.  I thought that minmax would make it go outside of the image.  It seems to help if I adjust the –Jm8 to –Jm2 or so, but doesn’t fix every map like that.  Maybe I shouldn’t be using the –Jm projection, but I don’t know.



 

OGR for Border Polygon(s) > border.gmt

REG=Minmax-m border ogr

psclip border.gmt -m –JM8 -R$REG -K > map.ps

psxy border.gmt -m -R -J -W1 -O -K >> map.ps

ps2raster map.ps -A -Tg -P -E100 map.ps 


 

Please give me any thoughts you have.

Thanks,


Daniel


To unsubscribe, send the message "signoff gmt-help" to listserv <at> lists.hawaii.edu
John Robbins | 11 May 19:24
Picon
Favicon

gmtmath UPPER and LOWER with NaNs

OK - there is probably a simple solution to this problem... Background: 
I'm using GMT 4.5.7 on OSX Lion.

I have a table with NaNs found sporadically in it, including on the 
first and last lines. I'd like to use the UPPER and LOWER operators on a 
range of columns of a very large table and have it report a numerical 
value, regardless of the existence of a NaN on the first or last lines.

It seems that if a NaN is found in the first (or last) record of a 
column, UPPER and LOWER will report NaN when using -Sf (or -Sl, 
respectively). I desire a numerical report from UPPER or LOWER 
regardless of the existence of a NaN on the first or last records. How 
can it be done?

The MEAN and STD operators report a numerical value regardless of an 
existence of a NaN on the first or last lines, when using -Sf or -Sl, 
respectively.

John

example:

NaN as the response to the command: gmtmath -Sl t1.txt LOWER =
-1.442 as the response to gmtmath -Sf t1.txt LOWER =

where t1.txt is the following

     0.609
     NaN
     -1.442
     2.670
    NaN

To unsubscribe, send the message "signoff gmt-help" to listserv <at> lists.hawaii.edu

Picon
Favicon

windows installation

Dear Sirs,
 
I have problems with the windows version of GMT.
I downloaded and installed it, and also the cygwin but some of the functions don't work, in particular, the examples given do not work, because they don't read some of the functions. The folder functions does not exit. Should I add a gcc compiler for the libraries before installing the windows version, or I do I have to compile them directly? In that case, which archive should I compile for the whole set of functions?
Thanks in advance,
 
Abigail Jiménez Lloret

To unsubscribe, send the message "signoff gmt-help" to listserv <at> lists.hawaii.edu

Jan Erik Arndt | 10 May 16:05
Picon
Favicon

Retain attributes using 'blockmedian'

Dear Paul, Walter and all others,

I am currently using some GMT programs to generate a bathymetric grid 
using data from several sources. One of these steps is 'blockmedian'. 
Before this step every point used in the calculation has the values 'LON 
LAT DEP WEIGHT SOURCE_ID'. I intent to create a source id grid 
afterwards. Unfortunately after 'blockmedian' the information about the 
SOURCE_ID gets lost and I have not found a way of retaining that 
information within the standard 'blockmedian' program.

So my question is:
Is it possible to retain the attributes, like 'SOURCE_ID', corresponding 
to the blockmedian value using the standard commands or would I have to 
work on the 'blockmedian' code itself to keep this information?

Many thanks in advance,
Jan

To unsubscribe, send the message "signoff gmt-help" to listserv <at> lists.hawaii.edu

Vusi Tora | 10 May 01:33
Picon

xyz2grd values set to Nan

Hi all,
I am trying to convert a xyz format file to grd
here is my command and what I got :

xyz2grd file.xyz -R-91.5/-88.7/34.1/37.5 -Ddegree/degree/height1/0/=/= -Gfile.grd -I1m/5m -V
xyz2grd: Given domain implies x_inc = 0.0166667
xyz2grd: Given domain implies y_inc = 0.0829268
xyz2grd: nx = 169  ny = 42
xyz2grd: Working on file day120diff.xyz
xyz2grd:  n_read: 137088  n_used: 0  n_filled: 0  n_empty: 7098 set to NaN
xyz2grd: Warning: No valid values in grid [file.grd]


Could anyone tell me what is wrong or how to fix the problem.

here is an example of my xyz text file.

37.4958333333 -91.4958333333 -261.411
37.4958333333 -91.4875 -268.411
37.4958333333 -91.4791666667 -272.411
37.4958333333 -91.4708333333 -285.411
37.4958333333 -91.4625 -301.411
37.4958333333 -91.4541666667 -301.411
37.4958333333 -91.4458333333 -313.411
37.4958333333 -91.4375 -311.411
37.4958333333 -91.4291666667 -311.411
37.4958333333 -91.4208333333 -313.411
37.4958333333 -91.4125 -313.411
37.4958333333 -91.4041666667 -306.411
37.4958333333 -91.3958333333 -292.411
37.4958333333 -91.3875 -293.411
37.4958333333 -91.3791666667 -313.411
37.4958333333 -91.3708333333 -321.411
37.4958333333 -91.3625 -325.411
37.4958333333 -91.3541666667 -317.411
37.4958333333 -91.3458333333 -317.411
37.4958333333 -91.3375 -318.411
To unsubscribe, send the message "signoff gmt-help" to listserv <at> lists.hawaii.edu
J.J.Green | 10 May 00:23
Favicon

Re: GMT Animations

Hi Pedro,

Please reply to the list, this may help others in years to come!

> When you say
> 
> "convert ps -> png (with ps2raster!) then to avi/mpeg with menecoder."
> don't you loose too much resolution? I am graphing a detailed
> atmospheric model output, so I need to be precise... 

But then GIF is not the best thing to choose, as it can only show
256 different colours in each frame. See

  http://en.wikipedia.org/wiki/Graphics_Interchange_Format

> I tried somethings like that, using avconv (ffmpeg's substitute), but
> it compresses in a way that I cannot see it frame by frame as in the
> gif. That's why I am still using gif.

You would need to select a higher quality in your encoding. Usually
these programs are designed to create movies for ipods etc, so 
small size is more important than quality, so the default values
reflect this.

Jim
--

-- 
J.J. Green,  Seaview Sensing Ltd.,
http://seaviewsensing.com/

To unsubscribe, send the message "signoff gmt-help" to listserv <at> lists.hawaii.edu

Picon
Favicon

GMT Animations

Hi all,

I just need a quick tip here, and would be glad if anyone could help. I generate GMT animation (GIFs), using convert, but I am lacking a way to view the animation in a proper way (that I can stop at a frame, forward frame by frame, and stuff like that).

I use Linux (Ubuntu), and general tools like the imageviewer, gThumb and Firefox do not allow me to control the animation. I converted (using convert/avconv) the gif to other formats that could be read by video programs (such as xine), but I looses to much of its original frame to frame resolution (tried things like avi, mpeg, mp4 in with all kinds of quality flags). 

Is there any appropriate viewer for this kind of animation? Or any tips to sort this?

Thanks,

Pedro.
 
_____________________
Pedro da Silva Peixoto
Matemática Aplicada
Instituto de Matemática e Estatística
Universidade de São Paulo - Brasil

To unsubscribe, send the message "signoff gmt-help" to listserv <at> lists.hawaii.edu


Gmane