This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Hi Alan- > Institution: COMET > Package Version: 2.0 > Operating System: os.name:Windows XP; os.arch:x86; os.version:5.1; > Hardware Information: java.vendor:Sun Microsystems Inc.; > java.version:1.5.0_06; java.home:C:\\Program Files\\IDV_2.0\\jre; > j3d.version:1.3.2 fcs (build12); j3d.vendor:Sun Microsystems, Inc.; > j3d.renderer:OpenGL; > Inquiry: Hi guys, > I've been trying to tweak some projections so that I can match other plots I > already have. > It appears that there is no way to edit the parameters for a lat/lon > projection, > we're stuck with an origin of 0 lat / 0 lon. Is there anyway around this? At present, there's not a way to set the corners of the box. It's on our (long) list of things to do. In the projection manager when you create a new projection, you can move the center point by right clicking and dragging the map. So, if you do that and move it so australia is in the middle of the panel, that will shift the center point. You can then use the box to define the bounding region. However, that might not be as exact as you want it. To further refine this, after you save the map and exit the IDV, you can edit the file that stores the map parameters. In you .metapps/DefaultIdv directory under your home directory, you should see a projections.xml file. Make a backup of this before editing! Then edit the file with a text editor and tweak the parameters. Here's an example of one I creates by moving the map: <method name="add"> <object class="ucar.unidata.geoloc.projection.LatLonProjection"> <property name="CenterLon"> <double>135.00000000000003</double> </property> <property name="DefaultMapArea"> <object class="ucar.unidata.geoloc.ProjectionRect"> <constructor> <double>108.00000000000004</double> <double>-54.0</double> <double>162.00000000000006</double> <double>5.399999999999999</double> </constructor> </object> </property> <property name="Name"> <string><![CDATA[oz]]></string> </property> </object> </method> You can edit the center lon as well as the bounding box. The parameters for the bounding box (ProjectionRect) are lower left lon, lower left lat, upper right lon, upper right lat respectively. When you start the IDV, this projection will have the new settings. Not that straightforward, but doable as long as you don't mess up editing. ;-) > (I'm trying to split the projection in western Australia so that I can more > cleanly separate the Pacific and Indian Oceans). > > BTW, I'm using using version 2.0. Don Murray Ticket Details =================== Ticket ID: BWS-773802 Department: Support IDV Priority: Normal Status: Open