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.
HP- I forgot to check in the code last night, so the update wasn't in today's build. Sorry about that. I updated the nightly build with the fix, so if you want to try again, download the new code. > I have tried your new version. For the classical natural colours it > works fine. However, when wanting to combine only two channels, i.e. > when repeating one of them on 2 colour planes, I get the error: > > An error has occurred: > Creating image sequence > visad.FieldImpl You need to use the 3 Color (RGB) Display instead of the Image Display for a 3 color image. Even if you didn't get the ClassCastException, you'd end up with an improper display. > java.lang.ClassCastException: visad.FieldImpl > at > ucar.unidata.idv.control.ImageSequenceControl.loadDataInner(ImageSequenceControl.java:515) > at > ucar.unidata.idv.control.ImageSequenceControl.loadData(ImageSequenceControl.java:381) > at > ucar.unidata.idv.control.ImageSequenceControl.loadData(ImageSequenceControl.java:370) > at > ucar.unidata.idv.control.ImageSequenceControl.access$000(ImageSequenceControl.java:109) > at > ucar.unidata.idv.control.ImageSequenceControl$1.run(ImageSequenceControl.java:230) > at ucar.unidata.util.Misc$2.run(Misc.java:928) > > > Unidata IDV Support wrote: > > HP- > > > >> Institution: EUMETSAT > >> Package Version: 2.1b1 > >> 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.1b1\\jre; > >> j3d.version:1.3.2 fcs (build12); j3d.vendor:Sun Microsystems, Inc.; > >> j3d.renderer:OpenGL; > >> Inquiry: The system formula Three color (RGB) image has the same problem I > >> originally had with > >> my RGB routines when feeding it with the same image for two colour planes. > >> I propose > >> that you use the GridUtil.setParamType construct as I had been advised to > >> do. > >> > >> Just to give you a practical application of such a formula call. We often > >> mix the M8HRV with > >> a M8 channel (e.g. VIS1.6 or IR10.8) in this way: > >> R HRV > >> G HRV > >> B M8 > >> This gives nice slightly coloured pictures that preserve the higher > >> spatial resolution. > > > > Thanks for this info. I've modified the formula to call a new Jython > > procedure: > > > > def combineRGB(red, green, blue): > > from ucar.unidata.data.grid.GridUtil import * > > red=setParamType(red,makeRealType("redimage"), 0) > > green=setParamType(green,makeRealType("greenimage"), 0) > > blue=setParamType(blue,makeRealType("blueimage"), 0) > > return DerivedGridFactory.combineGrids([red,green,blue],1) > > > > instead of combineFields(). This will be in tomorrow's (8/30) build. > > > > BTW, Jeff put in a fix for the problem you encountered with the > > support form. If the message is not sent successfully, the form > > will be displayed and your message will still be there. If nothing > > else, you can cut and paste the text to another app so you won't lose it. > > We're not sure what went wrong, but this will at least keep you from > > losing all your work. > > > > Don Murray > > > > Ticket Details > > =================== > > Ticket ID: HFB-121149 > > Department: Support IDV > > Priority: High > > Status: Open > > > > > > > > Ticket Details =================== Ticket ID: HFB-121149 Department: Support IDV Priority: High Status: Open