FW: Annotation on map

From: Andrea N. Hahmann <ahah_at_nyahnyahspammersnyahnyah>
Date: Thu May 24 2012 - 08:55:32 MDT

I think I understand what is going on now (thanks to Guilherme Martins):

amParallelPosF and amOrthogonalPosF are not in terms of NCDC coordinates, but are in relation to the sides of my map… Now, how do I convert from (xlat,xlon) to NCDC to (amParallelPosF, amOrthogonalPosF)?

Thanks in advance,
Andrea

From: "Andrea N. Hahmann" <ahah@dtu.dk<mailto:ahah@dtu.dk>>
To: "ncl-talk@ucar.edu<mailto:ncl-talk@ucar.edu>" <ncl-talk@ucar.edu<mailto:ncl-talk@ucar.edu>>
Subject: Annotation on map

Good morning (to most of you),

I have a problem locating an annotation on a map. In the attached script I make a simple map whose center is near 15.E 55.N. Then, I try to locate an annotation at these coordinates:

  datatondc(base_map,15.,55.,x_out,y_out)
  print(x_out+" "+y_out)
  amres@amParallelPosF = x_out
  amres@amOrthogonalPosF = y_out
  amres@amJust = "CenterCenter"
  annoid = gsn_add_annotation(base_map, txid, amres) ; Attach string to plot

First of all x_out and y_out are not near the center (0.,0.) and the string ends up at the lower left corner of the map. I am probably doing something wrong, but I don't know what it is.

Thanks,
Andrea

----
Andrea N. Hahmann
Senior Scientist
DTU Wind Energy
Technical University of Denmark
Risø Campus
Frederikborgvej 399, P.O. Box 49
4000 Roskilde, Denmark
Direct +45 4677 5471
Mobil: +45 2133 0550
ahah@dtu.dk<mailto:ahah@dtu.dk>
http://www.vindenergi.dtu.dk/

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu May 24 08:55:49 2012

This archive was generated by hypermail 2.1.8 : Fri May 25 2012 - 08:35:50 MDT