Re: [gdal-dev] gdal_calc.py Does Not Work on Mac

2022-06-28 Thread Chao Li
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:

Re: [gdal-dev] gdalwarp Resampling Input Raster Nodata Setting

2022-06-27 Thread Chao Li
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

[gdal-dev] gdal_calc.py Does Not Work on Mac

2022-06-27 Thread Chao Li
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

Re: [gdal-dev] gdalwarp Resampling Input Raster Nodata Setting

2022-06-27 Thread Chao Li
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. > > > >

Re: [gdal-dev] gdalwarp Resampling Input Raster Nodata Setting

2022-06-27 Thread Chao Li
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- > > > > *

[gdal-dev] gdalwarp Resampling Input Raster Nodata Setting

2022-06-26 Thread Chao Li
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

[gdal-dev] Issues in Raster Resampling

2022-04-22 Thread Chao Li
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