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

Capability to read domain netCDF #361

Closed
Tracked by #378
dschlaep opened this issue Aug 3, 2023 · 0 comments · Fixed by #383
Closed
Tracked by #378

Capability to read domain netCDF #361

dschlaep opened this issue Aug 3, 2023 · 0 comments · Fixed by #383

Comments

@dschlaep
Copy link
Member

dschlaep commented Aug 3, 2023

No description provided.

@dschlaep dschlaep added this to the Release v8.0.0 milestone Aug 3, 2023
@dschlaep dschlaep mentioned this issue Oct 25, 2023
14 tasks
dschlaep added a commit that referenced this issue Jan 4, 2024
Read and create domain netCDF file

- close #361, close #362 

* SOILWAT2 can now be compiled in one of two modes
  (#361, #362; @N1ckP3rsl3y, @dschlaep):
    * `"netCDF"`-based input (currently limited to the `"domain"`); this mode is compiled if the new preprocessor definition `"SWNETCDF"` and the `"netCDF"` library are available, e.g., `CPPFLAGS=-DSWNETCDF make all`
    * text-based input and output (as previously)

* For `"netCDF"`-based SOILWAT2, information about the `"domain"` (i.e., simulation units and their geographic locations) is obtained from `"domain.nc"` (#361; @N1ckP3rsl3y, @dschlaep).

* `"netCDF"`-based SOILWAT2 is compiled if the new preprocessor definition `"SWNETCDF"` is made available, e.g., `CPPFLAGS=-DSWNETCDF make all`
* User-specified paths to `"netCDF"` header and library can be provided as well, e.g., `CPPFLAGS=-DSWNETCDF NC_CFLAGS="-I/path/to/include" NC_LIBS="-L/path/to/lib" make all`
* New input directory `"Input_nc/"` that describes `"netCDF"`-based inputs (paths provided by new entries in `"files.in"`).
* New text input file `"files_nc.in"` that lists for each input purpose (currently, only `"domain"` is implemented) the path to the `"netCDF"` input file and associated variable name.
* New text input file `"attribues_nc.in"` to provide global attributes and a geographic (and optionally a projected) `"CRS"` (coordinate reference system) that describe the `"domain.nc"`.
* A user provided `"domain.nc"` that describes the simulation `"domain"`. Specifications must be consistent with `"domain.in"`. If absent, a template is automatically generated based on `"domain.in"`.
@dschlaep dschlaep closed this as completed Jun 5, 2024
@dschlaep dschlaep linked a pull request Jun 6, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants