Can Band Math Only Be Performed On Primary Raster Element?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Can Band Math Only Be Performed On Primary Raster Element?

rgoffena

Noticed the following:

1) Start Application.

2) User loaded dataset.

3) Application creates RasterElement1, RasterLayer1, and View1.  RasterElement1 is displayed by RasterLayer1 within View1.

4) User performed an action which caused project specific plugin to create RasterLayer2 and RasterElement2.  RasterElement2 has fewer bands/frames than RasterElement1.  RasterElement2 is displayed by RasterLayer2 within View1.  RasterLayer2 is displayed on top of RasterLayer1, within View1.

5) Select General Algorithms->Band Math.

6) Note that the bands for RasterElement1 are displayed within the Band Math Dialog.

 

Is there any way for the user to select to run Band Math on RasterElement2 from this example?  If not, should there by a way to run Band Math on RasterElement2 from this example?

 

Again, the project I’m working on has no immediate need to use Band Math, so need to respond quickly.

 

Robert Goffena
Ball Aerospace & Technologies Corp.
2875 Presidential Dr.

Fairborn, OH 45324-6269
Phone:  (937) 320-4096
Fax:  (937) 429-1687
Email:  [hidden email]

 


This message and any enclosures are intended only for the addressee.  Please  
notify the sender by email if you are not the intended recipient.  If you are  
not the intended recipient, you may not use, copy, disclose, or distribute this  
message or its contents or enclosures to any other person and any such actions  
may be unlawful.  Ball reserves the right to monitor and review all messages  
and enclosures sent to or from this email address.
Reply | Threaded
Open this post in threaded view
|

RE: Can Band Math Only Be Performed On Primary Raster Element?

Kip Streithorst
Administrator

BandMath is creating an input argument with the name of Executable::DataElementArg().  Any argument with this name that is of type DataElement or one of it’s subclasses will be populated with the primary raster element of the current spatial data window when the plug-in executed from a menu command.  So, yes the behavior you are seeing is the correct behavior.

 

Thanks,

Kip

 


From: Robert Goffena [mailto:[hidden email]]
Sent: Friday, July 18, 2008 9:35 AM
To: [hidden email]
Subject: Can Band Math Only Be Performed On Primary Raster Element?

 

Noticed the following:

1) Start Application.

2) User loaded dataset.

3) Application creates RasterElement1, RasterLayer1, and View1.  RasterElement1 is displayed by RasterLayer1 within View1.

4) User performed an action which caused project specific plugin to create RasterLayer2 and RasterElement2.  RasterElement2 has fewer bands/frames than RasterElement1.  RasterElement2 is displayed by RasterLayer2 within View1.  RasterLayer2 is displayed on top of RasterLayer1, within View1.

5) Select General Algorithms->Band Math.

6) Note that the bands for RasterElement1 are displayed within the Band Math Dialog.

 

Is there any way for the user to select to run Band Math on RasterElement2 from this example?  If not, should there by a way to run Band Math on RasterElement2 from this example?

 

Again, the project I’m working on has no immediate need to use Band Math, so need to respond quickly.

 

Robert Goffena
Ball Aerospace & Technologies Corp.
2875 Presidential Dr.

Fairborn, OH 45324-6269
Phone:  (937) 320-4096
Fax:  (937) 429-1687
Email:  [hidden email]

 


This message and any enclosures are intended only for the addressee.  Please  
notify the sender by email if you are not the intended recipient.  If you are  
not the intended recipient, you may not use, copy, disclose, or distribute this  
message or its contents or enclosures to any other person and any such actions  
may be unlawful.  Ball reserves the right to monitor and review all messages  
and enclosures sent to or from this email address.

This message and any enclosures are intended only for the addressee.  Please  
notify the sender by email if you are not the intended recipient.  If you are  
not the intended recipient, you may not use, copy, disclose, or distribute this  
message or its contents or enclosures to any other person and any such actions  
may be unlawful.  Ball reserves the right to monitor and review all messages  
and enclosures sent to or from this email address.
Reply | Threaded
Open this post in threaded view
|

RE: Can Band Math Only Be Performed On Primary Raster Element?

tclarke
Administrator
In reply to this post by rgoffena
RE: Can Band Math Only Be Performed On Primary Raster Element?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

The default behavior for plug-ins which are executed via a menu/toolbar action is to populate the DataElement argument (if present) with the primary RasterElement in the active view. This is how band math is run when you select General Algorithms->Band Math. You can run band math from a wizard and pass in another RasterElement if you want or you can execute it from a plug-in.



________________________________

From: Robert Goffena [[hidden email]]
Sent: Friday, July 18, 2008 9:35 AM
To: [hidden email]
Subject: Can Band Math Only Be Performed On Primary Raster Element?



Noticed the following:

1) Start Application.

2) User loaded dataset.

3) Application creates RasterElement1, RasterLayer1, and View1.  RasterElement1 is displayed by RasterLayer1 within View1.

4) User performed an action which caused project specific plugin to create RasterLayer2 and RasterElement2.  RasterElement2 has fewer bands/frames than RasterElement1.  RasterElement2 is displayed by RasterLayer2 within View1.  RasterLayer2 is displayed on top of RasterLayer1, within View1.

5) Select General Algorithms->Band Math.

6) Note that the bands for RasterElement1 are displayed within the Band Math Dialog.



Is there any way for the user to select to run Band Math on RasterElement2 from this example?  If not, should there by a way to run Band Math on RasterElement2 from this example?



Again, the project I’m working on has no immediate need to use Band Math, so need to respond quickly.



Robert Goffena
Ball Aerospace & Technologies Corp.
2875 Presidential Dr.

Fairborn, OH 45324-6269
Phone:  (937) 320-4096
Fax:  (937) 429-1687
Email:  [hidden email]





This message and any enclosures are intended only for the addressee.  Please 
notify the sender by email if you are not the intended recipient.  If you are 
not the intended recipient, you may not use, copy, disclose, or distribute this 
message or its contents or enclosures to any other person and any such actions 
may be unlawful.  Ball reserves the right to monitor and review all messages 
and enclosures sent to or from this email address.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)

iD8DBQFIgJ+9+xUTKUxH/LkRAlFTAJ9NAKU5B8C3SVbpwB5/yFbggcsWdwCcCljM
CERlzt+lEnR0UvR9ZabUC7E=
=Bcge
-----END PGP SIGNATURE-----


This message and any enclosures are intended only for the addressee.  Please  
notify the sender by email if you are not the intended recipient.  If you are  
not the intended recipient, you may not use, copy, disclose, or distribute this  
message or its contents or enclosures to any other person and any such actions  
may be unlawful.  Ball reserves the right to monitor and review all messages  
and enclosures sent to or from this email address.

PGPexch.htm (10K) Download Attachment
PGPexch.htm.asc (266 bytes) Download Attachment