Re: [gdal-dev] DIMAP driver questions

2021-07-09 Thread thomas bonfort
You can open the DIM_*.XML files with gdal, those are the useful ones.

--
Thomas

On Fri, Jul 9, 2021 at 9:38 PM  wrote:
>
> Hi,
>
>
>
> The DIMAP driver page lists names of the index files to look at. I don’t have 
> any of these filenames in our SPOT6 folder tree. Is the driver description 
> page incomplete or perhaps I’ve been given a different DIMAP version?
>
>
>
> METADATA.DIM (DIMAP 1),
>
> VOL_PHR.XML (DIMAP 2) or
>
> VOL_PNEO.XML (DIMAP 2 VHR-2020)
>
>
>
> By pointing gdalinfo at the xml files I think I’ve determined that the index 
> file name is of the pattern “DIM_SPOT6_MS_201508152008275_SEN_1.XML”. Is this 
> right?
>
>
>
> The directory tree I have is:
>
>
>
> ```
>
> $ tree
>
> Folder PATH listing for volume Data
>
> Volume serial number is C100 AEC2:FADE
>
> D:.
>
> └───DS_SPOT6_201508152008275_LM1_LM1_LM1_LM1_W138N63_06499
>
> ├───LIBRARY
>
> └───PROD_SPOT6_001
>
> ├───LIBRARY
>
> └───VOL_SPOT6_001_A
>
> ├───IMG_SPOT6_MS_001_A
>
> │   ├───LIBRARY
>
> │   ├───LINEAGE
>
> │   └───MASKS
>
> ├───IMG_SPOT6_P_001_A
>
> │   ├───LIBRARY
>
> │   ├───LINEAGE
>
> │   └───MASKS
>
> └───LIBRARY
>
> ```
>
>
>
> Gdalinfo report and filename listings attached.
>
>
>
>
>
> The folders named “lineage” and “mask” have names that indicate useful info 
> however gdalinfo report doesn’t refer to them. Is there some other way to 
> take advantage of them or is that the province of full blown remote sensing 
> software?
>
>
>
> I’m using GDAL Utilities v3.1.4 released 2020/10/20 via Qgis 3.18 on Windows.
>
>
>
> Thanks in advance for your thoughts,
>
>
>
> Matt Wilkie
>
> Geomatics Developer & Administrator
>
> Environment | Technology, Innovation and Mapping
>
> T 867-667-8133 | Yukon.ca
>
> Hours: 08:30-16:30, Mon-Wed: Office, Thu: Remote, Fri: Away.
>
>
>
> ___
> gdal-dev mailing list
> gdal-dev@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev


[gdal-dev] DIMAP driver questions

2021-07-09 Thread Matt.Wilkie
Hi,

The DIMAP driver page lists names 
of the index files to look at. I don't have any of these filenames in our SPOT6 
folder tree. Is the driver description page incomplete or perhaps I've been 
given a different DIMAP version?

METADATA.DIM (DIMAP 1),
VOL_PHR.XML (DIMAP 2) or
VOL_PNEO.XML (DIMAP 2 VHR-2020)

By pointing gdalinfo at the xml files I think I've determined that the index 
file name is of the pattern "DIM_SPOT6_MS_201508152008275_SEN_1.XML". Is this 
right?

The directory tree I have is:

```
$ tree
Folder PATH listing for volume Data
Volume serial number is C100 AEC2:FADE
D:.
└───DS_SPOT6_201508152008275_LM1_LM1_LM1_LM1_W138N63_06499
├───LIBRARY
└───PROD_SPOT6_001
├───LIBRARY
└───VOL_SPOT6_001_A
├───IMG_SPOT6_MS_001_A
│   ├───LIBRARY
│   ├───LINEAGE
│   └───MASKS
├───IMG_SPOT6_P_001_A
│   ├───LIBRARY
│   ├───LINEAGE
│   └───MASKS
└───LIBRARY
```

Gdalinfo report and filename listings attached.


The folders named "lineage" and "mask" have names that indicate useful info 
however gdalinfo report doesn't refer to them. Is there some other way to take 
advantage of them or is that the province of full blown remote sensing software?

I'm using GDAL Utilities v3.1.4 released 2020/10/20 via Qgis 3.18 on Windows.

Thanks in advance for your thoughts,

Matt Wilkie
Geomatics Developer & Administrator
Environment | Technology, Innovation and Mapping
T 867-667-8133 | Yukon.ca
Hours: 08:30-16:30, Mon-Wed: Office, Thu: Remote, Fri: Away.

