Skip to content

Commit e18681b

Browse files
authored
Support 1c and 1d (#62)
* add: support for s1c and s1d * update gh_actions/cache to v4 per warning * change(packaging): abandon setup.cfg for pyproject.toml * change(examples): revert back to STACv1.0 and PROJ-EXTv1 * remove: python 3.8 from CI testing * change(ci): conda env setup remove command which installs sqlite 3.23, when previous step creates "test" env w/ sqlite 3.45, * change(ci): specify conda-forge as initial channel * update pre-commit to use local hook for mypy * add(ci): python 3.12 and 3.13 to the matrix
1 parent 3a8bb2c commit e18681b

File tree

44 files changed

+13725
-67
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+13725
-67
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,30 +29,33 @@ jobs:
2929
runs-on: ubuntu-latest
3030
strategy:
3131
matrix:
32-
python-version: ["3.8", "3.9", "3.10", "3.11"]
32+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
3333
defaults:
3434
run:
3535
shell: bash -l {0}
3636
steps:
37-
- uses: actions/checkout@v2
37+
- uses: actions/checkout@v4
3838
- name: Set up conda cache
39-
uses: actions/cache@v2
39+
uses: actions/cache@v4
4040
with:
4141
path: ~/conda_pkgs_dir
4242
key: ${{ runner.os }}-conda-${{ hashFiles('**/environment.yml') }}
4343
restore-keys: ${{ runner.os }}-conda-
4444
- name: Set up pip cache
45-
uses: actions/cache@v2
45+
uses: actions/cache@v4
4646
with:
4747
path: ~/.cache/pip
4848
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.cfg', '**/requirements-dev.txt') }}
4949
restore-keys: ${{ runner.os }}-pip-
5050
- name: Set up Conda with Python ${{ matrix.python-version }}
51-
uses: conda-incubator/setup-miniconda@v2
51+
uses: conda-incubator/setup-miniconda@v3
5252
with:
5353
auto-update-conda: true
5454
python-version: ${{ matrix.python-version }}
55+
channels: conda-forge,default
5556
- name: Update Conda's environemnt
56-
run: conda env update -f environment.yml -n test
57+
run: |
58+
conda info --envs
59+
conda env update -f environment.yml -n test
5760
- name: Execute linters and test suites
5861
run: ./scripts/cibuild

.pre-commit-config.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,14 @@ repos:
1616
rev: 7.0.0
1717
hooks:
1818
- id: flake8
19-
- repo: https://github.com/pre-commit/mirrors-mypy
20-
rev: v1.8.0
19+
- repo: local
2120
hooks:
2221
- id: mypy
23-
additional_dependencies:
24-
- click != 8.1.0
25-
- stactools
22+
name: mypy
23+
entry: mypy
24+
language: system
25+
require_serial: true
26+
types: [ python ]
2627
- repo: https://github.com/pycqa/isort
2728
rev: 5.13.2
2829
hooks:

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,20 @@ number as needed.
1111

1212
## [Unreleased]
1313

14+
### Fixed
15+
16+
- Expanded regular expression to include Sentinel-1C and
17+
1D. ([#62](https://github.com/stactools-packages/sentinel1/pull/62))
18+
- Fixed conda CI action, where `conda-forge` was not specified as primary
19+
channel for installation, which was causing conflicts between library
20+
versions.
21+
22+
### Changed
23+
24+
- mypy uses local hook instead of repo (repo was pulling type stubs for pystac
25+
1.12) h/t @tylanderson.
26+
- moved from setup.cfg to pyproject.toml
27+
1428
## [0.8.0] - 2023-02-16
1529

1630
### Added

docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ENV PYTHON_VERSION=3.11
77
WORKDIR $DOCKER_WORKDIR
88

99
# For caching purposes, install dependencies but remove the actual package
10-
COPY pyproject.toml setup.cfg ./
10+
COPY pyproject.toml ./
1111
COPY src/$DOCKER_NAMESPACE_PACKAGE_DIR/__init__.py src/$DOCKER_NAMESPACE_PACKAGE_DIR/
1212
RUN pip install . --no-binary rasterio \
1313
&& rm -r /opt/conda/lib/python$PYTHON_VERSION/site-packages/$DOCKER_NAMESPACE_PACKAGE_DIR

docker/Dockerfile-dev

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ RUN apt-get -y -q update \
1111
&& rm -rf /var/lib/apt/lists/
1212

1313
# For caching purposes, install dependencies but remove the actual package
14-
COPY pyproject.toml requirements-dev.txt setup.cfg ./
14+
COPY pyproject.toml requirements-dev.txt ./
1515
COPY src/$DOCKER_NAMESPACE_PACKAGE_DIR/__init__.py src/$DOCKER_NAMESPACE_PACKAGE_DIR/
1616
RUN pip install -r requirements-dev.txt \
1717
&& pip install . --no-binary rasterio \

examples/grd/S1A_EW_GRDM_1SDH_20221130T014342_20221130T014446_046117_058549/S1A_EW_GRDM_1SDH_20221130T014342_20221130T014446_046117_058549.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
"url": "https://earth.esa.int/eogateway"
5858
}
5959
],
60-
"platform": "SENTINEL-1A",
60+
"platform": "sentinel-1a",
6161
"constellation": "sentinel-1",
6262
"start_datetime": "2022-11-30T01:43:42.546629Z",
6363
"end_datetime": "2022-11-30T01:44:46.839082Z",
@@ -247,7 +247,7 @@
247247
"stac_extensions": [
248248
"https://stac-extensions.github.io/sar/v1.0.0/schema.json",
249249
"https://stac-extensions.github.io/sat/v1.0.0/schema.json",
250-
"https://stac-extensions.github.io/eo/v1.0.0/schema.json",
250+
"https://stac-extensions.github.io/eo/v1.1.0/schema.json",
251251
"https://stac-extensions.github.io/projection/v1.1.0/schema.json"
252252
],
253253
"collection": "sentinel1-grd"

examples/grd/S1A_IW_GRDH_1SDV_20210809T173953_20210809T174018_039156_049F13/S1A_IW_GRDH_1SDV_20210809T173953_20210809T174018_039156_049F13.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
"url": "https://earth.esa.int/eogateway"
5858
}
5959
],
60-
"platform": "SENTINEL-1A",
60+
"platform": "sentinel-1a",
6161
"constellation": "sentinel-1",
6262
"start_datetime": "2021-08-09T17:39:53.153776Z",
6363
"end_datetime": "2021-08-09T17:40:18.152800Z",
@@ -247,7 +247,7 @@
247247
"stac_extensions": [
248248
"https://stac-extensions.github.io/sar/v1.0.0/schema.json",
249249
"https://stac-extensions.github.io/sat/v1.0.0/schema.json",
250-
"https://stac-extensions.github.io/eo/v1.0.0/schema.json",
250+
"https://stac-extensions.github.io/eo/v1.1.0/schema.json",
251251
"https://stac-extensions.github.io/projection/v1.1.0/schema.json"
252252
],
253253
"collection": "sentinel1-grd"

