Revisit Dateline Problem

From: Motell, Craig E CIV NAVPACMETOCCEN JTWC, <craig.motell_at_nyahnyahspammersnyahnyah>
Date: Tue, 17 Apr 2007 10:24:18 -1000

Dear NCL Users:
 
This is my first posting, so I apologize for not knowing correct protocol:
 
I am trying to make a plot around Midway Island (which is near the date). I would like a box
to go from 20N to 35N, and 170E to 170W (or 20,-170, to 35, 175). Later I will try to plot trajectories.
 
I see in an earlier posting a discussion of how to handle the dateline issue when plotting trajectories.
I'm stuck at just getting the map to show correctly:
 
Below is my code, and if I replace 181 with 180 everything works fine. Also, I tried the obvious
of going from -175 to 170 but that doesn't work either.
 
Two questions:
1) In an earlier email I see there is a reference to an attached script that fixes this problem
(see talk_archives/2006/0968.html) but I don't know how to get an attached script?
 
or
 
2) Can someone point me out how to correct the problem below
 
;*************************************************
; question.ncl
;
; Used to test dateline question
;*************************************************
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
;**************************************************
begin
   wks = gsn_open_wks("x11","traj") ; open workstation
   res = True ; map resources
   res_at_gsnDraw = False ; don't draw
   res_at_gsnFrame = False ; don't advance frame
   res_at_mpMaxLatF = 35 ; select subregion
   res_at_mpMinLatF = 20
   res_at_mpMinLonF = 170 ; also tried -179
   res_at_mpMaxLonF = 181 ; also tried 170
   res_at_tiMainString = "Example of a Dateline Issue" ; title

  
   map = gsn_csm_map_ce(wks,res) ; create map
;
   draw(map)
   frame(wks)
  
end
 
 

_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Apr 17 2007 - 14:24:18 MDT

This archive was generated by hypermail 2.2.0 : Sat Apr 21 2007 - 12:15:57 MDT