.\DS_SPOT6_201508152008275_LM1_LM1_LM1_LM1_W138N63_06499\DELIVERY.PDF
.\DS_SPOT6_201508152008275_LM1_LM1_LM1_LM1_W138N63_06499\INDEX.HTM
.\DS_SPOT6_201508152008275_LM1_LM1_LM1_LM1_W138N63_06499\LIBRARY
.\DS_SPOT6_201508152008275_LM1_LM1_LM1_LM1_W138N63_06499\license.pdf
.\DS_SPOT6_201508152008275_LM1_LM1_LM1_LM1_W138N63_06499\PROD_SPOT6_001
.\DS_SPOT6_201508152008275_LM1_LM1_LM1_LM1_W138N63_06499\SPOT_LIST.XML
.\DS_SPOT6_201508152008275_LM1_LM1_LM1_LM1_W138N63_06499\LIBRARY\DS_LOGO.JPG
.\DS_SPOT6_201508152008275_LM1_LM1_LM1_LM1_W138N63_06499\LIBRARY\DS_STYLE.XSL
.\DS_SPOT6_201508152008275_LM1_LM1_LM1_LM1_W138N63_06499\PROD_SPOT6_001\INDEX.HTM
.\DS_SPOT6_201508152008275_LM1_LM1_LM1_LM1_W138N63_06499\PROD_SPOT6_001\LIBRARY
.\DS_SPOT6_201508152008275_LM1_LM1_LM1_LM1_W138N63_06499\PROD_SPOT6_001\SPOT_PROD.XML
.\DS_SPOT6_201508152008275_LM1_LM1_LM1_LM1_W138N63_06499\PROD_SPOT6_001\VOL_SPOT6_001_A
.\DS_SPOT6_201508152008275_LM1_LM1_LM1_LM1_W138N63_06499\PROD_SPOT6_001\LIBRARY\PROD_LOGO.JPG
.\DS_SPOT6_201508152008275_LM1_LM1_LM1_LM1_W138N63_06499\PROD_SPOT6_001\LIBRARY\PROD_STYLE.XSL
.\DS_SPOT6_201508152008275_LM1_LM1_LM1_LM1_W138N63_06499\PROD_SPOT6_001\VOL_SPOT6_001_A\IMG_SPOT6_MS_001_A
.\DS_SPOT6_201508152008275_LM1_LM1_LM1_LM1_W138N63_06499\PROD_SPOT6_001\VOL_SPOT6_001_A\IMG_SPOT6_P_001_A
.\DS_SPOT6_201508152008275_LM1_LM1_LM1_LM1_W138N63_06499\PROD_SPOT6_001\VOL_SPOT6_001_A\INDEX.HTM
.\DS_SPOT6_201508152008275_LM1_LM1_LM1_LM1_W138N63_06499\PROD_SPOT6_001\VOL_SPOT6_001_A\LIBRARY
.\DS_SPOT6_201508152008275_LM1_LM1_LM1_LM1_W138N63_06499\PROD_SPOT6_001\VOL_SPOT6_001_A\SPOT_VOL.XML
.\DS_SPOT6_201508152008275_LM1_LM1_LM1_LM1_W138N63_06499\PROD_SPOT6_001\VOL_SPOT6_001_A\IMG_SPOT6_MS_001_A\DIM_SPOT6_MS_201508152008275_SEN_1.XML
.\DS_SPOT6_201508152008275_LM1_LM1_LM1_LM1_W138N63_06499\PROD_SPOT6_001\VOL_SPOT6_001_A\IMG_SPOT6_MS_001_A\ICON_SPOT6_MS_201508152008275_SEN_1.JPG
.\DS_SPOT6_201508152008275_LM1_LM1_LM1_LM1_W138N63_06499\PROD_SPOT6_001\VOL_SPOT6_001_A\IMG_SPOT6_MS_001_A\IMG_SPOT6_MS_201508152008275_SEN_1_R10C1.TFW
.\DS_SPOT6_201508152008275_LM1_LM1_LM1_LM1_W138N63_06499\PROD_SPOT6_001\VOL_SPOT6_001_A\IMG_SPOT6_MS_001_A\IMG_SPOT6_MS_201508152008275_SEN_1_R10C1.TIF
.\DS_SPOT6_201508152008275_LM1_LM1_LM1_LM1_W138N63_06499\PROD_SPOT6_001\VOL_SPOT6_001_A\IMG_SPOT6_MS_001_A\IMG_SPOT6_MS_201508152008275_SEN_1_R10C2.TFW
.\DS_SPOT6_201508152008275_LM1_LM1_LM1_LM1_W138N63_06499\PROD_SPOT6_001\VOL_SPOT6_001_A\IMG_SPOT6_MS_001_A\IMG_SPOT6_MS_201508152008275_SEN_1_R10C2.TIF
.\DS_SPOT6_201508152008275_LM1_LM1_LM1_LM1_W138N63_06499\PROD_SPOT6_001\VOL_SPOT6_001_A\IMG_SPOT6_MS_001_A\IMG_SPOT6_MS_201508152008275_SEN_1_R10C3.TFW
.\DS_SPOT6_201508152008275_LM1_LM1_LM1_LM1_W138N63_06499\PROD_SPOT6_001\VOL_SPOT6_001_A\IMG_SPOT6_MS_001_A\IMG_SPOT6_MS_201508152008275_SEN_1_R10C3.TIF
.\DS_SPOT6_201508152008275_LM1_LM1_LM1_LM1_W138N63_06499\PROD_SPOT6_001\VOL_SPOT6_001_A\IMG_SPOT6_MS_001_A\IMG_SPOT6_MS_201508152008275_SEN_1_R10C4.TFW
.\DS_SPOT6_201508152008275_LM1_LM1_LM1_LM1_W138N63_06499\PROD_SPOT6_001\VOL_SPOT6_001_A\IMG_SPOT6_MS_001_A\IMG_SPOT6_MS_201508152008275_SEN_1_R10C4.TIF
.\DS_SPOT6_201508152008275_LM1_LM1_LM1_LM1_W138N63_06499\PROD_SPOT6_001\VOL_SPOT6_001_A\IMG_SPOT6_MS_001_A\IMG_SPOT6_MS_201508152008275_SEN_1_R1C1.TFW