examples/grd/collection.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"stac_extensions": [
3535
"https://stac-extensions.github.io/sar/v1.0.0/schema.json",
3636
"https://stac-extensions.github.io/sat/v1.0.0/schema.json",
37-
"https://stac-extensions.github.io/eo/v1.0.0/schema.json",
37+
"https://stac-extensions.github.io/eo/v1.1.0/schema.json",
3838
"https://stac-extensions.github.io/item-assets/v1.0.0/schema.json"
3939
],
4040
"item_assets": {

examples/rtc/sentinel1-rtc-aws/2016/S1B_20161121_12SYJ_ASC/S1B_20161121_12SYJ_ASC.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"gsd": 20,
3636
"start_datetime": "2016-11-21T01:09:10Z",
3737
"end_datetime": "2016-11-21T01:10:04Z",
38-
"created": "2023-05-09T12:38:30.201553Z",
38+
"created": "2025-05-08T17:20:29.669007Z",
3939
"mgrs:utm_zone": "12",
4040
"mgrs:latitude_band": "S",
4141
"mgrs:grid_square": "YJ",

examples/rtc/sentinel1-rtc-aws/2020/S1A_20200103_17RMJ_ASC/S1A_20200103_17RMJ_ASC.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"gsd": 20,
3636
"start_datetime": "2020-01-03T23:35:56Z",
3737
"end_datetime": "2020-01-03T23:36:46Z",
38-
"created": "2023-05-09T12:38:23.143724Z",
38+
"created": "2025-05-08T17:20:15.885836Z",
3939
"mgrs:utm_zone": "17",
4040
"mgrs:latitude_band": "R",
4141
"mgrs:grid_square": "MJ",

0 commit comments

Comments
 (0)