[GRASS-dev] lib/gis/band_reference.c ?

Stefan Blumentrath Stefan.Blumentrath at nina.no
Mon Aug 23 02:55:46 PDT 2021


Hi,

I do have some climate data that comes as netCDF with a time series for several variables (max, min, avg temperature).

Currently (before band references), I would create a separate STRDS for each variable. If it would be possible to use custom band references (I did not find how to do that in the documentation, any hints where to look?), they could come in handy to have e.g. just one climate STRDS with different aggregations as "bands".

The same concept could apply to results from t.rast.aggregate if multiple aggregations are returned...
That is not exactly an "imagery band", but NDVI is also just an artificial band, isn`t it...

Cheers
Stefan


-----Original Message-----
From: grass-dev <grass-dev-bounces at lists.osgeo.org> On Behalf Of Martin Landa
Sent: torsdag 18. mars 2021 22:22
To: Markus Metz <markus.metz.giswork at gmail.com>
Cc: GRASS developers list <grass-dev at lists.osgeo.org>
Subject: Re: [GRASS-dev] lib/gis/band_reference.c ?

Hi Markus,

st 10. 3. 2021 v 21:56 odesílatel Markus Metz <markus.metz.giswork at gmail.com> napsal:

> The functions defined in lib/gis/band_reference.c [0] are used for raster imagery and should thus be removed from lib/gis. There is also lib/raster/band_reference.c [1] which should be moved to lib/imagery and the functions need to be renamed.
>
> Martin, can you explain the reason for the existence of lib/gis/band_reference.c and lib/raster/band_reference.c and the non-existence of lib/imagery/band_reference.c ?

You are right that both files should be probably merged and moved to raster imagery since the band reference concept is used currently only for imagery data.

The reason why the functionality has been split into libgis and libraster was the assumption that the (band) reference concept could be used also for non-imagery data (raster or vector). But it will probably not happen.

I will take a look on this issue in the next few days. Martin

--
Martin Landa
https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgeo.fsv.cvut.cz%2Fgwiki%2FLanda&data=04%7C01%7C%7C64d1ea325dfd48a42b2408d8ea53dfaf%7C6cef373021314901831055b3abf02c73%7C0%7C0%7C637516993249227453%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=L7Sk9fZ0owlfyVMhgBdL4KHgKfrUCFBOkf0o7ZTXMHk%3D&reserved=0
https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgismentors.cz%2Fmentors%2Flanda&data=04%7C01%7C%7C64d1ea325dfd48a42b2408d8ea53dfaf%7C6cef373021314901831055b3abf02c73%7C0%7C0%7C637516993249227453%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=1oyGEnTkJKoCsGD8v%2BJpS42FCRkpdhONDHAhUTuzTO0%3D&reserved=0
_______________________________________________
grass-dev mailing list
grass-dev at lists.osgeo.org
https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.osgeo.org%2Fmailman%2Flistinfo%2Fgrass-dev&data=04%7C01%7C%7C64d1ea325dfd48a42b2408d8ea53dfaf%7C6cef373021314901831055b3abf02c73%7C0%7C0%7C637516993249227453%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=dr%2FD2Zegi55a2DW8qHND8P3waNx0C8mwUYTUrCO5iEk%3D&reserved=0


More information about the grass-dev mailing list