[Git][debian-gis-team/pyaps3][master] 5 commits: New upstream version 0.3.7

Antonio Valentino (@antonio.valentino) gitlab at salsa.debian.org
Sun Aug 10 17:00:19 BST 2025



Antonio Valentino pushed to branch master at Debian GIS Project / pyaps3


Commits:
0ce13d1b by Antonio Valentino at 2025-08-09T07:22:36+00:00
New upstream version 0.3.7
- - - - -
0a38b29f by Antonio Valentino at 2025-08-09T07:22:43+00:00
Update upstream source from tag 'upstream/0.3.7'

Update to upstream version '0.3.7'
with Debian dir 1597680d9fb6a4d3836752027111474e96307fc9
- - - - -
b8c382b0 by Antonio Valentino at 2025-08-09T07:23:21+00:00
New upstream release

- - - - -
e1afbc72 by Antonio Valentino at 2025-08-10T15:57:09+00:00
Fix Cite-As syntax

- - - - -
92a4a657 by Antonio Valentino at 2025-08-10T15:57:09+00:00
Set distribution to unstable

- - - - -


5 changed files:

- .circleci/config.yml
- README.md
- debian/changelog
- debian/upstream/metadata
- src/pyaps3/autoget.py


Changes:

=====================================
.circleci/config.yml
=====================================
@@ -38,12 +38,13 @@ jobs:
             apt update
             apt-get update --yes && apt-get upgrade --yes
             apt-get install --yes git wget
-            # download and install miniforge
+            # install miniforge (https://github.com/conda-forge/miniforge?tab=readme-ov-file#as-part-of-a-ci-pipeline)
             mkdir -p ${HOME}/tools
             cd ${HOME}/tools
-            wget https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-x86_64.sh
-            bash Miniforge3-Linux-x86_64.sh -b -p ${HOME}/tools/miniforge
-            ${HOME}/tools/miniforge/bin/mamba init bash
+            wget -O Miniforge3.sh "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh"
+            bash Miniforge3.sh -b -p ${HOME}/tools/miniforge
+            source "${HOME}/tools/miniforge/etc/profile.d/conda.sh"
+            source "${HOME}/tools/miniforge/etc/profile.d/mamba.sh"
             # modify/export env var PATH to BASH_ENV to be shared across run steps
             echo 'export PATH=${CONDA_PREFIX}/bin:${PATH}' >> ${BASH_ENV}
 


=====================================
README.md
=====================================
@@ -37,6 +37,10 @@ apt install python3-pyaps3
 
 #### b. Install the development version
 
+<p>
+<details>
+<p><summary>Click to expand for more details</summary></p>
+
 The development version can be installed via `pip` as:
 
 ```bash
@@ -56,6 +60,8 @@ Test the installation by running:
 ```bash
 python PyAPS/tests/test_calc.py
 ```
+</details>
+</p>
 
 ### 2. Account setup for [ERA5](https://www.ecmwf.int/en/forecasts/dataset/ecmwf-reanalysis-v5)
 


=====================================
debian/changelog
=====================================
@@ -1,9 +1,14 @@
-pyaps3 (0.3.6-2) UNRELEASED; urgency=medium
+pyaps3 (0.3.7-1) unstable; urgency=medium
 
-  * Team upload.
+  [ Bas Couwenberg ]
   * Bump Standards-Version to 4.7.2, no changes.
 
- -- Bas Couwenberg <sebastic at debian.org>  Thu, 20 Mar 2025 06:17:04 +0100
+  [ Antonio Valentino ]
+  * New upstream release.
+  * debia/upstream/metadata:
+    - Fix Cite-As syntax.
+
+ -- Antonio Valentino <antonio.valentino at tiscali.it>  Sat, 09 Aug 2025 07:25:40 +0000
 
 pyaps3 (0.3.6-1) unstable; urgency=medium
 


=====================================
debian/upstream/metadata
=====================================
@@ -3,8 +3,4 @@ Bug-Database: https://github.com/insarlab/PyAPS/issues
 Bug-Submit: https://github.com/insarlab/PyAPS/issues/new
 Repository: https://github.com/insarlab/PyAPS.git
 Repository-Browse: https://github.com/insarlab/PyAPS
-Cite-As: >
- Jolivet, R., R. Grandin, C. Lasserre, M.-P. Doin and G. Peltzer (2011),
- Systematic InSAR tropospheric phase delay corrections from global
- meteorological reanalysis data, Geophys. Res. Lett., 38, L17311,
- doi:10.1029/2011GL048757.
+Cite-As: https://github.com/insarlab/PyAPS?tab=readme-ov-file#3-citing-this-work


=====================================
src/pyaps3/autoget.py
=====================================
@@ -10,6 +10,7 @@
 
 import os.path
 import configparser
+import math
 import urllib3
 import cdsapi
 import pyaps3 as pa
@@ -40,6 +41,17 @@ def ECMWFdload(bdate,hr,filedir,model='ERA5',datatype='fc',humidity='Q',snwe=Non
     #-------------------------------------------
     # Initialize
 
+    # Ensure snwe is in native int, not numpy.int32/64 or float etc.
+    # Note that even though cdsapi support float, we still use int
+    # for file naming simplicity at the cost of slightly larger file size.
+    if snwe is not None:
+        s, n, w, e = snwe
+        snwe = (math.floor(s), math.ceil(n), math.floor(w), math.ceil(e))
+        snwe = tuple(int(x) for x in snwe)
+        if (s, n, w, e) != snwe:
+            print(f'WARNING: input area ({s}, {n}, {w}, {e}) is NOT exact integer,',
+                  f'\n\tconvert to its bounding box in integer {snwe} and continue.')
+
     # Check data
     assert model in ('ERA5', 'ERAINT', 'HRES'), f'Unknown model for ECMWF: {model}'
 
@@ -238,4 +250,3 @@ def NARRdload(bdate,hr,filedir):
             urllib3.urlretrieve(weburl,dname)
 
     return flist
-



View it on GitLab: https://salsa.debian.org/debian-gis-team/pyaps3/-/compare/b6fbc81c24cd7f7aa6d41c5fa8609604cd6f0bd4...92a4a657bd5535c959b88fcc515b62b87f194f54

-- 
View it on GitLab: https://salsa.debian.org/debian-gis-team/pyaps3/-/compare/b6fbc81c24cd7f7aa6d41c5fa8609604cd6f0bd4...92a4a657bd5535c959b88fcc515b62b87f194f54
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-grass-devel/attachments/20250810/bd331e50/attachment-0001.htm>


More information about the Pkg-grass-devel mailing list