![]() |
MODFLOW 6 version 6.9.0.dev0
USGS Modular Hydrologic Model
|
This module contains the NCModelExportModule. More...
Data Types | |
| type | exportpackagetype |
| type | ncexportannotation |
| netcdf export attribute annotations More... | |
| type | ncmodelexporttype |
| base class for an export model More... | |
| type | ncbasemodelexporttype |
| abstract type for model netcdf export type More... | |
| interface | model_define |
| abstract interfaces for model netcdf export type More... | |
| interface | model_step |
| interface | package_export |
| interface | package_export_ilayer |
Enumerations | |
| enum | { netcdf_undef = 0 , netcdf_structured = 1 , netcdf_mesh2d = 2 } |
| netcdf export types enumerator More... | |
Functions/Subroutines | |
| subroutine | epkg_init (this, mf6_input, mshape, naux, param_names, nparam) |
| initialize dynamic package export object | |
| subroutine | update_state (this) |
| Update input in effect from the period block read states. | |
| subroutine | set_state (invar, has_value) |
| Set input in effect from a read state. | |
| logical(lgp) function | param_state (this, iparam) |
| .true. if a param has input in effect to export | |
| logical(lgp) function | aux_state (this, iaux) |
| .true. if an auxiliary variable has input in effect to export | |
| subroutine | user_nodes (this, vals, nodes) |
| Set user node values from a loaded period array. | |
| subroutine | epkg_destroy (this) |
| destroy dynamic package export object | |
| subroutine | set (this, modelname, modeltype, modelfname, nctype, disenum) |
| set netcdf file scoped attributes | |
| subroutine | export_init (this, modelname, modeltype, modelfname, nc_fname, disenum, nctype, iout) |
| initialization of model netcdf export | |
| class(exportpackagetype) function, pointer | export_get (this, idx) |
| retrieve dynamic export object from package list | |
| character(len=linelength) function | input_attribute (this, pkgname, idt) |
| build modflow_input attribute string | |
| integer(i4b) function | istp (this) |
| step index for timeseries data | |
| character(len=linelength) function, public | export_varname (pkgname, tagname, mempath, layer, iaux) |
| build netcdf variable name | |
| character(len=linelength) function, public | export_longname (longname, pkgname, tagname, mempath, layer, iaux, component_type, subcomponent_type) |
| build netcdf variable longname | |
| subroutine | export_input (this) |
| netcdf dynamic package period export | |
| character(len=linelength) function, public | wkt_to_cf_gridmapping (wkt) |
| map a WKT string to a CF-1.13 grid_mapping_name | |
| real(dp) function | wkt_find_param (wkt, name, found) |
| find the first number following a quoted parameter name | |
| subroutine | wkt_find_ellipsoid (wkt, semi_major_axis, inverse_flattening, found) |
| find semi-major axis and inverse flattening from a WKT string | |
| subroutine, public | wkt_transverse_mercator_params (wkt, longitude_of_central_meridian, latitude_of_projection_origin, scale_factor_at_central_meridian, false_easting, false_northing, semi_major_axis, inverse_flattening, found) |
| extract CF transverse_mercator grid_mapping parameters | |
| subroutine, public | wkt_lambert_conformal_conic_params (wkt, standard_parallel_1, standard_parallel_2, longitude_of_central_meridian, latitude_of_projection_origin, false_easting, false_northing, semi_major_axis, inverse_flattening, is_2sp, found) |
| extract CF lambert_conformal_conic grid_mapping parameters | |
| subroutine, public | wkt_albers_conical_equal_area_params (wkt, standard_parallel_1, standard_parallel_2, longitude_of_central_meridian, latitude_of_projection_origin, false_easting, false_northing, semi_major_axis, inverse_flattening, found) |
| extract CF albers_conical_equal_area grid_mapping parameters | |
| character(len=lenbigline) function, public | wrap_rotated_crs (wkt, xorigin, yorigin, angrot) |
| wrap a WKT2 PROJCRS in a derived CRS encoding grid rotation | |
| subroutine | export_destroy (this) |
| destroy model netcdf export object | |
This module defines a model export and base type for supported netcdf files and is not dependent on netcdf libraries.
|
private |
| Enumerator | |
|---|---|
| netcdf_undef | undefined netcdf export type |
| netcdf_structured | netcdf structrured export |
| netcdf_mesh2d | netcdf ugrid layered mesh export |
Definition at line 36 of file NCModel.f90.
|
private |
Definition at line 268 of file NCModel.f90.
|
private |
Definition at line 302 of file NCModel.f90.
|
private |
| [in] | mshape | model shape |
Definition at line 159 of file NCModel.f90.

