[GRASS-user] CHELSA climate data set

hi community,

there is an interesting new climate data set called

CHELSA – Climatologies at high resolution for the earth’s land surface areas
[1]

CHELSA is a high resolution (30 arc sec) climate data set for the earth land
surface areas

has anyone already tried to use it within GRASS and maybe with the temporal
GRASS suite?

[1] http://chelsa-climate.org/

-----
best regards
Helmut
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/CHELSA-climate-data-set-tp5284115.html
Sent from the Grass - Users mailing list archive at Nabble.com.

Hi Helmut,

I saw the announcement for this data set some time ago. I’m downloading now, just to give it a look. But, AFAIU, they are climatologies the same as worldclim. The remark is that they cover a more recent period than worldclim (1973-2013 compared to 1950-2000). But I know nothing about the quality of this data. Also worldclim developed a newer dataset that is still in beta (http://worldclim.org/version2)..)… Maybe worth comparison :slight_smile:

In any case, if they are just climatologies (averages over the years), I do not see much that you could do with tgrass that you couldn’t do with the other modules (and I’m fan of tgrass!). You could however obtain the bio-climatic variables yourself with Markus Metz’s add-on r.bioclim (https://grass.osgeo.org/grass70/manuals/addons/r.bioclim.html) that works pretty nice.

Cheers,
Vero

···

2016-09-05 20:34 GMT+02:00 Helmut Kudrnovsky <hellik@web.de>:

hi community,

there is an interesting new climate data set called

CHELSA – Climatologies at high resolution for the earth’s land surface areas
[1]

CHELSA is a high resolution (30 arc sec) climate data set for the earth land
surface areas

has anyone already tried to use it within GRASS and maybe with the temporal
GRASS suite?

[1] http://chelsa-climate.org/


best regards
Helmut

View this message in context: http://osgeo-org.1560.x6.nabble.com/CHELSA-climate-data-set-tp5284115.html
Sent from the Grass - Users mailing list archive at Nabble.com.


grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

Hi Vero,

Veronica Andreo wrote

Hi Helmut,

I saw the announcement for this data set some time ago. I'm downloading
now, just to give it a look. But, AFAIU, they are climatologies the same
as
worldclim. The remark is that they cover a more recent period than
worldclim (1973-2013 compared to 1950-2000). But I know nothing about the
quality of this data. Also worldclim developed a newer dataset that is
still in beta (http://worldclim.org/version2)… Maybe worth comparison :slight_smile:

In any case, if they are just climatologies (averages over the years), I
do
not see much that you could do with tgrass that you couldn't do with the
other modules (and I'm fan of tgrass!). You could however obtain the
bio-climatic variables yourself with Markus Metz's add-on r.bioclim (
https://grass.osgeo.org/grass70/manuals/addons/r.bioclim.html) that works
pretty nice.

Cheers,
Vero

2016-09-05 20:34 GMT+02:00 Helmut Kudrnovsky &lt;

hellik@

&gt;:

hi community,

there is an interesting new climate data set called

CHELSA – Climatologies at high resolution for the earth’s land surface
areas
[1]

CHELSA is a high resolution (30 arc sec) climate data set for the earth
land
surface areas

has anyone already tried to use it within GRASS and maybe with the
temporal
GRASS suite?

[1] http://chelsa-climate.org/

-----
best regards
Helmut
--
View this message in context: http://osgeo-org.1560.x6.
nabble.com/CHELSA-climate-data-set-tp5284115.html

Thanks for the feedback.

I've there is some raster extent issue with this data; already reported to
the data provider.

I'll do some comparisons with the different data sets.

-----
best regards
Helmut
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/CHELSA-climate-data-set-tp5284115p5284220.html
Sent from the Grass - Users mailing list archive at Nabble.com.

On Tue, Sep 6, 2016 at 10:36 AM, Helmut Kudrnovsky <hellik@web.de> wrote:

Hi Vero,

Veronica Andreo wrote

Hi Helmut,

I saw the announcement for this data set some time ago. I'm downloading
now, just to give it a look. But, AFAIU, they are climatologies the same
as
worldclim. The remark is that they cover a more recent period than
worldclim (1973-2013 compared to 1950-2000). But I know nothing about the
quality of this data. Also worldclim developed a newer dataset that is
still in beta (http://worldclim.org/version2)… Maybe worth comparison :slight_smile:

In any case, if they are just climatologies (averages over the years), I
do
not see much that you could do with tgrass that you couldn't do with the
other modules (and I'm fan of tgrass!). You could however obtain the
bio-climatic variables yourself with Markus Metz's add-on r.bioclim (
https://grass.osgeo.org/grass70/manuals/addons/r.bioclim.html) that works
pretty nice.

Cheers,
Vero

2016-09-05 20:34 GMT+02:00 Helmut Kudrnovsky &lt;

hellik@

&gt;:

hi community,

there is an interesting new climate data set called

CHELSA – Climatologies at high resolution for the earth’s land surface
areas
[1]

CHELSA is a high resolution (30 arc sec) climate data set for the earth
land
surface areas

has anyone already tried to use it within GRASS and maybe with the
temporal
GRASS suite?

[1] http://chelsa-climate.org/

-----
best regards
Helmut
--
View this message in context: http://osgeo-org.1560.x6.
nabble.com/CHELSA-climate-data-set-tp5284115.html

Thanks for the feedback.

I've there is some raster extent issue with this data; already reported to
the data provider.

According to gdalinfo, the pixel sizes are
Pixel Size = (0.008333333300000,-0.008333333300000)
should be
Pixel Size = (0.008333333333333,-0.008333333333333)
i.e. fp precision is too low which explains why west is not exactly on
-180 but -180.0001389, just as south is not exactly -90 but
-90.0001389.

There are 43207 columns, but with 30 seconds there should be 43200
columns meaning that there are 7 excess columns to the east.
Considering that the 7 westernmost columns and the 7 easternmost
columns overlap, their values should be identical.

There are 21599 rows, but with 30 seconds covering -90, 90 there
should be 21600 rows. The northernmost row is missing and north should
be 89:59:30. The data would need to be prepared with gdal_translate,
cutting off the 7 excess columns to the east and fixing the extents,
before they can be imported into GRASS.

It seems it is easier to stick to worldclim...

Markus M

According to gdalinfo, the pixel sizes are
Pixel Size = (0.008333333300000,-0.008333333300000)
should be
Pixel Size = (0.008333333333333,-0.008333333333333)
i.e. fp precision is too low which explains why west is not exactly on
-180 but -180.0001389, just as south is not exactly -90 but
-90.0001389.

There are 43207 columns, but with 30 seconds there should be 43200
columns meaning that there are 7 excess columns to the east.
Considering that the 7 westernmost columns and the 7 easternmost
columns overlap, their values should be identical.

There are 21599 rows, but with 30 seconds covering -90, 90 there
should be 21600 rows. The northernmost row is missing and north should
be 89:59:30. The data would need to be prepared with gdal_translate,
cutting off the 7 excess columns to the east and fixing the extents,
before they can be imported into GRASS.

I had a conversation with the data provider.

according to them, the climate rasters are based upon GMTED2010 [1]

in the description of the GMTED2010 data [2]

30 arc-seconds GMTED2010 data:
Resolution (decimal degrees) 0.0083333333
West extent: minimum X-coordinate (longitude) -180.0001388888
South extent: minimum (for mean): -90.0001388888 (for others:
-56.0001388888)
East extent: maximum X-coordinate (longitude) 179.9998611111
North extent: maximum Y-coordinate (latitude) 83.9998611111
Rows (for mean): 20,880 (for others: 16,800)
Columns: 43,200

it seems the original GMTED2010 data has an intentional half-pixel-shift.

any idea?
[1]
http://erouault.blogspot.co.at/2011/12/seamless-access-to-remote-global-multi.html
[2]https://pubs.usgs.gov/of/2011/1073/pdf/of2011-1073.pdf

-----
best regards
Helmut
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/CHELSA-climate-data-set-tp5284115p5284378.html
Sent from the Grass - Users mailing list archive at Nabble.com.

On Tue, Sep 6, 2016 at 8:12 PM, Helmut Kudrnovsky <hellik@web.de> wrote:

According to gdalinfo, the pixel sizes are
Pixel Size = (0.008333333300000,-0.008333333300000)
should be
Pixel Size = (0.008333333333333,-0.008333333333333)
i.e. fp precision is too low which explains why west is not exactly on
-180 but -180.0001389, just as south is not exactly -90 but
-90.0001389.

There are 43207 columns, but with 30 seconds there should be 43200
columns meaning that there are 7 excess columns to the east.
Considering that the 7 westernmost columns and the 7 easternmost
columns overlap, their values should be identical.

There are 21599 rows, but with 30 seconds covering -90, 90 there
should be 21600 rows. The northernmost row is missing and north should
be 89:59:30. The data would need to be prepared with gdal_translate,
cutting off the 7 excess columns to the east and fixing the extents,
before they can be imported into GRASS.

I had a conversation with the data provider.

according to them, the climate rasters are based upon GMTED2010 [1]

in the description of the GMTED2010 data [2]

30 arc-seconds GMTED2010 data:
Resolution (decimal degrees) 0.0083333333

gdalinfo says 0.008333333333333 which is exactly (within double
precision floating point accuracy) 30 arc seconds, while 0.0083333333
is not (documentation is inaccurate, data are accurate).

West extent: minimum X-coordinate (longitude) -180.0001388888
South extent: minimum (for mean): -90.0001388888 (for others:
-56.0001388888)
East extent: maximum X-coordinate (longitude) 179.9998611111
North extent: maximum Y-coordinate (latitude) 83.9998611111
Rows (for mean): 20,880 (for others: 16,800)
Columns: 43,200

it seems the original GMTED2010 data has an intentional half-pixel-shift.

Because GMTED2010 is based on SRTM which also has a half-pixel shift.
GMTED2010 has no excess columns and covers 360 degree in longitude
while SRTM with all tiles patched together has one excess column
because SRTM tiles overlap by one row/column.

The CHELSA extents are different from the GMTED2010 extents. If the
CHELSA climate raster grid geometry is based on GMTED2010, the CHELSA
grid geometry has been modified at some stage. The answer of the data
provider does not explain the grid geometry of the CHELSA raster data.

any idea?

The CHELSA grid geometry has been messed up at some stage and no
longer matches GMTED2010 at 30 arc seconds resolution. The excess 7
columns at the east and the missing northernmost row are a mystery. A
nice test would be to check if the westernmost 7 columns are identical
to the 7 easternmost columns since they cover the same area.
Otherwise, you can try gdal_translate to prepare the data for GRASS
import. The first thing I would do is evaluate spatial accuracy
(spatial pattern matching with worldclim).

Markus M

[1]
http://erouault.blogspot.co.at/2011/12/seamless-access-to-remote-global-multi.html
[2]https://pubs.usgs.gov/of/2011/1073/pdf/of2011-1073.pdf

-----
best regards
Helmut
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/CHELSA-climate-data-set-tp5284115p5284378.html
Sent from the Grass - Users mailing list archive at Nabble.com.
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

On Tue, Sep 6, 2016 at 10:22 PM, Markus Metz
<markus.metz.giswork@gmail.com> wrote:

On Tue, Sep 6, 2016 at 8:12 PM, Helmut Kudrnovsky <hellik@web.de> wrote:

According to gdalinfo, the pixel sizes are
Pixel Size = (0.008333333300000,-0.008333333300000)
should be
Pixel Size = (0.008333333333333,-0.008333333333333)
i.e. fp precision is too low which explains why west is not exactly on
-180 but -180.0001389, just as south is not exactly -90 but
-90.0001389.

There are 43207 columns, but with 30 seconds there should be 43200
columns meaning that there are 7 excess columns to the east.
Considering that the 7 westernmost columns and the 7 easternmost
columns overlap, their values should be identical.

There are 21599 rows, but with 30 seconds covering -90, 90 there
should be 21600 rows. The northernmost row is missing and north should
be 89:59:30. The data would need to be prepared with gdal_translate,
cutting off the 7 excess columns to the east and fixing the extents,
before they can be imported into GRASS.

I had a conversation with the data provider.

according to them, the climate rasters are based upon GMTED2010 [1]

in the description of the GMTED2010 data [2]

30 arc-seconds GMTED2010 data:
Resolution (decimal degrees) 0.0083333333

gdalinfo says 0.008333333333333 which is exactly (within double
precision floating point accuracy) 30 arc seconds, while 0.0083333333
is not (documentation is inaccurate, data are accurate).

West extent: minimum X-coordinate (longitude) -180.0001388888
South extent: minimum (for mean): -90.0001388888 (for others:
-56.0001388888)
East extent: maximum X-coordinate (longitude) 179.9998611111
North extent: maximum Y-coordinate (latitude) 83.9998611111
Rows (for mean): 20,880 (for others: 16,800)
Columns: 43,200

it seems the original GMTED2010 data has an intentional half-pixel-shift.

Because GMTED2010 is based on SRTM which also has a half-pixel shift.
GMTED2010 has no excess columns and covers 360 degree in longitude
while SRTM with all tiles patched together has one excess column
because SRTM tiles overlap by one row/column.

The CHELSA extents are different from the GMTED2010 extents. If the
CHELSA climate raster grid geometry is based on GMTED2010, the CHELSA
grid geometry has been modified at some stage. The answer of the data
provider does not explain the grid geometry of the CHELSA raster data.

The CHELSA data have the same half-pixel shift like GMTED2010 with
half-pixel shift meaning a half-pixel shift of SRTM at 1 arc second
resolution. That means that in addition to the 7 excess columns to the
east, the southernmost row of the CHELSA data also needs to be cut off
with gdal_translate because it extents beyond 90S which GRASS does not
allow.

Markus M

any idea?

The CHELSA grid geometry has been messed up at some stage and no
longer matches GMTED2010 at 30 arc seconds resolution. The excess 7
columns at the east and the missing northernmost row are a mystery. A
nice test would be to check if the westernmost 7 columns are identical
to the 7 easternmost columns since they cover the same area.
Otherwise, you can try gdal_translate to prepare the data for GRASS
import. The first thing I would do is evaluate spatial accuracy
(spatial pattern matching with worldclim).

Markus M

[1]
http://erouault.blogspot.co.at/2011/12/seamless-access-to-remote-global-multi.html
[2]https://pubs.usgs.gov/of/2011/1073/pdf/of2011-1073.pdf

-----
best regards
Helmut
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/CHELSA-climate-data-set-tp5284115p5284378.html
Sent from the Grass - Users mailing list archive at Nabble.com.
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

On Tue, Sep 6, 2016 at 10:22 PM, Markus Metz
<markus.metz.giswork@gmail.com> wrote:

On Tue, Sep 6, 2016 at 8:12 PM, Helmut Kudrnovsky <hellik@web.de> wrote:

According to gdalinfo, the pixel sizes are
Pixel Size = (0.008333333300000,-0.008333333300000)
should be
Pixel Size = (0.008333333333333,-0.008333333333333)
i.e. fp precision is too low which explains why west is not exactly on
-180 but -180.0001389, just as south is not exactly -90 but
-90.0001389.

There are 43207 columns, but with 30 seconds there should be 43200
columns meaning that there are 7 excess columns to the east.
Considering that the 7 westernmost columns and the 7 easternmost
columns overlap, their values should be identical.

There are 21599 rows, but with 30 seconds covering -90, 90 there
should be 21600 rows. The northernmost row is missing and north should
be 89:59:30. The data would need to be prepared with gdal_translate,
cutting off the 7 excess columns to the east and fixing the extents,
before they can be imported into GRASS.

I had a conversation with the data provider.

according to them, the climate rasters are based upon GMTED2010 [1]

in the description of the GMTED2010 data [2]

30 arc-seconds GMTED2010 data:
Resolution (decimal degrees) 0.0083333333

gdalinfo says 0.008333333333333 which is exactly (within double
precision floating point accuracy) 30 arc seconds, while 0.0083333333
is not (documentation is inaccurate, data are accurate).

West extent: minimum X-coordinate (longitude) -180.0001388888
South extent: minimum (for mean): -90.0001388888 (for others:
-56.0001388888)
East extent: maximum X-coordinate (longitude) 179.9998611111
North extent: maximum Y-coordinate (latitude) 83.9998611111
Rows (for mean): 20,880 (for others: 16,800)
Columns: 43,200

it seems the original GMTED2010 data has an intentional half-pixel-shift.

Because GMTED2010 is based on SRTM which also has a half-pixel shift.
GMTED2010 has no excess columns and covers 360 degree in longitude
while SRTM with all tiles patched together has one excess column
because SRTM tiles overlap by one row/column.

The CHELSA extents are different from the GMTED2010 extents. If the
CHELSA climate raster grid geometry is based on GMTED2010, the CHELSA
grid geometry has been modified at some stage. The answer of the data
provider does not explain the grid geometry of the CHELSA raster data.

Helmut and me have contacted one of the CHELSA authors. He eventually
acknowledged that their coordinates are suboptimal and said that the
coordinate issues would originate from the GMTED2010 data set. What
they wrote on http://chelsa-climate.org/known-issues/ for their V1.0
is not sufficient. The CHELSA author yesterday said that he'll fix the
coordinates for the next dataset release. Let's see...

For now I have added a new CHELSA section in the Wiki:
https://grasswiki.osgeo.org/wiki/Global_datasets#CHELSA_climate_maps

... if that's right, no idea - some statistical analysis in complex
terrain like the Alps or similar would probably tell if the coordinate
fix is right.

best,
markusN

any idea?

The CHELSA grid geometry has been messed up at some stage and no
longer matches GMTED2010 at 30 arc seconds resolution. The excess 7
columns at the east and the missing northernmost row are a mystery. A
nice test would be to check if the westernmost 7 columns are identical
to the 7 easternmost columns since they cover the same area.
Otherwise, you can try gdal_translate to prepare the data for GRASS
import. The first thing I would do is evaluate spatial accuracy
(spatial pattern matching with worldclim).

Markus M

[1]
http://erouault.blogspot.co.at/2011/12/seamless-access-to-remote-global-multi.html
[2]https://pubs.usgs.gov/of/2011/1073/pdf/of2011-1073.pdf

-----
best regards
Helmut
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/CHELSA-climate-data-set-tp5284115p5284378.html
Sent from the Grass - Users mailing list archive at Nabble.com.
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

--
Markus Neteler
http://www.mundialis.de - free data with free software
http://grass.osgeo.org
http://courses.neteler.org/blog

On Tue, Feb 7, 2017 at 11:14 AM, Markus Neteler <neteler@osgeo.org> wrote:

On Tue, Sep 6, 2016 at 10:22 PM, Markus Metz
<markus.metz.giswork@gmail.com> wrote:

On Tue, Sep 6, 2016 at 8:12 PM, Helmut Kudrnovsky <hellik@web.de> wrote:

According to gdalinfo, the pixel sizes are
Pixel Size = (0.008333333300000,-0.008333333300000)
should be
Pixel Size = (0.008333333333333,-0.008333333333333)
i.e. fp precision is too low which explains why west is not exactly on
-180 but -180.0001389, just as south is not exactly -90 but
-90.0001389.

There are 43207 columns, but with 30 seconds there should be 43200
columns meaning that there are 7 excess columns to the east.
Considering that the 7 westernmost columns and the 7 easternmost
columns overlap, their values should be identical.

There are 21599 rows, but with 30 seconds covering -90, 90 there
should be 21600 rows. The northernmost row is missing and north should
be 89:59:30. The data would need to be prepared with gdal_translate,
cutting off the 7 excess columns to the east and fixing the extents,
before they can be imported into GRASS.

I had a conversation with the data provider.

according to them, the climate rasters are based upon GMTED2010 [1]

in the description of the GMTED2010 data [2]

30 arc-seconds GMTED2010 data:
Resolution (decimal degrees) 0.0083333333
gdalinfo says 0.008333333333333 which is exactly (within double
precision floating point accuracy) 30 arc seconds, while 0.0083333333
is not (documentation is inaccurate, data are accurate).

West extent: minimum X-coordinate (longitude) -180.0001388888
South extent: minimum (for mean): -90.0001388888 (for others:
-56.0001388888)
East extent: maximum X-coordinate (longitude) 179.9998611111
North extent: maximum Y-coordinate (latitude) 83.9998611111
Rows (for mean): 20,880 (for others: 16,800)
Columns: 43,200

it seems the original GMTED2010 data has an intentional half-pixel-shift.

Because GMTED2010 is based on SRTM which also has a half-pixel shift.
GMTED2010 has no excess columns and covers 360 degree in longitude
while SRTM with all tiles patched together has one excess column
because SRTM tiles overlap by one row/column.

The CHELSA extents are different from the GMTED2010 extents. If the
CHELSA climate raster grid geometry is based on GMTED2010, the CHELSA
grid geometry has been modified at some stage. The answer of the data
provider does not explain the grid geometry of the CHELSA raster data.

Helmut and me have contacted one of the CHELSA authors. He eventually
acknowledged that their coordinates are suboptimal and said that the
coordinate issues would originate from the GMTED2010 data set.

There is nothing wrong with the GMTED2010 grid geometry. It is based on SRTM, therefore there is a correct 0.5 arc seconds shift in GMTED2010:

n=83:59:59.50N

s=56:0:0.50S

w=180:0:0.50W

e=179:59:59.50E

What
they wrote on http://chelsa-climate.org/known-issues/ for their V1.0
is not sufficient. The CHELSA author yesterday said that he’ll fix the
coordinates for the next dataset release. Let’s see…

For now I have added a new CHELSA section in the Wiki:
https://grasswiki.osgeo.org/wiki/Global_datasets#CHELSA_climate_maps

You remove the 0.5 arc second shift? I guess it does not matter much for a 30 arc second pixel size.

Compared to GMTED, CHELSA extents further south to 90:0:0.5S which conforms to the GMTED grid geometry. For CHELSA, however gdalinfo reports
Pixel Size = (0.008333333300000,-0.008333333300000)
while for GMTED, gdalinfo reports
Pixel Size = (0.008333333333333,-0.008333333333333)

The reason for the slightly smaller pixel size is most probably reduced floating point precision during creation of the CHELSA data. Unfortunately it changes East from 179.9998611 to 179.9998597 and north from 83.9998611 to 83.9998604.

The more serious problem is that GRASS can not handle ll coordinates like 180:0:0.50W or 90:0:0.5S.

I have relaxed the ll restrictions in my local copy and can now import CHELSA and other for GRASS problematic ll datasets without getting e.g. a narrow N-S strip, or GRASS fixing a subtle rounding error that in fact is not an error. That means after each import I have to manually check if resolution and extents make sense, and if in doubt fix them with r.region.

Markus M

… if that’s right, no idea - some statistical analysis in complex
terrain like the Alps or similar would probably tell if the coordinate
fix is right.

best,
markusN

any idea?

The CHELSA grid geometry has been messed up at some stage and no
longer matches GMTED2010 at 30 arc seconds resolution. The excess 7
columns at the east and the missing northernmost row are a mystery. A
nice test would be to check if the westernmost 7 columns are identical
to the 7 easternmost columns since they cover the same area.
Otherwise, you can try gdal_translate to prepare the data for GRASS
import. The first thing I would do is evaluate spatial accuracy
(spatial pattern matching with worldclim).

Markus M

[1]
http://erouault.blogspot.co.at/2011/12/seamless-access-to-remote-global-multi.html
[2]https://pubs.usgs.gov/of/2011/1073/pdf/of2011-1073.pdf


best regards
Helmut

View this message in context: http://osgeo-org.1560.x6.nabble.com/CHELSA-climate-data-set-tp5284115p5284378.html
Sent from the Grass - Users mailing list archive at Nabble.com.


grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


Markus Neteler
http://www.mundialis.de - free data with free software
http://grass.osgeo.org
http://courses.neteler.org/blog

On Tue, Feb 7, 2017 at 3:32 PM, Markus Metz
<markus.metz.giswork@gmail.com> wrote:
[...]

Compared to GMTED, CHELSA extents further south to 90:0:0.5S which conforms
to the GMTED grid geometry. For CHELSA, however gdalinfo reports
Pixel Size = (0.008333333300000,-0.008333333300000)
while for GMTED, gdalinfo reports
Pixel Size = (0.008333333333333,-0.008333333333333)

The reason for the slightly smaller pixel size is most probably reduced
floating point precision during creation of the CHELSA data.

from personal comm.:
They are currently investigating where the precision is cut in their
workflow (the upcoming V1.2 shall come with a related correction).

Unfortunately it changes East from 179.9998611 to 179.9998597 and north
from 83.9998611 to 83.9998604.

The more serious problem is that GRASS can not handle ll coordinates like
180:0:0.50W or 90:0:0.5S.

I have relaxed the ll restrictions in my local copy and can now import
CHELSA and other for GRASS problematic ll datasets without getting e.g. a
narrow N-S strip, or GRASS fixing a subtle rounding error that in fact is
not an error. That means after each import I have to manually check if
resolution and extents make sense, and if in doubt fix them with r.region.

That's probably rather more a power user task than common user
knowledge... Is there anything we could do at libgis level like
relaxing the ll restrictions along with appropriate user messages?
More and more global datasets are getting published, so the issue will
likely come up more frequently. Just to make it a bit easier :slight_smile:

markusN

The more serious problem is that GRASS can not handle ll >coordinates like

180:0:0.50W or 90:0:0.5S.

As I may unterstand that it's technically possible to have a raster extent
to 90:0:0.5S, but are there maybe data content issues at the south /north
pole?

-----
best regards
Helmut
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/CHELSA-climate-data-set-tp5284115p5306747.html
Sent from the Grass - Users mailing list archive at Nabble.com.

On Tue, Feb 7, 2017 at 3:43 PM, Markus Neteler <neteler@osgeo.org> wrote:

On Tue, Feb 7, 2017 at 3:32 PM, Markus Metz
<markus.metz.giswork@gmail.com> wrote:
[…]

Unfortunately it changes East from 179.9998611 to 179.9998597 and north
from 83.9998611 to 83.9998604.

The more serious problem is that GRASS can not handle ll coordinates like
180:0:0.50W or 90:0:0.5S.

I have relaxed the ll restrictions in my local copy and can now import
CHELSA and other for GRASS problematic ll datasets without getting e.g. a
narrow N-S strip, or GRASS fixing a subtle rounding error that in fact is
not an error. That means after each import I have to manually check if
resolution and extents make sense, and if in doubt fix them with r.region.

That’s probably rather more a power user task than common user
knowledge…

Why a power user task? r.region is an easy to use module, as long as you know the correct grid geometry. And with my relaxed ll restrictions I get less errors and more usable results, in fact I need to use r.region less often than before.

Is there anything we could do at libgis level like
relaxing the ll restrictions along with appropriate user messages?

Yes. The first points would be ll_scan.c, ll_format.c and adj_cellhd.c. That should also remove cryptic errors like “ERROR: Syntax error in cell header”.

More and more global datasets are getting published, so the issue will
likely come up more frequently. Just to make it a bit easier :slight_smile:

For a start, it would be nice if you can create a full SRTM mosaik (not so new data) in GRASS.

Markus M

markusN

Not sure that is what Markus meant, but “relaxed the restriction in my local copy” sounds definitely like a power user task to me. If this is something that can, and will, be done at the libgis level, great. Otherwise, I would be interested to know how to do this.

···

On 10-02-17 17:15, Markus Metz wrote:

On Tue, Feb 7, 2017 at 3:43 PM, Markus Neteler <neteler@osgeo.org> wrote:

On Tue, Feb 7, 2017 at 3:32 PM, Markus Metz
<markus.metz.giswork@gmail.com> wrote:
[…]

Unfortunately it changes East from 179.9998611 to 179.9998597 and north
from 83.9998611 to 83.9998604.

The more serious problem is that GRASS can not handle ll coordinates like
180:0:0.50W or 90:0:0.5S.

I have relaxed the ll restrictions in my local copy and can now import
CHELSA and other for GRASS problematic ll datasets without getting e.g. a
narrow N-S strip, or GRASS fixing a subtle rounding error that in fact is
not an error. That means after each import I have to manually check if
resolution and extents make sense, and if in doubt fix them with r.region.

That’s probably rather more a power user task than common user
knowledge…

Why a power user task? r.region is an easy to use module, as long as you know the correct grid geometry. And with my relaxed ll restrictions I get less errors and more usable results, in fact I need to use r.region less often than before.

Is there anything we could do at libgis level like
relaxing the ll restrictions along with appropriate user messages?

Yes. The first points would be ll_scan.c, ll_format.c and adj_cellhd.c. That should also remove cryptic errors like “ERROR: Syntax error in cell header”.

More and more global datasets are getting published, so the issue will
likely come up more frequently. Just to make it a bit easier :slight_smile:

For a start, it would be nice if you can create a full SRTM mosaik (not so new data) in GRASS.

Markus M

markusN

_______________________________________________
grass-user mailing list
[grass-user@lists.osgeo.org](mailto:grass-user@lists.osgeo.org)
[https://lists.osgeo.org/mailman/listinfo/grass-user](https://lists.osgeo.org/mailman/listinfo/grass-user)

On Fri, Feb 10, 2017 at 5:53 PM, Paulo van Breugel <p.vanbreugel@gmail.com> wrote:

On 10-02-17 17:15, Markus Metz wrote:

On Tue, Feb 7, 2017 at 3:43 PM, Markus Neteler <neteler@osgeo.org> wrote:

On Tue, Feb 7, 2017 at 3:32 PM, Markus Metz
<markus.metz.giswork@gmail.com> wrote:
[…]

Unfortunately it changes East from 179.9998611 to 179.9998597 and north
from 83.9998611 to 83.9998604.

The more serious problem is that GRASS can not handle ll coordinates like
180:0:0.50W or 90:0:0.5S.

I have relaxed the ll restrictions in my local copy and can now import
CHELSA and other for GRASS problematic ll datasets without getting e.g. a
narrow N-S strip, or GRASS fixing a subtle rounding error that in fact is
not an error. That means after each import I have to manually check if
resolution and extents make sense, and if in doubt fix them with r.region.

That’s probably rather more a power user task than common user
knowledge…

Why a power user task? r.region is an easy to use module, as long as you know the correct grid geometry. And with my relaxed ll restrictions I get less errors and more usable results, in fact I need to use r.region less often than before.

Not sure that is what Markus meant, but “relaxed the restriction in my local copy” sounds definitely like a power user task to me. If this is something that can, and will, be done at the libgis level, great.

Fixing most of the ll wrap issues can be done at the libgis level. When I wrote “relaxed the restriction in my local copy”, I meant I would like to commit by local changes, but would also like to know if it is ok to relax the -180, 180 restriction for W-E and the -90, 90 restriction for S-N in GRASS.

Issues as reported e.g. in tickets #352 and #2757 could easily be fixed with r.region, but it would be much more convenient if there would be no need to use r.region.

Markus M

Otherwise, I would be interested to know how to do this.

Is there anything we could do at libgis level like
relaxing the ll restrictions along with appropriate user messages?

Yes. The first points would be ll_scan.c, ll_format.c and adj_cellhd.c. That should also remove cryptic errors like “ERROR: Syntax error in cell header”.

More and more global datasets are getting published, so the issue will
likely come up more frequently. Just to make it a bit easier :slight_smile:

For a start, it would be nice if you can create a full SRTM mosaik (not so new data) in GRASS.

Markus M

markusN


grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user


grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

Hi :slight_smile:

JFYI, CHELSA v1.2 is out

···

2017-02-07 15:43 GMT+01:00 Markus Neteler <neteler@osgeo.org>:

On Tue, Feb 7, 2017 at 3:32 PM, Markus Metz
<markus.metz.giswork@gmail.com> wrote:
[…]

Compared to GMTED, CHELSA extents further south to 90:0:0.5S which conforms
to the GMTED grid geometry. For CHELSA, however gdalinfo reports
Pixel Size = (0.008333333300000,-0.008333333300000)
while for GMTED, gdalinfo reports
Pixel Size = (0.008333333333333,-0.008333333333333)

The reason for the slightly smaller pixel size is most probably reduced
floating point precision during creation of the CHELSA data.

from personal comm.:
They are currently investigating where the precision is cut in their
workflow (the upcoming V1.2 shall come with a related correction).

Unfortunately they have not corrected the precision issue…

gdalinfo CHELSA_temp_2_1979-2013_V1.2_land.tif
Driver: GTiff/GeoTIFF
Files: CHELSA_temp_2_1979-2013_V1.2_land.tif
Size is 43200, 20880
[…]
Origin = (-180.000138888850017,83.999860415150010)
Pixel Size = (0.008333333300000,-0.008333333300000)

Corner Coordinates:
Upper Left (-180.0001389, 83.9998604) (180d 0’ 0.50"W, 83d59’59.50"N)
Lower Left (-180.0001389, -90.0001389) (180d 0’ 0.50"W, 90d 0’ 0.50"S)
Upper Right ( 179.9998597, 83.9998604) (179d59’59.49"E, 83d59’59.50"N)
Lower Right ( 179.9998597, -90.0001389) (179d59’59.49"E, 90d 0’ 0.50"S)
Center ( -0.0001396, -3.0001392) ( 0d 0’ 0.50"W, 3d 0’ 0.50"S)
Band 1 Block=43200x1 Type=Float32, ColorInterp=Gray
NoData Value=-99999

best,

Vero

Veronica Andreo wrote

Hi :slight_smile:

JFYI, CHELSA v1.2 is out

2017-02-07 15:43 GMT+01:00 Markus Neteler &lt;

neteler@

&gt;:

On Tue, Feb 7, 2017 at 3:32 PM, Markus Metz
&lt;

markus.metz.giswork@

&gt; wrote:

[...]
> Compared to GMTED, CHELSA extents further south to 90:0:0.5S which
conforms
> to the GMTED grid geometry. For CHELSA, however gdalinfo reports
> Pixel Size = (0.008333333300000,-0.008333333300000)
> while for GMTED, gdalinfo reports
> Pixel Size = (0.008333333333333,-0.008333333333333)
>
> The reason for the slightly smaller pixel size is most probably reduced
> floating point precision during creation of the CHELSA data.

from personal comm.:
They are currently investigating where the precision is cut in their
workflow (the upcoming V1.2 shall come with a related correction).

Unfortunately they have not corrected the precision issue...

gdalinfo CHELSA_temp_2_1979-2013_V1.2_land.tif
Driver: GTiff/GeoTIFF
Files: CHELSA_temp_2_1979-2013_V1.2_land.tif
Size is 43200, 20880
[...]
Origin = (-180.000138888850017,83.999860415150010)
Pixel Size = (0.008333333300000,-0.008333333300000)

Corner Coordinates:
Upper Left (-180.0001389, 83.9998604) (180d 0' 0.50"W, 83d59'59.50"N)
Lower Left (-180.0001389, -90.0001389) (180d 0' 0.50"W, 90d 0' 0.50"S)
Upper Right ( 179.9998597, 83.9998604) (179d59'59.49"E, 83d59'59.50"N)
Lower Right ( 179.9998597, -90.0001389) (179d59'59.49"E, 90d 0' 0.50"S)
Center ( -0.0001396, -3.0001392) ( 0d 0' 0.50"W, 3d 0' 0.50"S)
Band 1 Block=43200x1 Type=Float32, ColorInterp=Gray
  NoData Value=-99999

best,
Vero

yes, AFAIK they're still working on it.

tested here ver.1.2 with r.in.gdal trunk and

-a
    Auto-adjustment for lat/lon
    Attempt to fix small precision errors in resolution and extents

it seems to give good results.

-----
best regards
Helmut
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/CHELSA-climate-data-set-tp5284115p5319124.html
Sent from the Grass - Users mailing list archive at Nabble.com.

Hi Helli,

Yes, if you want the global map the -a flag plus the relaxed conditions for the extent of global maps are fine…

However, I wanted to also only import the region i’m working on and make use of the -r flag in r.in.gdal… then the problems start… no combination of -a, raster or align parameters in r.region give me the correct region (either the resolution is wrong or the extent). My solution so far is import the global map with r.in.gdal -a, then use r.mapcalc to get the region I need… any other suggestion about better workflow is more than welcome :slight_smile:

best,
Vero

···

2017-05-02 21:45 GMT+02:00 Helmut Kudrnovsky <hellik@web.de>:

Veronica Andreo wrote

Hi :slight_smile:

JFYI, CHELSA v1.2 is out

2017-02-07 15:43 GMT+01:00 Markus Neteler <

neteler@

>:

On Tue, Feb 7, 2017 at 3:32 PM, Markus Metz
<

markus.metz.giswork@

> wrote:

[…]

Compared to GMTED, CHELSA extents further south to 90:0:0.5S which
conforms
to the GMTED grid geometry. For CHELSA, however gdalinfo reports
Pixel Size = (0.008333333300000,-0.008333333300000)
while for GMTED, gdalinfo reports
Pixel Size = (0.008333333333333,-0.008333333333333)

The reason for the slightly smaller pixel size is most probably reduced
floating point precision during creation of the CHELSA data.

from personal comm.:
They are currently investigating where the precision is cut in their
workflow (the upcoming V1.2 shall come with a related correction).

Unfortunately they have not corrected the precision issue…

gdalinfo CHELSA_temp_2_1979-2013_V1.2_land.tif
Driver: GTiff/GeoTIFF
Files: CHELSA_temp_2_1979-2013_V1.2_land.tif
Size is 43200, 20880
[…]
Origin = (-180.000138888850017,83.999860415150010)
Pixel Size = (0.008333333300000,-0.008333333300000)

Corner Coordinates:
Upper Left (-180.0001389, 83.9998604) (180d 0’ 0.50"W, 83d59’59.50"N)
Lower Left (-180.0001389, -90.0001389) (180d 0’ 0.50"W, 90d 0’ 0.50"S)
Upper Right ( 179.9998597, 83.9998604) (179d59’59.49"E, 83d59’59.50"N)
Lower Right ( 179.9998597, -90.0001389) (179d59’59.49"E, 90d 0’ 0.50"S)
Center ( -0.0001396, -3.0001392) ( 0d 0’ 0.50"W, 3d 0’ 0.50"S)
Band 1 Block=43200x1 Type=Float32, ColorInterp=Gray
NoData Value=-99999

best,
Vero

yes, AFAIK they’re still working on it.

tested here ver.1.2 with r.in.gdal trunk and

-a
Auto-adjustment for lat/lon
Attempt to fix small precision errors in resolution and extents

it seems to give good results.


best regards
Helmut

View this message in context: http://osgeo-org.1560.x6.nabble.com/CHELSA-climate-data-set-tp5284115p5319124.html
Sent from the Grass - Users mailing list archive at Nabble.com.


grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

On Tue, May 2, 2017 at 10:16 PM, Veronica Andreo <veroandreo@gmail.com> wrote:

Hi Helli,

Yes, if you want the global map the -a flag plus the relaxed conditions for the extent of global maps are fine…

However, I wanted to also only import the region i’m working on and make use of the -r flag in r.in.gdal… then the problems start… no combination of -a, raster or align parameters in r.region give me the correct region (either the resolution is wrong or the extent). My solution so far is import the global map with r.in.gdal -a, then use r.mapcalc to get the region I need… any other suggestion about better workflow is more than welcome :slight_smile:

Be aware that the -r flag of r.in.gdal aligns the current region to the grid geometry of the input raster, i.e. the output might not match exactly the current region. For CHELSA that means that not only the input resolution is preserved, but also the 0.5 seconds shift to the West and South.

Can you provide an example why you think that the grid geometry of the imported raster is not correct?

Markus M

best,
Vero

2017-05-02 21:45 GMT+02:00 Helmut Kudrnovsky <hellik@web.de>:

Veronica Andreo wrote

Hi :slight_smile:

JFYI, CHELSA v1.2 is out

2017-02-07 15:43 GMT+01:00 Markus Neteler <

neteler@

>:

On Tue, Feb 7, 2017 at 3:32 PM, Markus Metz
<

markus.metz.giswork@

> wrote:

[…]

Compared to GMTED, CHELSA extents further south to 90:0:0.5S which
conforms
to the GMTED grid geometry. For CHELSA, however gdalinfo reports
Pixel Size = (0.008333333300000,-0.008333333300000)
while for GMTED, gdalinfo reports
Pixel Size = (0.008333333333333,-0.008333333333333)

The reason for the slightly smaller pixel size is most probably reduced
floating point precision during creation of the CHELSA data.

from personal comm.:
They are currently investigating where the precision is cut in their
workflow (the upcoming V1.2 shall come with a related correction).

Unfortunately they have not corrected the precision issue…

gdalinfo CHELSA_temp_2_1979-2013_V1.2_land.tif
Driver: GTiff/GeoTIFF
Files: CHELSA_temp_2_1979-2013_V1.2_land.tif
Size is 43200, 20880
[…]
Origin = (-180.000138888850017,83.999860415150010)
Pixel Size = (0.008333333300000,-0.008333333300000)

Corner Coordinates:
Upper Left (-180.0001389, 83.9998604) (180d 0’ 0.50"W, 83d59’59.50"N)
Lower Left (-180.0001389, -90.0001389) (180d 0’ 0.50"W, 90d 0’ 0.50"S)
Upper Right ( 179.9998597, 83.9998604) (179d59’59.49"E, 83d59’59.50"N)
Lower Right ( 179.9998597, -90.0001389) (179d59’59.49"E, 90d 0’ 0.50"S)
Center ( -0.0001396, -3.0001392) ( 0d 0’ 0.50"W, 3d 0’ 0.50"S)
Band 1 Block=43200x1 Type=Float32, ColorInterp=Gray
NoData Value=-99999

best,
Vero

yes, AFAIK they’re still working on it.

tested here ver.1.2 with r.in.gdal trunk and

-a
Auto-adjustment for lat/lon
Attempt to fix small precision errors in resolution and extents

it seems to give good results.


best regards
Helmut

View this message in context: http://osgeo-org.1560.x6.nabble.com/CHELSA-climate-data-set-tp5284115p5319124.html
Sent from the Grass - Users mailing list archive at Nabble.com.


grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user


grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

Hello Markus,

Thanks for the explanation about the -r flag in r.in.gdal

My intention with CHELSA dataset was to match it to 1km MODIS data I’m working with (from Inner Mongolia). So, since CHELSA maps are quite big, I thought I could use -r to cut them and then fix their original resolution and extent to my computational region, so magically all maps could be aligned.

Reading your explanation of -r, I see now, that the geometry of the imported map is OK, it is what it is. The problem is the data source, that has not the resolution it claims to have.

Here are all the tests I made using r.in.gdal and r.region: https://pastebin.com/m1rQ0RZK (Maybe it’s all non-sense, sorry for that)

In the end, I found that the only way to get chelsa maps with the same resolution and extent than the MODIS 1km maps, was to import the whole chelsa map and subset with r.mapcalc since it uses the region settings.

thanks again,
Vero

···

2017-05-03 8:15 GMT+02:00 Markus Metz <markus.metz.giswork@gmail.com>:

On Tue, May 2, 2017 at 10:16 PM, Veronica Andreo <veroandreo@gmail.com> wrote:

Hi Helli,

Yes, if you want the global map the -a flag plus the relaxed conditions for the extent of global maps are fine…

However, I wanted to also only import the region i’m working on and make use of the -r flag in r.in.gdal… then the problems start… no combination of -a, raster or align parameters in r.region give me the correct region (either the resolution is wrong or the extent). My solution so far is import the global map with r.in.gdal -a, then use r.mapcalc to get the region I need… any other suggestion about better workflow is more than welcome :slight_smile:

Be aware that the -r flag of r.in.gdal aligns the current region to the grid geometry of the input raster, i.e. the output might not match exactly the current region. For CHELSA that means that not only the input resolution is preserved, but also the 0.5 seconds shift to the West and South.

Can you provide an example why you think that the grid geometry of the imported raster is not correct?

Markus M

best,
Vero

2017-05-02 21:45 GMT+02:00 Helmut Kudrnovsky <hellik@web.de>:

Veronica Andreo wrote

Hi :slight_smile:

JFYI, CHELSA v1.2 is out

2017-02-07 15:43 GMT+01:00 Markus Neteler <

neteler@

>:

On Tue, Feb 7, 2017 at 3:32 PM, Markus Metz
<

markus.metz.giswork@

> wrote:

[…]

Compared to GMTED, CHELSA extents further south to 90:0:0.5S which
conforms
to the GMTED grid geometry. For CHELSA, however gdalinfo reports
Pixel Size = (0.008333333300000,-0.008333333300000)
while for GMTED, gdalinfo reports
Pixel Size = (0.008333333333333,-0.008333333333333)

The reason for the slightly smaller pixel size is most probably reduced
floating point precision during creation of the CHELSA data.

from personal comm.:
They are currently investigating where the precision is cut in their
workflow (the upcoming V1.2 shall come with a related correction).

Unfortunately they have not corrected the precision issue…

gdalinfo CHELSA_temp_2_1979-2013_V1.2_land.tif
Driver: GTiff/GeoTIFF
Files: CHELSA_temp_2_1979-2013_V1.2_land.tif
Size is 43200, 20880
[…]
Origin = (-180.000138888850017,83.999860415150010)
Pixel Size = (0.008333333300000,-0.008333333300000)

Corner Coordinates:
Upper Left (-180.0001389, 83.9998604) (180d 0’ 0.50"W, 83d59’59.50"N)
Lower Left (-180.0001389, -90.0001389) (180d 0’ 0.50"W, 90d 0’ 0.50"S)
Upper Right ( 179.9998597, 83.9998604) (179d59’59.49"E, 83d59’59.50"N)
Lower Right ( 179.9998597, -90.0001389) (179d59’59.49"E, 90d 0’ 0.50"S)
Center ( -0.0001396, -3.0001392) ( 0d 0’ 0.50"W, 3d 0’ 0.50"S)
Band 1 Block=43200x1 Type=Float32, ColorInterp=Gray
NoData Value=-99999

best,
Vero

yes, AFAIK they’re still working on it.

tested here ver.1.2 with r.in.gdal trunk and

-a
Auto-adjustment for lat/lon
Attempt to fix small precision errors in resolution and extents

it seems to give good results.


best regards
Helmut

View this message in context: http://osgeo-org.1560.x6.nabble.com/CHELSA-climate-data-set-tp5284115p5319124.html
Sent from the Grass - Users mailing list archive at Nabble.com.


grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user


grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

Hi Vero

On Wed, May 3, 2017 at 1:57 PM, Veronica Andreo <veroandreo@gmail.com> wrote:

In the end, I found that the only way to get chelsa maps with the same resolution and extent than the MODIS 1km maps, was to import the whole chelsa map and subset with r.mapcalc since it uses the region settings.

Maybe you assumed that r.in.gdal -r is also doing resampling. The -r flag only cuts the input to cover the current region. For resampling you can use one of the r.resamp.* modules.

Markus M

thanks again,
Vero

2017-05-03 8:15 GMT+02:00 Markus Metz <markus.metz.giswork@gmail.com>:

On Tue, May 2, 2017 at 10:16 PM, Veronica Andreo <veroandreo@gmail.com> wrote:

Hi Helli,

Yes, if you want the global map the -a flag plus the relaxed conditions for the extent of global maps are fine…

However, I wanted to also only import the region i’m working on and make use of the -r flag in r.in.gdal… then the problems start… no combination of -a, raster or align parameters in r.region give me the correct region (either the resolution is wrong or the extent). My solution so far is import the global map with r.in.gdal -a, then use r.mapcalc to get the region I need… any other suggestion about better workflow is more than welcome :slight_smile:

Be aware that the -r flag of r.in.gdal aligns the current region to the grid geometry of the input raster, i.e. the output might not match exactly the current region. For CHELSA that means that not only the input resolution is preserved, but also the 0.5 seconds shift to the West and South.

Can you provide an example why you think that the grid geometry of the imported raster is not correct?

Markus M

best,
Vero

2017-05-02 21:45 GMT+02:00 Helmut Kudrnovsky <hellik@web.de>:

Veronica Andreo wrote

Hi :slight_smile:

JFYI, CHELSA v1.2 is out

2017-02-07 15:43 GMT+01:00 Markus Neteler <

neteler@

>:

On Tue, Feb 7, 2017 at 3:32 PM, Markus Metz
<

markus.metz.giswork@

> wrote:

[…]

Compared to GMTED, CHELSA extents further south to 90:0:0.5S which
conforms
to the GMTED grid geometry. For CHELSA, however gdalinfo reports
Pixel Size = (0.008333333300000,-0.008333333300000)
while for GMTED, gdalinfo reports
Pixel Size = (0.008333333333333,-0.008333333333333)

The reason for the slightly smaller pixel size is most probably reduced
floating point precision during creation of the CHELSA data.

from personal comm.:
They are currently investigating where the precision is cut in their
workflow (the upcoming V1.2 shall come with a related correction).

Unfortunately they have not corrected the precision issue…

gdalinfo CHELSA_temp_2_1979-2013_V1.2_land.tif
Driver: GTiff/GeoTIFF
Files: CHELSA_temp_2_1979-2013_V1.2_land.tif
Size is 43200, 20880
[…]
Origin = (-180.000138888850017,83.999860415150010)
Pixel Size = (0.008333333300000,-0.008333333300000)

Corner Coordinates:
Upper Left (-180.0001389, 83.9998604) (180d 0’ 0.50"W, 83d59’59.50"N)
Lower Left (-180.0001389, -90.0001389) (180d 0’ 0.50"W, 90d 0’ 0.50"S)
Upper Right ( 179.9998597, 83.9998604) (179d59’59.49"E, 83d59’59.50"N)
Lower Right ( 179.9998597, -90.0001389) (179d59’59.49"E, 90d 0’ 0.50"S)
Center ( -0.0001396, -3.0001392) ( 0d 0’ 0.50"W, 3d 0’ 0.50"S)
Band 1 Block=43200x1 Type=Float32, ColorInterp=Gray
NoData Value=-99999

best,
Vero

yes, AFAIK they’re still working on it.

tested here ver.1.2 with r.in.gdal trunk and

-a
Auto-adjustment for lat/lon
Attempt to fix small precision errors in resolution and extents

it seems to give good results.


best regards
Helmut

View this message in context: http://osgeo-org.1560.x6.nabble.com/CHELSA-climate-data-set-tp5284115p5319124.html
Sent from the Grass - Users mailing list archive at Nabble.com.


grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user


grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user