Did you enjoy
nprocs=integer Number of threads for parallel computing
Did you enjoy
nprocs=integer Number of threads for parallel computing
As this is crucial, I am adding more people, so maybe we move this to the right direction ![]()
@neteler @wenzeslaus @martinl @annakrat
what would you suggest to aim for a metadata structure, that will be after used by tools? beside wavelength and other band wise metadata we must add additional ones to make processing possible. For now all the metadata stored by i.hyper has a dummy scheme, as it is simply written in comments and then parsed. We should update this somehow in a better way, then refactor all the i.hyper tools to follow it, then build other tools based on that. That metadata scheme should also be extendable. Any hints?
Thanks, will try, so far exporting the whole rast3d and running r.mapcalc on each band takes few minutes, then I r.to.rast3d with all of the metadata in description
One suggestion is to use write the metadata into a JSON and save them with the 3D raster (e.g. grid3/<mapname>/hyper.json). I am sending Alen a separate email with AI-generated code that could be a good start.
Only 2d mapcalc is parallel for now. I am not sure whether the 3D can be similarly parallelized.
Alen told me he reads all his needs (by chunk) in a numpy array, then computes everything and writes back, though I understand the attraction for that as a prototype, it puts r3.mapcalc into a drawer. But then, I also preferred the r.mapcalc at this point too for speed reasons. We have to think a bit about all that eventually.
For atmospheric correction, I will need to read several things from the images header. Non exhaustive list:
Integration of libradtran input generation into SMAC, getting there. Need to get timestamp in, it is using today’s date as satellite acquisition date…
As discussed, i Will dig in @annakrat suggestions, then suggest a metadata structure (what you wrote + other) and when agreed, try to implement it and refactor all the other modules to account it.
also, can you add in i.hyper.explore the option of min/max manual threshold values? I need to see the curves output from i.hyper.SMAC, but there are few negative values, and one huge positive value ruining the quality of the reflectance curves. Thank you
Ok!
My plan is to dig into it in the second part of February.
For now:
After that (testing + PR) It will be the time to jump on other functionalities under the same metadata:
I wanted also to add a module for soil moisture content, starting with NRAL.
Hi, looking forward to a unified and detailed metadata system, so I can continue building hyper addons directly with them.
I am using Tanager Agri sample of Kanpur (India) for i.hyper.smac
When you start working on Soil Moisture, please do check with me if it is not already in my TODO/DONE list