|
private |
Definition at line 1119 of file NCModel.f90.

|
private |
Definition at line 510 of file NCModel.f90.
|
private |
Definition at line 388 of file NCModel.f90.

|
private |
Definition at line 655 of file NCModel.f90.
| character(len=linelength) function, public ncmodelexportmodule::export_longname | ( | character(len=*), intent(in) | longname, |
| character(len=*), intent(in) | pkgname, | ||
| character(len=*), intent(in) | tagname, | ||
| character(len=*), intent(in) | mempath, | ||
| integer(i4b), intent(in), optional | layer, | ||
| integer(i4b), intent(in), optional | iaux, | ||
| character(len=*), intent(in), optional | component_type, | ||
| character(len=*), intent(in), optional | subcomponent_type ) |
Definition at line 601 of file NCModel.f90.


| character(len=linelength) function, public ncmodelexportmodule::export_varname | ( | character(len=*), intent(in) | pkgname, |
| character(len=*), intent(in) | tagname, | ||
| character(len=*), intent(in) | mempath, | ||
| integer(i4b), intent(in), optional | layer, | ||
| integer(i4b), intent(in), optional | iaux ) |
Definition at line 560 of file NCModel.f90.


|
private |
Definition at line 528 of file NCModel.f90.

|
private |
Definition at line 546 of file NCModel.f90.


|
private |
The auxiliary variable param has input if any auxiliary variable has.
Definition at line 255 of file NCModel.f90.
|
private |
Definition at line 313 of file NCModel.f90.

|
private |
Definition at line 240 of file NCModel.f90.

|
private |
A block gives an array as values or as a time-array series. Arrays not given keep their input. An array linked to a series has no input to export, and none after the link until it is given values.
Definition at line 225 of file NCModel.f90.

|
private |
Grid array input is indexed by boundary (NODEULIST, NBOUND), or by user node when NODEULIST is empty. Other user nodes keep their value in nodes.
| [in] | vals | loaded period array |
| [in,out] | nodes | user node values |
Definition at line 281 of file NCModel.f90.
| subroutine, public ncmodelexportmodule::wkt_albers_conical_equal_area_params | ( | character(len=*), intent(in) | wkt, |
| real(dp), intent(out) | standard_parallel_1, | ||
| real(dp), intent(out) | standard_parallel_2, | ||
| real(dp), intent(out) | longitude_of_central_meridian, | ||
| real(dp), intent(out) | latitude_of_projection_origin, | ||
| real(dp), intent(out) | false_easting, | ||
| real(dp), intent(out) | false_northing, | ||
| real(dp), intent(out) | semi_major_axis, | ||
| real(dp), intent(out) | inverse_flattening, | ||
| logical(lgp), intent(out) | found ) |
Best-effort extraction from a WKT1 or WKT2 string – MF6 has no CRS parsing library. found=.false. if any parameter cannot be located.
Definition at line 974 of file NCModel.f90.

|
private |
Matches SPHEROID["name",A,B,...] (WKT1) or ELLIPSOID["name",A,B,...] (WKT2). Best-effort only. found=.false. if neither keyword is present or the two numbers cannot be read.
Definition at line 805 of file NCModel.f90.


|
private |
Matches e.g. PARAMETER["central_meridian",-117] (WKT1) or PARAMETER["Longitude of natural origin",-117,...] (WKT2). Best-effort only – MF6 has no CRS parsing library. found=.false. if name is not present or no number follows it.
Definition at line 763 of file NCModel.f90.


| subroutine, public ncmodelexportmodule::wkt_lambert_conformal_conic_params | ( | character(len=*), intent(in) | wkt, |
| real(dp), intent(out) | standard_parallel_1, | ||
| real(dp), intent(out) | standard_parallel_2, | ||
| real(dp), intent(out) | longitude_of_central_meridian, | ||
| real(dp), intent(out) | latitude_of_projection_origin, | ||
| real(dp), intent(out) | false_easting, | ||
| real(dp), intent(out) | false_northing, | ||
| real(dp), intent(out) | semi_major_axis, | ||
| real(dp), intent(out) | inverse_flattening, | ||
| logical(lgp), intent(out) | is_2sp, | ||
| logical(lgp), intent(out) | found ) |
Best-effort extraction from a WKT1 or WKT2 string – MF6 has no CRS parsing library. 2SP (two standard parallels) only: CF's lambert_conformal_conic has no scale_factor attribute, so a 1SP (scale-factor-based) WKT cannot be exactly represented without trigonometric conversion MF6 has no library for. is_2sp=.false. if a second standard parallel is not present (i.e. likely 1SP); found=.false. if is_2sp but any other parameter cannot be located.
Definition at line 914 of file NCModel.f90.

| character(len=linelength) function, public ncmodelexportmodule::wkt_to_cf_gridmapping | ( | character(len=*), intent(in) | wkt | ) |
Accepts either WKT1 (OGC 01-009, PROJECTION["name"]) or WKT2 (ISO 19162:2019, METHOD["name"]) format. WKT1 is tried first; if PROJECTION[ is absent the WKT2 METHOD[ path is attempted. Returns '' for geographic CRS or unrecognised projection names. Only common groundwater projections included. Matching is case-insensitive.
Definition at line 680 of file NCModel.f90.

| subroutine, public ncmodelexportmodule::wkt_transverse_mercator_params | ( | character(len=*), intent(in) | wkt, |
| real(dp), intent(out) | longitude_of_central_meridian, | ||
| real(dp), intent(out) | latitude_of_projection_origin, | ||
| real(dp), intent(out) | scale_factor_at_central_meridian, | ||
| real(dp), intent(out) | false_easting, | ||
| real(dp), intent(out) | false_northing, | ||
| real(dp), intent(out) | semi_major_axis, | ||
| real(dp), intent(out) | inverse_flattening, | ||
| logical(lgp), intent(out) | found ) |
Best-effort extraction from a WKT1 or WKT2 string – MF6 has no CRS parsing library. Tries WKT1 parameter names first, falling back to WKT2 names. found=.false. if any parameter cannot be located.
Definition at line 864 of file NCModel.f90.

| character(len=lenbigline) function, public ncmodelexportmodule::wrap_rotated_crs | ( | character(len=*), intent(in) | wkt, |
| real(dp), intent(in) | xorigin, | ||
| real(dp), intent(in) | yorigin, | ||
| real(dp), intent(in) | angrot ) |
Builds a DerivedProjectedCRS wrapping the given WKT2 PROJCRS in an EPSG:9624 (affine parametric transformation) deriving conversion parameterized from xorigin/yorigin/angrot (degrees). Per ISO 19111, a deriving conversion is directed base->derived, so the parameters encode the world->local (inverse) rotation; a CRS-aware consumer applies the inverse to resolve true position from local coordinates. Returns '' if wkt is not recognized as a WKT2 PROJCRS – a best-effort structural check only, as MF6 has no CRS parsing library and does not validate the WKT beyond this.
Definition at line 1035 of file NCModel.f90.
