scenes issueshttps://gitlab.irstea.fr/umr-tetis/scenes/-/issues2022-04-01T21:04:33+02:00https://gitlab.irstea.fr/umr-tetis/scenes/-/issues/4Add a class for bounding box2022-04-01T21:04:33+02:00Cresson RemiAdd a class for bounding boxhttps://gitlab.irstea.fr/umr-tetis/scenes/-/issues/5Add bounding box serialization2022-04-04T15:10:57+02:00Narcon NicolasAdd bounding box serializationstr(bounding_box) returns `<scenes.bbox.BoundingBox object at 0x7f4ee79eaac0>`. It would be nice to have something more usefulstr(bounding_box) returns `<scenes.bbox.BoundingBox object at 0x7f4ee79eaac0>`. It would be nice to have something more usefulhttps://gitlab.irstea.fr/umr-tetis/scenes/-/issues/6Add deepnets2022-04-13T18:10:52+02:00Cresson RemiAdd deepnetsCresson RemiCresson Remihttps://gitlab.irstea.fr/umr-tetis/scenes/-/issues/8Additional info for download stuff2023-06-06T18:21:33+02:00Cresson RemiAdditional info for download stuffTODO:
- Add tests
- Add theia.cfg in otbuser homeTODO:
- Add tests
- Add theia.cfg in otbuser homehttps://gitlab.irstea.fr/umr-tetis/scenes/-/issues/14Ajouter des exemples de codes2022-04-19T13:53:36+02:00Cresson RemiAjouter des exemples de codeshttps://gitlab.irstea.fr/umr-tetis/scenes/-/issues/1Ajouter un setup.py pour que la librairie soit pip installable2022-03-26T22:10:06+01:00Cresson RemiAjouter un setup.py pour que la librairie soit pip installablehttps://gitlab.irstea.fr/umr-tetis/scenes/-/issues/17ajouter un test de TheiaDownloader2023-03-22T20:46:09+01:00Cresson Remiajouter un test de TheiaDownloaderhttps://gitlab.irstea.fr/umr-tetis/scenes/-/issues/26ajouter un test pour les classes Sentinel22023-03-23T17:12:02+01:00Cresson Remiajouter un test pour les classes Sentinel2- tester les classes héritant de `Sentinel2Source`
- vérifier que la filiation est OK- tester les classes héritant de `Sentinel2Source`
- vérifier que la filiation est OKhttps://gitlab.irstea.fr/umr-tetis/scenes/-/issues/33AssertionError when creating instance of Spot67Scene2023-03-23T17:12:02+01:00Giffard-Carlet JosselinAssertionError when creating instance of Spot67SceneWith SPOT image from https://ids-dinamis.data-terra.org/web/guest/catalog1
image selected with coordinates N : 45.4924, E : 6.6502, S : 45.3072, W : 6.3426, year : 2020, "Image brute" :
- 2020-07-08_10:09:55.539_SPOT6_SENSOR_MS
- 2020-0...With SPOT image from https://ids-dinamis.data-terra.org/web/guest/catalog1
image selected with coordinates N : 45.4924, E : 6.6502, S : 45.3072, W : 6.3426, year : 2020, "Image brute" :
- 2020-07-08_10:09:55.539_SPOT6_SENSOR_MS
- 2020-07-08_10:09:55.538_SPOT6_SENSOR_P
When creating instance of Spot67Scene
```
from scenes.spot import Spot67Scene
sc = Spot67Scene(dimap_file_xs="/path/to/DIM_SPOT6_MS_..._1.XML",
dimap_file_pan="/path/to/DIM_SPOT6_P_..._1.XML")
```
Getting assertion error :
```
Traceback (most recent call last):
File "/usr/lib/python3.8/code.py", line 90, in runcode
exec(code, self.locals)
File "<input>", line 1, in <module>
File "/home/josselingiffard/.local/lib/python3.8/site-packages/scenes/spot.py", line 323, in __init__
epsg_xs, extent_wgs84_xs, self.bbox_wgs84_xs = get_epsg_extent_bbox(dimap_file_xs)
File "/home/josselingiffard/.local/lib/python3.8/site-packages/scenes/raster.py", line 108, in get_epsg_extent_bbox
epsg = get_epsg(gdal_ds)
File "/home/josselingiffard/.local/lib/python3.8/site-packages/scenes/raster.py", line 24, in get_epsg
assert str(epsg).isdigit()
AssertionError
```https://gitlab.irstea.fr/umr-tetis/scenes/-/issues/38Cache improvements2023-05-24T15:40:13+02:00Cresson RemiCache improvementscreer dossier cache si il n'existe pascreer dossier cache si il n'existe pashttps://gitlab.irstea.fr/umr-tetis/scenes/-/issues/15CI cache test data2022-04-18T15:49:11+02:00Vincent DelbarCI cache test dataActually, it seems that test data is downloaded 4 times (for each extended job).
TODO: use cache to avoid this.
Data could be downloaded first, a the same time we install test deps (during the first job 'env' which could just be 'env')Actually, it seems that test data is downloaded 4 times (for each extended job).
TODO: use cache to avoid this.
Data could be downloaded first, a the same time we install test deps (during the first job 'env' which could just be 'env')https://gitlab.irstea.fr/umr-tetis/scenes/-/issues/16deploy:pages seulement lors d'un merge sur develop2022-05-14T16:43:13+02:00Cresson Remideploy:pages seulement lors d'un merge sur develophttps://gitlab.irstea.fr/umr-tetis/scenes/-/issues/3DOC: params and return are not separated from docstring2022-04-01T20:11:46+02:00Narcon NicolasDOC: params and return are not separated from docstringExample:
![image](/uploads/0743d313541784ae318d658fd2cc9305/image.png)Example:
![image](/uploads/0743d313541784ae318d658fd2cc9305/image.png)https://gitlab.irstea.fr/umr-tetis/scenes/-/issues/2Documentation2022-03-28T13:06:42+02:00Cresson RemiDocumentationFaire une doc de l'APIFaire une doc de l'APIhttps://gitlab.irstea.fr/umr-tetis/scenes/-/issues/13Get BoundingBox from pyotb.otbObject2022-04-18T14:59:07+02:00Cresson RemiGet BoundingBox from pyotb.otbObjecte.g.
```
sc = scenes.spot.Spot67Scene(...)
xs = sc.get_imagery().get_xs()
roi = xs [2000:3000, 5000:6000, :]
bbox = raster.get_bbox_wgs84(roi)
```e.g.
```
sc = scenes.spot.Spot67Scene(...)
xs = sc.get_imagery().get_xs()
roi = xs [2000:3000, 5000:6000, :]
bbox = raster.get_bbox_wgs84(roi)
```https://gitlab.irstea.fr/umr-tetis/scenes/-/issues/19Générer des objets `Scene` à partir de catalogues STAC2023-04-23T20:20:02+02:00Cresson RemiGénérer des objets `Scene` à partir de catalogues STACEst-ce qu'on pourrait instancier des listes d'objects `Scene` à partir de catalogues, ou bien instancier des `Scene` à partir d'entrées d'un catalogue STAC.
Voir ce qu'on pourrait faire avec [PySTAC](https://github.com/stac-utils/pystac)Est-ce qu'on pourrait instancier des listes d'objects `Scene` à partir de catalogues, ou bien instancier des `Scene` à partir d'entrées d'un catalogue STAC.
Voir ce qu'on pourrait faire avec [PySTAC](https://github.com/stac-utils/pystac)https://gitlab.irstea.fr/umr-tetis/scenes/-/issues/11Lazy dates everywhere2022-04-14T13:11:17+02:00Cresson RemiLazy dates everywherehttps://gitlab.irstea.fr/umr-tetis/scenes/-/issues/28Le pipeline de develop --> master plante pour "Spot67_test"2023-04-23T20:20:33+02:00Cresson RemiLe pipeline de develop --> master plante pour "Spot67_test"Et je ne comprends pas pourquoi.
Par ex.
https://gitlab.irstea.fr/umr-tetis/scenes/-/pipelines/38910Et je ne comprends pas pourquoi.
Par ex.
https://gitlab.irstea.fr/umr-tetis/scenes/-/pipelines/38910https://gitlab.irstea.fr/umr-tetis/scenes/-/issues/25Les classes sentinel ne retournent que des sources Sentinel22A2022-09-07T21:59:31+02:00Cresson RemiLes classes sentinel ne retournent que des sources Sentinel22ACresson RemiCresson Remihttps://gitlab.irstea.fr/umr-tetis/scenes/-/issues/20No /MASKS dir for SPOT images2023-03-23T17:12:03+01:00Giffard-Carlet JosselinNo /MASKS dir for SPOT imagesWhen I use **Spot67Scene** function on SPOT67 images download from [equipex-geosud](https://ids.equipex-geosud.fr/) :
```
from scenes.spot import Spot67Scene
/STRIP_DS_SPOT6_202007271013055_GS1_FR1_FR1_FR1_E006N46_03332_DIM.XML
sc = Spo...When I use **Spot67Scene** function on SPOT67 images download from [equipex-geosud](https://ids.equipex-geosud.fr/) :
```
from scenes.spot import Spot67Scene
/STRIP_DS_SPOT6_202007271013055_GS1_FR1_FR1_FR1_E006N46_03332_DIM.XML
sc = Spot67Scene(dimap_file_xs=pan_xml,
dimap_file_pan=ms_xml)
```
Result in :
```
ERROR 3: Cannot open file '/03_SPOT6-7/02_Extracts/SPOT6_2020_France-Ortho_NC_IGN-PAN_S6P_2020072736786037CP/S6P_2020072736786037CP/PROD_SPOT6_001/VOL_SPOT6_001_A/IMG_SPOT6_PAN_001_A/LINEAGE/STRIP_DS_SPOT6_202007271013055_GS1_FR1_FR1_FR1_E006N46_03332_DIM.XML'
ERROR 3: Cannot open file '/03_SPOT6-7/02_Extracts/SPOT6_2020_France-Ortho_NC_IGN-PAN_S6P_2020072736786037CP/S6P_2020072736786037CP/PROD_SPOT6_001/VOL_SPOT6_001_A/IMG_SPOT6_PAN_001_A/RPC_SPOT6_P_202007271013055_SEN_SPOT6_20200918_1218121gzpapjyzvcs0_1.XML'
ERROR 3: Cannot open file '/03_SPOT6-7/02_Extracts/SPOT6_2020_France-Ortho_NC_IGN-MS_S6X_2020072736786037CP/S6X_2020072736786037CP/PROD_SPOT6_001/VOL_SPOT6_001_A/IMG_SPOT6_MS_001_A/LINEAGE/STRIP_DS_SPOT6_202007271013055_GS1_FR1_FR1_FR1_E006N46_03332_DIM.XML'
ERROR 3: Cannot open file '/03_SPOT6-7/02_Extracts/SPOT6_2020_France-Ortho_NC_IGN-MS_S6X_2020072736786037CP/S6X_2020072736786037CP/PROD_SPOT6_001/VOL_SPOT6_001_A/IMG_SPOT6_MS_001_A/RPC_SPOT6_MS_202007271013055_SEN_SPOT6_20200918_1218121gzpapjyzvcs0_1.XML'
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/otbuser/.local/lib/python3.8/site-packages/scenes/spot.py", line 340, in __init__
self.cld_msk_file_xs = _get_mask(dimap_file_xs, "CLD*.GML")
File "/home/otbuser/.local/lib/python3.8/site-packages/scenes/spot.py", line 285, in _get_mask
raise FileNotFoundError(
FileNotFoundError: ERROR: unable to find a unique file in /03_SPOT6-7/02_Extracts/SPOT6_2020_France-Ortho_NC_IGN-PAN_S6P_2020072736786037CP/S6P_2020072736786037CP/PROD_SPOT6_001/VOL_SPOT6_001_A/IMG_SPOT6_PAN_001_A/MASKS with pattern CLD*.GML
```
For me no /MASKS directory in my SPOT directories.
Here is tree of SPOT directories :
```
SPOT6_2020_France-Ortho_NC_IGN-MS_S6X_2020072736786037CP
├── metadata-iso.xml
└── S6X_2020072736786037CP
└── PROD_SPOT6_001
└── VOL_SPOT6_001_A
└── IMG_SPOT6_MS_001_A
├── DIM_S6X_2020072736786037CP.XML
└── IMG_S6X_2020072736786037CP_R1C1.TIF
SPOT6_2020_France-Ortho_NC_IGN-PAN_S6P_2020072736786037CP
├── metadata-iso.xml
└── S6P_2020072736786037CP
└── PROD_SPOT6_001
└── VOL_SPOT6_001_A
└── IMG_SPOT6_PAN_001_A
├── DIM_S6P_2020072736786037CP.XML
└── IMG_S6P_2020072736786037CP_R1C1.TIF
```