Search found 235 matches
- Sun Nov 30, 2014 4:54 am
- Forum: Scripting
- Topic: Subtracting Images
- Replies: 14
- Views: 8676
Re: Subtracting Images
The only thing I can suggest is that when you run this, you set the maximum heap size on the command line. For a 64-bit machine, something like: java - Xmx3000m ...... for 3GB. If you're on a 32-bit machine, you cannot specify a value larger than about 1500m, regardless of how much more memory you m...
- Wed Nov 26, 2014 8:23 pm
- Forum: Scripting
- Topic: Subtracting Images
- Replies: 14
- Views: 8676
Re: Subtracting Images
Why am I getting an array of 4 values for a lat/lon location? For a given lat/lon coordinate, shouldn't I be getting one corresponding pixel value? ADDE servers always return the number of pixels across a line as a multiple of 4. I cannot tell you why, just that this is the case. The first data val...
- Fri Nov 07, 2014 4:02 pm
- Forum: Scripting
- Topic: Subtracting Images
- Replies: 14
- Views: 8676
Re: Subtracting Images
I kind of arrived at the same idea. It seems simpler than creating another area file. Btw, how do I grab the data-values at a specific location? The key is to request the data from the server with the desired lat/lon coordinates -- that way your code does not need to do any "navigation" a...
- Fri Nov 07, 2014 3:20 am
- Forum: Scripting
- Topic: Subtracting Images
- Replies: 14
- Views: 8676
Re: Subtracting Images
You could pretty easily create a stand-alone Jython script to read and compute the differences on-the-fly using just Jython code and without having to start McIDAS-V ... assuming that for this function, you don't need the selection or display power it provides. The ADDE servers can return a very sma...
- Wed Jul 02, 2014 5:32 pm
- Forum: Scripting
- Topic: Utilizing XRGF
- Replies: 1
- Views: 1825
Re: Utilizing XRGF
There are at least two options that come to mind: 1. in Jython do: makeDataSource("/temp/mydrw.xgrf") (pointing at your file). The side-effect of this is that it will usually pop up the Drawing Control window. 2. make a bundle and then load it when you want to display the "drawing&quo...
- Tue Jul 01, 2014 6:31 pm
- Forum: Scripting
- Topic: Problems with annotations in script
- Replies: 10
- Views: 5684
Re: Problems with annotations in script
I agree about the "altitude" value....good catch! Also, I wanted to mention that the projection should not matter since your values are located by lat/lon coordinates -- you should be able to change the projection (or use the one specified in the GRIB file), and the values will "reloc...
- Mon Jun 30, 2014 7:19 pm
- Forum: Scripting
- Topic: Problems with annotations in script
- Replies: 10
- Views: 5684
Re: Problems with annotations in script
One more note: another way to "annotate" your display would be to use the Drawing Control import/export feature (the file extension is ".xgrf". You can create a text file with information about your annotations / drawings. Refer to the "Drawing Control" section of the U...
- Mon Jun 30, 2014 6:24 pm
- Forum: Scripting
- Topic: Problems with annotations in script
- Replies: 10
- Views: 5684
Re: Problems with annotations in script
There are a couple of possibilities -- first, the "alignment=" might be moving the labels...you might try just removing that. Second, with a proportionally-spaced font, sometimes the computation of the width of the text can produce an issue like that...you might specify a fixed-width font ...
- Sat Jun 28, 2014 3:56 pm
- Forum: Scripting
- Topic: Problems with annotations in script
- Replies: 10
- Views: 5684
Re: Problems with annotations in script
Hi --
Can you send a copy of your text file, and clarify how you are reading and displaying the data? I ask because there are at least two different ways to do this.
Can you send a copy of your text file, and clarify how you are reading and displaying the data? I ask because there are at least two different ways to do this.
- Fri Jun 06, 2014 4:20 pm
- Forum: Scripting
- Topic: change contour interval
- Replies: 3
- Views: 2508
Re: change contour interval
Two possibilities come to mind:You can explore "aggregation" of the netcdf files: http://www.unidata.ucar.edu/software/thredds/current/netcdf-java/ncml/Aggregation.html Check out "Exercise 4"... you can create an NCML file (a kind of XML file) that tells the netcdf library to log...