-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refid KeyError when adding SNAP "Collocate" node to workflow #189
Comments
Hi @pbrotoisworo I have never used the <?xml version="1.0" ?><node id="Collocate">
<operator>Collocate</operator>
<sources>
<sourceProduct refid="Read"/>
<slave/>
<sourceProducts/>
</sources>
<parameters class="com.bc.ceres.binding.dom.XppDomElement">
<sourceProductPaths/>
<masterProductName/>
<targetProductType>COLLOCATED</targetProductType>
<renameMasterComponents>true</renameMasterComponents>
<renameSlaveComponents>true</renameSlaveComponents>
<masterComponentPattern/>
<slaveComponentPattern/>
<resamplingType>NEAREST_NEIGHBOUR</resamplingType>
</parameters>
</node> passing multiple IDs as source to a node was developed for <?xml version="1.0" ?><node id="SliceAssembly">
<operator>SliceAssembly</operator>
<sources>
<sourceProduct refid="Read"/>
<sourceProduct.1 refid="Read (2)"/>
</sources>
<parameters>
<selectedPolarisations/>
</parameters>
</node> I am sure it is not so hard to adjust, but it will take me some days to find the time for it. If you are faster then a PR is of course always appreciated 😉. |
Hmm, I found the relevant XML file in the .pyrosar folder. But I'm not sure where is the code that creates the data in |
This is all done in function pyroSAR.snap.auxil.parse_node. It executes Setting the node's source(s) is done here. So the first question is whether |
Ah I see. Thanks for the pointers I'll take a look at it. |
Awesome! Thanks @pbrotoisworo |
Hello, I get an error when trying to create an XML file with the SNAP "Collocate" operator. I haven't encountered this before and the code should be right.
Windows 8
Anaconda virtual environment
Via conda
SNAP
I've confirmed that this graph should work in SNAP. I tested it in the GUI. Here is an XML that I created using the graph tool in SNAP GUI.
Open XML from SNAP GUI
The text was updated successfully, but these errors were encountered: