Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

t.rast.import.netcdf: handle empty CRS and no subdataset #1188

Merged
merged 14 commits into from
Sep 4, 2024
3 changes: 3 additions & 0 deletions .github/workflows/apt.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,12 @@ libopenblas-dev
libpng-dev
libproj-dev
libreadline-dev
libudunits2-dev
libudunits2-data
libzstd-dev
proj-bin
pdal
sqlite3
subversion
udunits-bin
zlib1g-dev
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ jobs:
run: |
GDAL_VERSION="$(gdal-config --version)"
export GDAL_VERSION
UDUNITS2_XML_PATH=/usr/share/xml/udunits/udunits2.xml
export UDUNITS2_XML_PATH
pip install -r grass-addons/.github/workflows/extra_requirements.txt

- name: Set up R
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/extra_requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ pandas
scikit-learn
GDAL==${GDAL_VERSION}
pygbif
cf_units
cf_units @ git+https://github.com/SciTools/cf-units@f57a7f1fdba4e9424e4dbbc01b614e521a88086c
thredds_crawler
10 changes: 9 additions & 1 deletion src/temporal/t.rast.import.netcdf/t.rast.import.netcdf.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,18 @@ <h2>DESCRIPTION</h2>
can be imported via <em>r.in.gdal</em> or linked with <em>r.external</em>.

<p>
<em>t.rast.import.netcdf</em> can use GDALs Virtual Raster format (VRT) if data's
<em>t.rast.import.netcdf</em> uses GDALs Virtual Raster format (VRT) if data's
Coordinate Reference system differs from the one of the current location where they
are supposed to be imported.

<p>
Reprojection on import is done using GDAL warp if necessary. In that case,
users should be aware of the extent and resolution of the data to import
and the current computational region. Import is limited to and aligned with
the current computational region, if the <b>r-flag</b> is set. Otherwise,
extent and resolution in the target CRS is guessed by GDAL. Import of global
data to coordinate systems that do not support that extent will thus fail.

<p>
Starting with GRASS GIS version 8.0, different variables or subdatasets in a
NetCDF file can be imported as "semantic_label" into one STRDS. To achieve this,
Expand Down
Loading