comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » cgmap_gshhs.pro minarea issue
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: cgmap_gshhs.pro minarea issue [message #86609 is a reply to message #86594] Fri, 22 November 2013 07:57 Go to previous messageGo to previous message
Takis.Velissariou is currently offline  Takis.Velissariou
Messages: 1
Registered: November 2013
Junior Member
On Thursday, November 21, 2013 7:09:28 PM UTC-5, pvelis...@fsu.edu wrote:
> Apparently, in the recent versions (>= 2.2) of gshhs database
>
> the units of the header.area changed from 1/10 km^2 to 1/10 m^2.
>
> For cgmap_gshhs to work properly the line:
>
> polygonArea = header.area * 0.1 (ok for gshhs < 2.2)
>
> should be changed to:
>
> polygonArea = header.area * 1.0e-7 (for gshhs >= 2.2)

David,

I saw the modified code in gmap_gshhs.pro and I think that:
magnitude = ISHFT(f, -26) AND 1B
should change to:
magnitude = ISHFT(f, -26) AND 255B

also
polygonArea = header.area * 0.1 * 10^magnitude
should change to:
polygonArea = header.area * 0.1 (for version lt 9)
and
polygonArea = header.area * 10^(-magnitude) (for version gt 9)
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDL 8.2, read pixel value along a surface
Next Topic: Exelis code library down - someone has G

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 22:49:46 PDT 2025

Total time taken to generate the page: 0.56386 seconds