<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hello,<br>
<br>
i have station data with lat/lon-coordinates in DMS (degree,
minutes). <br>
I suppose NCL/NCAR always want's decimal coordinates as input?
That's why my plotted data points appears at a wrong position.<br>
<br>
Example (this is my data looks like):<br>
lat = 54.41 (54° 41') <br>
lon = 13.26 (13° 26')<br>
<br>
I think I have to transform the coordinates from DMS to decimal, to
have:<br>
lat = 54.68<br>
lon = 13.43<br>
<br>
Then the location will be placed correctly on map.<br>
<br>
My question: <br>
Just wondering - is there really no built-in procedure/function for
the conversion from DMS to decimal coordinates? I found nothing
about these stuff in the mailing lists or on the web. <br>
Furthermore, I am irritated that the tick labels are DMS in my
example program (see at the end), but he expects decimal
coordinates.<br>
If there is no built-in function, has anyone a funtion to convert
DMS to decimal or a workaround?<br>
<br>
Thanks a lot.<br>
<br>
Regards,<br>
Robert<br>
<br>
<br>
<font face="Courier New">begin<br>
<br>
wks = gsn_open_wks ("png","test") <br>
res = True <br>
res@gsnMaximize = True<br>
res@gsnFrame = False <br>
res@mpGridAndLimbOn = True <br>
res@pmTickMarkDisplayMode = "Always" <br>
res@mpMinLatF = 54<br>
res@mpMaxLatF = 55<br>
res@mpMinLonF = 13<br>
res@mpMaxLonF = 14<br>
<br>
res@mpGridSpacingF = 0.25<br>
res@mpGridLineThicknessF = 2.0<br>
res@mpGridLineColor = "Gray30"<br>
res@mpOutlineBoundarySets = "AllBoundaries"<br>
res@mpDataBaseVersion = "MediumRes"<br>
res@mpDataSetName = "Earth..4" <br>
res@mpGridAndLimbOn = True<br>
<br>
mkres = True<br>
mkres@gsMarkerIndex = 16 ; Filled circle<br>
mkres@gsMarkerSizeF = 0.008<br>
<br>
plot = gsn_csm_map(wks,res)<br>
gsn_polymarker(wks,plot,13.26,54.41,mkres)<br>
frame(wks)<br>
<br>
end<br>
<br>
</font><br>
</body>
</html>