Re: Plotting across International Dateline

From: Eowyn Connolly-Brown <ecc37_at_nyahnyahspammersnyahnyah>
Date: Mon Apr 04 2011 - 20:16:26 MDT

Dear Mary,

It was a contour map issue, and adjusting mpCenterLonF seems to have
done the trick. Thank you for your help and also for the information
regarding the anonymous FTP which I shall make use of in the future
should the need arise.

Thanks,
Eowyn

On Mon, Apr 4, 2011 at 5:39 PM, Mary Haley <haley@ucar.edu> wrote:
> Dear Eowyn,
>
> This question is more appropriate for ncl-talk than ncarg-talk, so I've CC'ed that group here.
>
> You didn't indicate what kind of plotting you're doing (contours, polygons, polylines, vectors, etc),
> and what you mean by "causes the whole globe to plot". Are you saying that you can't get
> your map plot to be zoomed in on the area of interest, or is your data not being zoomed
> in correctly?
>
> If this is purely a map issue, then one fix might be to set mpCenterLonF to the center of the area
> you want to look at (some value between 100E and 10W).
>
> If this is more of a data issue, then it would help if you can provide the data as you suggested, an image showing the problem, and what variable you're trying to plot.
>
> You can put the data on anonymous ftp:
>
> ftp ftp.cgd.ucar.edu
> <login as anonymous with your email address as the password>
> cd pub
> put ...your file...
> quit
>
> I will need to know the exact name of your file in order to retrieve it.
>
> Thanks,
>
> --Mary
>
>
> On Apr 3, 2011, at 7:50 PM, Eowyn Connolly-Brown wrote:
>
>> Hello NCL-users,
>>
>> I am encountering a problem identical to the one referenced in this
>> thread from 2006:
>> http://www.ncl.ucar.edu/Support/talk_archives/2006/0968.html
>>
>> trying to plot across the International Dateline and hoped it was now
>> a solved problem. I've tried various approaches to reordering the
>> data, among them: mpMin/MaxLonF resources, using lonFlip, lonPivot,
>> and using the result for the 2006 thread. I'm trying to plot 100E to
>> 10W, more than half the globe, which seems to be part of the problem,
>> e.g. though the t variable has a longitude of 0..360, trying to plot
>> 0..180+ degrees or 0..72+ indices causes the whole globe to plot. I'm
>> not attaching code because my experimentations have been in
>> interactive mode for the most part, but the summaries of the
>> temperature and lon variables are below. I'd be grateful to know if
>> there is an effective approach to this seemingly simple problem. I
>> feel silly because I know I've done this before using CCSM output! I'd
>> be happy to send a sample of my data (GFDL CM2 output) to interested
>> parties.
>>
>> Thanks everyone!
>>
>> Eowyn Connolly
>>
>>
>> Variable: t
>> Type: float
>> Total Size: 51840 bytes
>>            12960 values
>> Number of Dimensions: 3
>> Dimensions and sizes: [time | 1] x [lat | 90] x [lon | 144]
>> Coordinates:
>>            time: [87477.58333333333..87477.58333333333]
>>            lat: [-89.49438..89.49438]
>>            lon: [1.25..358.75]
>> Number Of Attributes: 5
>>  long_name :  surface temperature
>>  units :      deg_k
>>  valid_range :        ( 100, 400 )
>>  cell_methods :       time: mean within months time: mean over years
>>  time_avg_info :      average_T1,average_T2,average_DT
>>
>>
>> Variable: lon
>> Type: float
>> Total Size: 576 bytes
>>            144 values
>> Number of Dimensions: 1
>> Dimensions and sizes: [lon | 144]
>> Coordinates:
>>            lon: [1.25..358.75]
>> Number Of Attributes: 4
>>  long_name :  longitude
>>  units :      degrees_E
>>  cartesian_axis :     X
>>  edges :      lonb
>> _______________________________________________
>> ncarg-talk mailing list
>> ncarg-talk@ucar.edu
>> http://mailman.ucar.edu/mailman/listinfo/ncarg-talk
>
>
Received on Mon Apr 4 20:16:53 2011

This archive was generated by hypermail 2.1.8 : Fri Apr 08 2011 - 09:34:26 MDT