Re: [gdal-dev] Install GDAL on Arcmap 10.7

2021-07-09 Thread Matt.Wilkie
Hello Sayena,

Gdal doesn’t have a graphic interface, it’s all command line utilities and 
programmer libraries. However Qgis (https://qgis.org/) is very well integrated 
with Gdal and is similar to ArcMap in a lot of ways and the members of the Qgis 
Community are generally helpful 
if the docs don’t cover your situation.

Also within ArcMap you may have access to the Data Interoperability 
extension.

-Matt

From: gdal-dev  On Behalf Of Sayena
Sent: July 9, 2021 7:32 AM
To: gdal-dev@lists.osgeo.org
Subject: [gdal-dev] Install GDAL on Arcmap 10.7


*** External email: Do not click on links or attachments except from trusted 
senders. ***

**



Hello
I want to use Census data 2000 Urbanized area - They are in the ASCII format 
and apparently need a translator to convert them to lines/ polylines.

I searched in the internet and found out about the GDAL that can do the job. 
But just don't know how to use the graphic user interface with Arcmap 10.7

I do really appreciate your help

--
Sayena Farid Marandi
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev


Re: [gdal-dev] Lost band name during merge

2021-07-09 Thread Matt.Wilkie
Hi Lorenzo,

Attached is a short python script to copy band info from one file to another. 
It’s not a solution but might be helpful. Usage is

gdal-copy-band-info [in_file] [band #] [out_file] [band #]


cheers,

-Matt

From: gdal-dev  On Behalf Of Lorenzo Di 
Giacomo
Sent: July 9, 2021 7:30 AM
To: gdal-dev@lists.osgeo.org
Subject: [gdal-dev] Lost band name during merge


*** External email: Do not click on links or attachments except from trusted 
senders. ***

**



Hi, i have N netcdf OR N tiff.
I want merge them all in 1 tiff.
I do that using:
Either gdal_merge.py -separate -o 
OR gdalbuildvrt AND gdal_translate ... Both approaches works but each band has 
a name like "band_1", "band_2" ecc. the original band name is lost Is there 
a way to at least keep the band name like "original_file_name_1"... Because the 
informations abouts the bands are lost and are impossibile to know which bands 
coming from which file.
Thanks!!
''' Copy band description and color interpretation type from IN raster and BAND#
to OUT raster and BAND#'''
import os
import sys
from osgeo import gdal

gdal.UseExceptions()

if len(sys.argv) < 4:
print(f"Usage: {sys.argv[0]} [in_file] [band#] [out_file] [band #]")
sys.exit(1)

infile = sys.argv[1]# source filename and path
inband = int(sys.argv[2])   # source band number
output = sys.argv[3]# destination file
outband = int(sys.argv[4])  # destination band number

data_in = gdal.Open(infile)
band_in = data_in.GetRasterBand(inband)
data_out = gdal.Open(output, gdal.GA_Update)
band_out = data_out.GetRasterBand(outband)
band_out.SetDescription(band_in.GetDescription())
band_out.SetColorInterpretation(band_in.GetColorInterpretation())

# de-reference the datasets, which triggers gdal to save
data_in = None
data_out = None

___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev


[gdal-dev] Install GDAL on Arcmap 10.7

2021-07-09 Thread Sayena
Hello
I want to use Census data 2000 Urbanized area - They are in the ASCII
format and apparently need a translator to convert them to lines/ polylines.

I searched in the internet and found out about the GDAL that can do the
job. But just don't know how to use the graphic user interface with Arcmap
10.7

I do really appreciate your help

-- 
Sayena Farid Marandi
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev


[gdal-dev] Lost band name during merge

2021-07-09 Thread Lorenzo Di Giacomo
Hi, i have N netcdf OR N tiff.
I want merge them all in 1 tiff.
I do that using:
Either gdal_merge.py -separate -o 
OR gdalbuildvrt AND gdal_translate ... Both approaches works but each band
has a name like "band_1", "band_2" ecc. the original band name is lost
Is there a way to at least keep the band name like
"original_file_name_1"... Because the informations abouts the bands are
lost and are impossibile to know which bands coming from which file.
Thanks!!
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev