r.hants and r.series.lwr in Windows

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

r.hants and r.series.lwr in Windows

Sajid Pareeth-2
Hallo

I am trying to establish a workflow to gapfill temporal maps using r.hants and r.series.lwr. It is important that the solution also works in windows for the teaching.

The issue I am encountering is that both r.hants and r.series.lwr are returning 0 values in Windows with a majority of the valid pixels in the original raster converted to NULL() in outputs.
While in Linux it works well and gives the intended results.

Specs:
Windows 10,  GRASS 7.8.3
Ubuntu 18.04 LTS, GRASS 7.8.3

Here are the commands I use:
r.series.lwr -l -h -i file=maps.txt suffix=_lwr order=2 weight=tricube range=0,inf fet=0.5 dod=3 maxgap=3 --o
r.hants -l -h -i file=maps.txt suffix=_hants range=0,inf nf=3 fet=0.5 --o

I used the same mapset in both windows and Linux to run these modules. The mapset was created in windows, tried running these commands and later accessed the same mapset through Linux and ran the commands.
In windows r.univar returns:
r.univar ETact_SEBAL_2019_03_mm_month_lwr
 100%
total null and non-null cells: 1534326
total null cells: 1473343
Of the non-null cells:
----------------------
n: 60983
minimum: 0
maximum: 0
range: 0
mean: 0
mean of absolute values: 0
standard deviation: 0
variance: 0
variation coefficient: nan %
sum: 0

In Linux after RERUNNING the r.series.lwr command, r.univar returns:
r.univar ETact_SEBAL_2019_03_mm_month_lwr
 100%
total null and non-null cells: 1534326
total null cells: 28600
Of the non-null cells:
----------------------
n: 1505726
minimum: 0
maximum: 130.153
range: 130.153
mean: 11.7246
mean of absolute values: 11.7246
standard deviation: 21.0032
variance: 441.136
variation coefficient: 179.138 %
sum: 17654069.6570365

 Any hint on what must be going wrong?

Best Regards

Sajid


_______________________________________________
grass-user mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/grass-user
Reply | Threaded
Open this post in threaded view
|

Re: r.hants and r.series.lwr in Windows - attached example dataset

Sajid Pareeth-2
Hi all

Following up my last email, here is an example dataset, in case you want to check the issue and reproduce it.
Attached a Location/Mapset (TMPLOC/TMPMAP - EPSG:32648) folder with 9 raster maps on which I am trying to apply r.series.lwr and r.hants.

Here are the two commands I tried (also in history):

r.series.lwr -lhi input=`g.list rast map=. pattern=ETact*month$ sep=,` suffix='_lwr' order=2 weight='tricube' range=0,inf fet=0.5 dod=3 maxgap=3 --o
r.hants -l -h -i input=`g.list rast map=. pattern=ETact*month$ sep=,` suffix=_hants range=0,inf nf=3 fet=0.5 --o

As I mentioned in the email, it works as expected in Linux (Ubuntu) but is giving zeros in Windows 10 with no errors. 
I tried other modules like r.series, it works in both Linux and Windows as expected.

Thank you
regards
Sajid

On Fri, Jun 19, 2020 at 5:02 PM Sajid Pareeth <[hidden email]> wrote:
Hallo

I am trying to establish a workflow to gapfill temporal maps using r.hants and r.series.lwr. It is important that the solution also works in windows for the teaching.

The issue I am encountering is that both r.hants and r.series.lwr are returning 0 values in Windows with a majority of the valid pixels in the original raster converted to NULL() in outputs.
While in Linux it works well and gives the intended results.

Specs:
Windows 10,  GRASS 7.8.3
Ubuntu 18.04 LTS, GRASS 7.8.3

Here are the commands I use:
r.series.lwr -l -h -i file=maps.txt suffix=_lwr order=2 weight=tricube range=0,inf fet=0.5 dod=3 maxgap=3 --o
r.hants -l -h -i file=maps.txt suffix=_hants range=0,inf nf=3 fet=0.5 --o

I used the same mapset in both windows and Linux to run these modules. The mapset was created in windows, tried running these commands and later accessed the same mapset through Linux and ran the commands.
In windows r.univar returns:
r.univar ETact_SEBAL_2019_03_mm_month_lwr
 100%
total null and non-null cells: 1534326
total null cells: 1473343
Of the non-null cells:
----------------------
n: 60983
minimum: 0
maximum: 0
range: 0
mean: 0
mean of absolute values: 0
standard deviation: 0
variance: 0
variation coefficient: nan %
sum: 0

In Linux after RERUNNING the r.series.lwr command, r.univar returns:
r.univar ETact_SEBAL_2019_03_mm_month_lwr
 100%
total null and non-null cells: 1534326
total null cells: 28600
Of the non-null cells:
----------------------
n: 1505726
minimum: 0
maximum: 130.153
range: 130.153
mean: 11.7246
mean of absolute values: 11.7246
standard deviation: 21.0032
variance: 441.136
variation coefficient: 179.138 %
sum: 17654069.6570365

 Any hint on what must be going wrong?

Best Regards

Sajid


_______________________________________________
grass-user mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/grass-user

TMPLOC.zip (490K) Download Attachment