Comments (5)
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 .pyrosar\snap\nodes
. Can you point me to where it is @johntruckenbrodt ? I think I can try and sort this out.
from pyrosar.
This is all done in function pyroSAR.snap.auxil.parse_node. It executes gpt Collocate -h
, reads the XML representation, and stores it in the .pyrosar/snap/nodes
folder.
Setting the node's source(s) is done here. Node.source
has a get
method (property
) and a set
method (@source.setter
).
So the first question is whether parse_node
has to be modified so that the XML representation is better or whether this looks alright and just the source.setter
has to be adjusted to properly fill in the values of the list of node IDs you want to set as source.
from pyrosar.
Hi @pbrotoisworo I have never used the Collocate
node and apparently pyroSAR is not treating it correctly.
The XMl template looks like this:
<?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 SliceAssembly
, whose template looks like this:
<?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
from pyrosar.
Ah I see. Thanks for the pointers I'll take a look at it.
from pyrosar.
Awesome! Thanks @pbrotoisworo
from pyrosar.
Related Issues (20)
- handling of GEE image catalogs HOT 6
- Geocode creates temp files but never completes it's process HOT 26
- change a property in `/etc/snap.properties` via pyroSAR HOT 5
- encountering FileNotFoundError during parse_node HOT 6
- `snap.auxdata.dem_create` Check if files listed in VRT exist HOT 2
- dem_create hangs when using gdal 3.4.1 and pyroSAR 0.16 HOT 7
- Cannot read version information from messages.log HOT 2
- beta0 output possible with snap.util.geocode? HOT 2
- control `snap.geocode` processing extent via `externalDEMFile`
- Inconsistent Group Error [SNAP] HOT 1
- NoData on ocean pixels with Copernicus 30m Global DEM HOT 6
- AWS Copernicus DEM ancillary products HOT 1
- Add support for sarsen calibration HOT 6
- UnicodeDecodeError & Range-doppler HOT 1
- sqlalchemy connection issue in drivers.py HOT 16
- new Copernicus DEM download option HOT 2
- UserWarning: could not find Gamma installation directory; please set the GAMMA_HOME environment variable HOT 3
- Installation problem HOT 3
- inability to process scenes crossing the antimeridian
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyrosar.