Use of a DEM to create a figure

View: New views
6 Messages — Rating Filter:   Alert me  

Use of a DEM to create a figure

by Nicolas Le Corvec :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,

I was looking at the grdimage in the cook book, to find out how to plot
my DEM.

My problem is the extension of my SRTM DEM. I'm used to get my SRTM on
the seamless.usgs.gov, but there is no such a .grd file available like
it is shown in the cook book.

I have those avalaible file: ArcGrid, or GridFloat, or GeoTiff, or
BIL_16INT.

Is there a way to convert them? or what's the easy way to plot a DEM on GMT?

thanks for that,

nicolas


--
Nicolas Le Corvec
PhD Candidate
School of Geography, Geology & Environmental Science
The University of Auckland
Private Bag 92019
Auckland 1142
New Zealand

Ph: +64-9-373-7599 ext 89323
Fax: +64-9-373-7435
------------------------------------------------------

To unsubscribe, send the message "signoff gmt-help" to listserv@...

Re: Use of a DEM to create a figure

by Joaquim Luis-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Nicolas,


There are 2 ways.
1. Use xyz2grd (-Z option)
2. Use a GMT version built with GDAL support.

Option 2 is easier as you only need to suffix or grid name with '=gd'
I don't remember the remember the exact recipe for 1. but I suggest you
search the mailing list as this subject has been
discussed several times.

J. Luis

> Hi all,
>
> I was looking at the grdimage in the cook book, to find out how to
> plot my DEM.
>
> My problem is the extension of my SRTM DEM. I'm used to get my SRTM on
> the seamless.usgs.gov, but there is no such a .grd file available like
> it is shown in the cook book.
>
> I have those avalaible file: ArcGrid, or GridFloat, or GeoTiff, or
> BIL_16INT.
>
> Is there a way to convert them? or what's the easy way to plot a DEM
> on GMT?
>
> thanks for that,
>
> nicolas
>
>

To unsubscribe, send the message "signoff gmt-help" to listserv@...

Re: Use of a DEM to create a figure

by Nicolas Le Corvec :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I found out on the mailing list some discussion very useful.

I would like to know if anyone have used the new BIL_16INT format form
USGS semaless server.
(Posted 14 September 2009: BIL_16INT Format Update - The "BIL_16INT"
output format will now return a bil file that is exactly (rows * columns
* 2) bytes in length. The previous version included a few extra bytes in
the header and footer which consequently made the file incompatible with
some generic software packages. We apologize for any inconvenience this
may have caused.

Posted 26 August 2009: BIL Format Update - The BIL output format will
return data matching the same characteristics as the original source
data. For example, if the original source data for a particular dataset
is 8 bit signed integer, then the BIL format for that dataset will also
be 8 bit signed integer. For the NED and SRTM datasets, however, select
the output format "BIL_16INT" which will force the 32 bit floating point
data to 16 bit signed integer. If you desire the actual 32 bit floating
point data for the NED and SRTM datasets, select the output format
"GridFloat" which will deliver the data as 32 bit floating point.)

My second question is concerning your second point: 2. Use a GMT version
built with GDAL support.

I download the FWTools project and the GMT GDAL, added the path. So how
do I use my SRTM grid then? Every grid works if I add a suffix "=gd"?

cheers,

Nicolas




J Luis wrote:

> Nicolas,
>
>
> There are 2 ways.
> 1. Use xyz2grd (-Z option)
> 2. Use a GMT version built with GDAL support.
>
> Option 2 is easier as you only need to suffix or grid name with '=gd'
> I don't remember the remember the exact recipe for 1. but I suggest you
> search the mailing list as this subject has been
> discussed several times.
>
> J. Luis
>
>> Hi all,
>>
>> I was looking at the grdimage in the cook book, to find out how to
>> plot my DEM.
>>
>> My problem is the extension of my SRTM DEM. I'm used to get my SRTM on
>> the seamless.usgs.gov, but there is no such a .grd file available like
>> it is shown in the cook book.
>>
>> I have those avalaible file: ArcGrid, or GridFloat, or GeoTiff, or
>> BIL_16INT.
>>
>> Is there a way to convert them? or what's the easy way to plot a DEM
>> on GMT?
>>
>> thanks for that,
>>
>> nicolas
>>
>>
>
> To unsubscribe, send the message "signoff gmt-help" to listserv@...

--
Nicolas Le Corvec
PhD Candidate
School of Geography, Geology & Environmental Science
The University of Auckland
Private Bag 92019
Auckland 1142
New Zealand

Ph: +64-9-373-7599 ext 89323
Fax: +64-9-373-7435
------------------------------------------------------

To unsubscribe, send the message "signoff gmt-help" to listserv@...

Re: Use of a DEM to create a figure

by Joaquim Luis-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Nicolas Le Corvec wrote:
>
> My second question is concerning your second point: 2. Use a GMT
> version built with GDAL support.
>
> I download the FWTools project and the GMT GDAL, added the path. So
> how do I use my SRTM grid then? Every grid works if I add a suffix "=gd"?

Did it work?

To unsubscribe, send the message "signoff gmt-help" to listserv@...

Re: Use of a DEM to create a figure

by Nicolas Le Corvec :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I would like to know how if it is possible to use just half (form 0.0 to
1.0) of the globe.cpt or of the relief.cpt files to create my gradient
of colours?

Cheers.

Nicolas

J Luis wrote:

> Nicolas Le Corvec wrote:
>> My second question is concerning your second point: 2. Use a GMT
>> version built with GDAL support.
>>
>> I download the FWTools project and the GMT GDAL, added the path. So
>> how do I use my SRTM grid then? Every grid works if I add a suffix "=gd"?
>
> Did it work?
>
> To unsubscribe, send the message "signoff gmt-help" to listserv@...
--
Nicolas Le Corvec
PhD Candidate
School of Geography, Geology & Environmental Science
The University of Auckland
Private Bag 92019
Auckland 1142
New Zealand

Ph: +64-9-373-7599 ext 89323
Fax: +64-9-373-7435
------------------------------------------------------

To unsubscribe, send the message "signoff gmt-help" to listserv@...



chejudem2.ps (8M) Download Attachment

Re: Use of a DEM to create a figure

by Joaquim Luis-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Yes, you can always edit the master CPT file (well, a copy of it) and select only the colors that you are interested in.
Somewhere in the manual (or Cookbook) there is an explanation on how to create custom cpt files.

On Fri, Oct 30, 2009 at 12:17 AM, Nicolas Le Corvec <n.lecorvec@...> wrote:
Hi,

I would like to know how if it is possible to use just half (form 0.0 to 1.0) of the globe.cpt or of the relief.cpt files to create my gradient of colours?

Cheers.

Nicolas

J Luis wrote:
Nicolas Le Corvec wrote:
My second question is concerning your second point: 2. Use a GMT version built with GDAL support.

I download the FWTools project and the GMT GDAL, added the path. So how do I use my SRTM grid then? Every grid works if I add a suffix "=gd"?

Did it work?

To unsubscribe, send the message "signoff gmt-help" to listserv@...

--
Nicolas Le Corvec
PhD Candidate
School of Geography, Geology & Environmental Science
The University of Auckland
Private Bag 92019
Auckland 1142
New Zealand

Ph: +64-9-373-7599 ext 89323
Fax: +64-9-373-7435
------------------------------------------------------

To unsubscribe, send the message "signoff gmt-help" to listserv@...

To unsubscribe, send the message "signoff gmt-help" to listserv@...