grdwindinversion 0.2.5__tar.gz → 0.2.6__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- grdwindinversion-0.2.6/.github/workflows/build.yml +40 -0
- {grdwindinversion-0.2.5 → grdwindinversion-0.2.6}/.github/workflows/ci.yml +27 -23
- {grdwindinversion-0.2.5 → grdwindinversion-0.2.6}/PKG-INFO +4 -1
- {grdwindinversion-0.2.5 → grdwindinversion-0.2.6}/grdwindinversion/inversion.py +1 -1
- {grdwindinversion-0.2.5 → grdwindinversion-0.2.6}/grdwindinversion.egg-info/PKG-INFO +4 -1
- {grdwindinversion-0.2.5 → grdwindinversion-0.2.6}/grdwindinversion.egg-info/SOURCES.txt +1 -0
- {grdwindinversion-0.2.5 → grdwindinversion-0.2.6}/grdwindinversion.egg-info/requires.txt +3 -0
- {grdwindinversion-0.2.5 → grdwindinversion-0.2.6}/pyproject.toml +3 -0
- {grdwindinversion-0.2.5 → grdwindinversion-0.2.6}/.editorconfig +0 -0
- {grdwindinversion-0.2.5 → grdwindinversion-0.2.6}/.github/dependabot.yml +0 -0
- {grdwindinversion-0.2.5 → grdwindinversion-0.2.6}/.github/workflows/publish.yml +0 -0
- {grdwindinversion-0.2.5 → grdwindinversion-0.2.6}/.gitignore +0 -0
- {grdwindinversion-0.2.5 → grdwindinversion-0.2.6}/.pre-commit-config.yaml +0 -0
- {grdwindinversion-0.2.5 → grdwindinversion-0.2.6}/AUTHORS.rst +0 -0
- {grdwindinversion-0.2.5 → grdwindinversion-0.2.6}/CONTRIBUTING.rst +0 -0
- {grdwindinversion-0.2.5 → grdwindinversion-0.2.6}/HISTORY.rst +0 -0
- {grdwindinversion-0.2.5 → grdwindinversion-0.2.6}/LICENSE +0 -0
- {grdwindinversion-0.2.5 → grdwindinversion-0.2.6}/MANIFEST.in +0 -0
- {grdwindinversion-0.2.5 → grdwindinversion-0.2.6}/Makefile +0 -0
- {grdwindinversion-0.2.5 → grdwindinversion-0.2.6}/README.md +0 -0
- {grdwindinversion-0.2.5 → grdwindinversion-0.2.6}/ci/requirements/docs.yaml +0 -0
- {grdwindinversion-0.2.5 → grdwindinversion-0.2.6}/ci/requirements/environment.yaml +0 -0
- {grdwindinversion-0.2.5 → grdwindinversion-0.2.6}/docs/Makefile +0 -0
- {grdwindinversion-0.2.5 → grdwindinversion-0.2.6}/docs/_static/css/grdwindinversion.css +0 -0
- {grdwindinversion-0.2.5 → grdwindinversion-0.2.6}/docs/algorithm.rst +0 -0
- {grdwindinversion-0.2.5 → grdwindinversion-0.2.6}/docs/authors.rst +0 -0
- {grdwindinversion-0.2.5 → grdwindinversion-0.2.6}/docs/conf.py +0 -0
- {grdwindinversion-0.2.5 → grdwindinversion-0.2.6}/docs/contributing.rst +0 -0
- {grdwindinversion-0.2.5 → grdwindinversion-0.2.6}/docs/examples/wind-inversion-from-grd.ipynb +0 -0
- {grdwindinversion-0.2.5 → grdwindinversion-0.2.6}/docs/history.rst +0 -0
- {grdwindinversion-0.2.5 → grdwindinversion-0.2.6}/docs/index.rst +0 -0
- {grdwindinversion-0.2.5 → grdwindinversion-0.2.6}/docs/installation.rst +0 -0
- {grdwindinversion-0.2.5 → grdwindinversion-0.2.6}/docs/make.bat +0 -0
- {grdwindinversion-0.2.5 → grdwindinversion-0.2.6}/docs/modules.rst +0 -0
- {grdwindinversion-0.2.5 → grdwindinversion-0.2.6}/docs/readme.rst +0 -0
- {grdwindinversion-0.2.5 → grdwindinversion-0.2.6}/docs/usage.rst +0 -0
- {grdwindinversion-0.2.5 → grdwindinversion-0.2.6}/grdwindinversion/.github/ISSUE_TEMPLATE.md +0 -0
- {grdwindinversion-0.2.5 → grdwindinversion-0.2.6}/grdwindinversion/.gitignore +0 -0
- {grdwindinversion-0.2.5 → grdwindinversion-0.2.6}/grdwindinversion/__init__.py +0 -0
- {grdwindinversion-0.2.5 → grdwindinversion-0.2.6}/grdwindinversion/config_prod.yaml +0 -0
- {grdwindinversion-0.2.5 → grdwindinversion-0.2.6}/grdwindinversion/config_prod_recal.yaml +0 -0
- {grdwindinversion-0.2.5 → grdwindinversion-0.2.6}/grdwindinversion/data_config.yaml +0 -0
- {grdwindinversion-0.2.5 → grdwindinversion-0.2.6}/grdwindinversion/load_config.py +0 -0
- {grdwindinversion-0.2.5 → grdwindinversion-0.2.6}/grdwindinversion/main.py +0 -0
- {grdwindinversion-0.2.5 → grdwindinversion-0.2.6}/grdwindinversion/streaks.py +0 -0
- {grdwindinversion-0.2.5 → grdwindinversion-0.2.6}/grdwindinversion/utils.py +0 -0
- {grdwindinversion-0.2.5 → grdwindinversion-0.2.6}/grdwindinversion/utils_memory.py +0 -0
- {grdwindinversion-0.2.5 → grdwindinversion-0.2.6}/grdwindinversion.egg-info/dependency_links.txt +0 -0
- {grdwindinversion-0.2.5 → grdwindinversion-0.2.6}/grdwindinversion.egg-info/entry_points.txt +0 -0
- {grdwindinversion-0.2.5 → grdwindinversion-0.2.6}/grdwindinversion.egg-info/top_level.txt +0 -0
- {grdwindinversion-0.2.5 → grdwindinversion-0.2.6}/recipe/meta.yaml +0 -0
- {grdwindinversion-0.2.5 → grdwindinversion-0.2.6}/requirements_dev.txt +0 -0
- {grdwindinversion-0.2.5 → grdwindinversion-0.2.6}/requirements_doc.txt +0 -0
- {grdwindinversion-0.2.5 → grdwindinversion-0.2.6}/setup.cfg +0 -0
- {grdwindinversion-0.2.5 → grdwindinversion-0.2.6}/tests/__init__.py +0 -0
- {grdwindinversion-0.2.5 → grdwindinversion-0.2.6}/tests/config_test.yaml +0 -0
- {grdwindinversion-0.2.5 → grdwindinversion-0.2.6}/tests/test_grdwindinversion_ci.py +0 -0
- {grdwindinversion-0.2.5 → grdwindinversion-0.2.6}/tox.ini +0 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
name: Build and Upload Conda Package
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
release:
|
|
5
|
+
types:
|
|
6
|
+
- created
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
build-and-upload-conda-package:
|
|
10
|
+
if: true
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
#${{ github.event.workflow_run.conclusion == 'success' }}
|
|
13
|
+
steps:
|
|
14
|
+
- name: Checkout repository
|
|
15
|
+
uses: actions/checkout@v3
|
|
16
|
+
with:
|
|
17
|
+
fetch-depth: 0
|
|
18
|
+
|
|
19
|
+
- name: Set up Miniconda
|
|
20
|
+
uses: conda-incubator/setup-miniconda@v2
|
|
21
|
+
with:
|
|
22
|
+
auto-update-conda: true
|
|
23
|
+
python-version: 3.9
|
|
24
|
+
|
|
25
|
+
- name: Install conda-build
|
|
26
|
+
run: |
|
|
27
|
+
conda init
|
|
28
|
+
source ~/.bashrc
|
|
29
|
+
conda activate base
|
|
30
|
+
conda install -y -c conda-forge conda-build anaconda-client
|
|
31
|
+
|
|
32
|
+
- name: Build and Upload Conda package
|
|
33
|
+
env:
|
|
34
|
+
ANACONDA_TOKEN: ${{ secrets.ANACONDA_TOKEN }}
|
|
35
|
+
run: |
|
|
36
|
+
cd recipe
|
|
37
|
+
conda init
|
|
38
|
+
source ~/.bashrc
|
|
39
|
+
conda activate base
|
|
40
|
+
conda-build . --token $ANACONDA_TOKEN --user tcevaer -c tcevaer -c conda-forge
|
|
@@ -15,65 +15,69 @@ jobs:
|
|
|
15
15
|
|
|
16
16
|
steps:
|
|
17
17
|
# Checkout the code
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
- name: Checkout code
|
|
19
|
+
uses: actions/checkout@v4
|
|
20
20
|
|
|
21
21
|
- uses: mamba-org/setup-micromamba@v1
|
|
22
22
|
with:
|
|
23
23
|
micromamba-version: "1.5.9-1" # any version from https://github.com/mamba-org/micromamba-releases
|
|
24
|
-
channels: tcevaer, conda-forge
|
|
24
|
+
channels: tcevaer, conda-forge
|
|
25
25
|
init-shell: bash
|
|
26
26
|
post-cleanup: "all"
|
|
27
27
|
|
|
28
|
+
- name: Configure Conda channel priority to disabled
|
|
29
|
+
run: |
|
|
30
|
+
conda config --set channel_priority disabled
|
|
31
|
+
|
|
28
32
|
- name: Create environment and install tools
|
|
29
|
-
run: micromamba create -n grdwind_env pytest conda-build boa python=3.10 -y
|
|
33
|
+
run: micromamba create -n grdwind_env pytest conda-build boa python=3.10 -y
|
|
30
34
|
|
|
31
35
|
- name: Build package
|
|
32
36
|
run: |
|
|
33
37
|
cd recipe
|
|
34
38
|
eval "$(micromamba shell hook --shell bash)"
|
|
35
39
|
micromamba activate grdwind_env
|
|
36
|
-
conda mambabuild .
|
|
40
|
+
conda mambabuild .
|
|
37
41
|
|
|
38
42
|
# Install the built package into the environment
|
|
39
43
|
- name: Install the built package
|
|
40
44
|
run: |
|
|
41
45
|
eval "$(micromamba shell hook --shell bash)"
|
|
42
46
|
micromamba activate grdwind_env
|
|
43
|
-
conda install --use-local grdwindinversion -y
|
|
47
|
+
conda install --use-local grdwindinversion -y
|
|
44
48
|
|
|
45
49
|
# Cache the test data if previously downloaded (up to 10 GB limit for the cache)
|
|
46
50
|
# WARNING : modify the key if the data is modified !!
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
51
|
+
- name: Cache test data
|
|
52
|
+
uses: actions/cache@v4
|
|
53
|
+
id: cache
|
|
54
|
+
with:
|
|
55
|
+
path: ./test_data
|
|
56
|
+
key: test-data-v3
|
|
57
|
+
restore-keys: test-data-v3
|
|
54
58
|
|
|
55
59
|
# Download test data if not already cached
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
60
|
+
- name: Download test data
|
|
61
|
+
if: steps.cache.outputs.cache-hit != 'true' # Only download if cache miss
|
|
62
|
+
run: |
|
|
59
63
|
mkdir -p ./test_data/
|
|
60
64
|
wget https://cloud.ifremer.fr/index.php/s/ExLQ2TnYAqozPWE/download -O /tmp/ecmwf.zip
|
|
61
65
|
unzip /tmp/ecmwf.zip -d ./test_data/
|
|
62
66
|
wget https://cloud.ifremer.fr/index.php/s/kRgdOOPsjoZieZR/download -O /tmp/l1.zip
|
|
63
67
|
unzip /tmp/l1.zip -d ./test_data/
|
|
64
|
-
|
|
68
|
+
timeout-minutes: 200 # Adjust depending on the size of your data
|
|
65
69
|
|
|
66
70
|
# Set up xsar configuration
|
|
67
|
-
|
|
68
|
-
|
|
71
|
+
- name: Setup xsar configuration
|
|
72
|
+
run: |
|
|
69
73
|
mkdir -p ~/.xsar
|
|
70
74
|
echo "data_dir: /tmp" > ~/.xsar/config.yaml
|
|
71
75
|
echo "auxiliary_dir: ./test_data/auxiliary" >> ~/.xsar/config.yaml
|
|
72
76
|
echo "path_dataframe_aux: ./test_data/auxiliary/active_aux.csv" >> ~/.xsar/config.yaml
|
|
73
77
|
|
|
74
78
|
# Set up grdwindinversion configuration
|
|
75
|
-
|
|
76
|
-
|
|
79
|
+
- name: Setup grdwindinversion configuration
|
|
80
|
+
run: |
|
|
77
81
|
mkdir -p ~/.grdwindinversion
|
|
78
82
|
echo "'ecmwf_0100_1h': ./test_data/ECMWF/forecast/hourly/0100deg/netcdf_light/%Y/%j/ECMWF_FORECAST_0100_%Y%m%d%H%M_10U_10V.nc" > ~/.grdwindinversion/data_config.yaml
|
|
79
83
|
echo "'ecmwf_0125_1h': ./test_data/ECMWF/0.125deg/1h/forecasts/%Y/%j/ecmwf_%Y%m%d%H%M.nc" >> ~/.grdwindinversion/data_config.yaml
|
|
@@ -82,8 +86,8 @@ jobs:
|
|
|
82
86
|
#echo "'lut_ms1ahw_path': './test_data/GMFS/v1.6/GMF_cmodms1ahw'" >> ~/.grdwindinversion/data_config.yaml
|
|
83
87
|
|
|
84
88
|
# Run the tests
|
|
85
|
-
|
|
86
|
-
|
|
89
|
+
- name: Run tests
|
|
90
|
+
run: |
|
|
87
91
|
eval "$(micromamba shell hook --shell bash)"
|
|
88
92
|
micromamba activate grdwind_env
|
|
89
93
|
pytest
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: grdwindinversion
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.6
|
|
4
4
|
Summary: Package to perform Wind inversion from GRD Level-1 SAR images
|
|
5
5
|
License: MIT
|
|
6
6
|
Classifier: Development Status :: 2 - Pre-Alpha
|
|
@@ -27,6 +27,9 @@ Requires-Dist: numpy
|
|
|
27
27
|
Requires-Dist: scipy
|
|
28
28
|
Requires-Dist: fsspec
|
|
29
29
|
Requires-Dist: aiohttp
|
|
30
|
+
Requires-Dist: xarray-safe-s1
|
|
31
|
+
Requires-Dist: xradarsat2
|
|
32
|
+
Requires-Dist: xarray-safe-rcm
|
|
30
33
|
|
|
31
34
|
|
|
32
35
|
# grdwindinversion
|
|
@@ -101,7 +101,7 @@ def getOutputName2(input_file, outdir, sensor, meta, subdir=True):
|
|
|
101
101
|
"${MISSIONID}_OK${DATA1}_PK${DATA2}_${DATA3}_${BEAM}_${DATE}_${TIME}_${POLARIZATION1}_${POLARIZATION2}_${PRODUCT}")
|
|
102
102
|
match = regex.match(basename_match)
|
|
103
103
|
MISSIONID, DATA1, DATA2, DATA3, BEAM_MODE, DATE, TIME, POLARIZATION1, POLARIZATION2, LAST = match.groups()
|
|
104
|
-
new_format = f"{MISSIONID.lower()}-{
|
|
104
|
+
new_format = f"{MISSIONID.lower()}-{BEAM_MODE.lower()}-owi-xx-{meta_start_date.lower()}-{meta_stop_date.lower()}-_____-_____.nc"
|
|
105
105
|
else:
|
|
106
106
|
raise ValueError(
|
|
107
107
|
"sensor must be S1A|S1B|RS2|RCM, got sensor %s" % sensor)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: grdwindinversion
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.6
|
|
4
4
|
Summary: Package to perform Wind inversion from GRD Level-1 SAR images
|
|
5
5
|
License: MIT
|
|
6
6
|
Classifier: Development Status :: 2 - Pre-Alpha
|
|
@@ -27,6 +27,9 @@ Requires-Dist: numpy
|
|
|
27
27
|
Requires-Dist: scipy
|
|
28
28
|
Requires-Dist: fsspec
|
|
29
29
|
Requires-Dist: aiohttp
|
|
30
|
+
Requires-Dist: xarray-safe-s1
|
|
31
|
+
Requires-Dist: xradarsat2
|
|
32
|
+
Requires-Dist: xarray-safe-rcm
|
|
30
33
|
|
|
31
34
|
|
|
32
35
|
# grdwindinversion
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{grdwindinversion-0.2.5 → grdwindinversion-0.2.6}/docs/examples/wind-inversion-from-grd.ipynb
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{grdwindinversion-0.2.5 → grdwindinversion-0.2.6}/grdwindinversion/.github/ISSUE_TEMPLATE.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{grdwindinversion-0.2.5 → grdwindinversion-0.2.6}/grdwindinversion.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{grdwindinversion-0.2.5 → grdwindinversion-0.2.6}/grdwindinversion.egg-info/entry_points.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|