[Git][debian-gis-team/pyaps3][upstream] New upstream version 0.3.7
Antonio Valentino (@antonio.valentino)
gitlab at salsa.debian.org
Sun Aug 10 17:00:29 BST 2025
Antonio Valentino pushed to branch upstream at Debian GIS Project / pyaps3
Commits:
0ce13d1b by Antonio Valentino at 2025-08-09T07:22:36+00:00
New upstream version 0.3.7
- - - - -
3 changed files:
- .circleci/config.yml
- README.md
- 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)
=====================================
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/-/commit/0ce13d1ba0b66ffb9b2b787c5f48ef38bfe79ccb
--
View it on GitLab: https://salsa.debian.org/debian-gis-team/pyaps3/-/commit/0ce13d1ba0b66ffb9b2b787c5f48ef38bfe79ccb
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/d613b534/attachment-0001.htm>
More information about the Pkg-grass-devel
mailing list