[visad] Query : Customization in Scale value

Hello,
For better view you can see this thread on the link below:
http://stackoverflow.com/questions/21428481/how-to-change-scale-value-in-visad-libraray/21457994#21457994

I am new to visAD library.I am trying to plot a 'lowerTerrain.nc' file in
visAD.
But It's longitude(-180 to +180) and latitude(-80 to +80) scale values are
displayed in by default values,which is -150 to +150 for longitude scale(X
axis) and -90 to +90 in latitude scale (Y Axis).
I have tried this:
1) ScalarMap long_X_scalarmap=new ScalarMap(RealType.Longitude, Display.
XAxis);
long_X_scalarmap.setRange(-180.0f,+180.0f);//object of ScalarMap

BUT, NO CHANGE IN THE VALUE ON LONGITUDE Axis.
2)
LatLonLines longLine=new
latLonLines(RealType.Longitude,-180.0f,180.0f,30.0f);
longLine.setVisible(true);
BUT I don't know HOW TO ADD THIS 'longLine' OBJECT ON THE DISPLAY.
REFERENCE:
https://www.unidata.ucar.edu/software/idv/docs/javadoc/ucar/visad/display/LatLonLines.html

Thank You.
-- 

*Devanshi*
  • 2014 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the visad archives: