as Oxenstierna
> T-Kartor Geospatial AB
> Olof Mohlins väg 12 Kristianstad
> mobile: +46 733 206831
> mailto: andreas.oxenstie...@t-kartor.com
> www.t-kartor.com
> On 28 Jun 2022, 05:19 +0200, Chao Li , wrote:
>
> Hi,
>
> I meet a problem when I use gdal_calc.py on mac:
ython to have a single
> value for nodata.
>
>
>
> -Jukka Rahkonen-
>
>
>
> *Lähettäjä:* Chao Li
> *Lähetetty:* tiistai 28. kesäkuuta 2022 2.58
> *Vastaanottaja:* Rahkonen Jukka
> *Kopio:* gdal-dev@lists.osgeo.org
> *Aihe:* Re: [gdal-dev] gdalwarp Resamplin
Hi,
I meet a problem when I use gdal_calc.py on mac:
(base) lichao@riushios-MacBook-Pro ~ % gdal_calc.py
Traceback (most recent call last):
File
"/Users/lichao/opt/anaconda3/lib/python3.9/site-packages/osgeo/__init__.py",
line 29, in swig_import_helper
return importlib.import_module(mnam
ygonise areas with pixel value >=32760 and
> create and add an alpha band or mask band into the image. An easier way is
> to update the raster with gdal_calc
> https://gdal.org/programs/gdal_calc.html and update all pixel values
> >=32760 into single value 32767.
>
>
>
>
s somehow
> corrupted. Could you check if you can find similar pixel values from the
> original image? The sample is LZW compressed but could it be that at some
> moment the image has been compressed with JPEG or some other lossy method?
>
>
>
> -Jukka Rahkonen-
>
>
>
> *
Dear GDAL experts,
I have a problem using *gdalwarp*.
I want to reproject a raster and change its resolution by the average
method.
This is the *gdalinfo* of the raster
[q70176a@ito-2 ~]$ gdalinfo
DP12/11_RawData/02_GGP/Gross_PP_8Days_500m_v6/GPP/MOD17A2H_GPP_2016_001.tif
Dear Gdal Developer,
Thank you for reading my email.
I used gdal.Wrap() to resample from a high resolution to a lower. However,
my raster has no value (nan). So, when I set resampleAlg, the larger grids
with nan(s) will become nan.
Here is my reprex in Python:
from osgeo import gdal
### resamp