NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.
To learn about what's going on, see About the Archive Site.
Hi James, > I'd gladly try the straightforward way, but I can't think of one! > > If there was a signature for ScalarMap.setRange which could do something > like: > lonMap.SetRange(0,180,-180,0) > instead of the > lonMap.setRange(0,360) that we are currently using, then that would have > the desired effect I think... but I can't see a way of doing this. Oops, I misinterpreted your question as looking for something like lonMap.setRange(-180, 180). You want the same range setRange(0, 360), but you just want the numbers greater than 180 to be labeled negative. If you use setRange(0, 360) it should put the negative values in the right place (i.e., add 360 to their values), but the labels will be positive. You can override the labels with the AxisScale.setLabelTable() method. So perhaps lonMap.setRange(0, 360) and setLabelTable() will solve your problem? A CS mapping (0->180, -180->0) to (0, 360) is that it will have a discontinuity which is lilely to cause trouble. Let us know if this will will work. Cheers, Bill
visad
archives: