NanoFASE Data
The NanoFASE Data module is a set of scripts to compile and edit input data for the NanoFASE model.
See the NanoFASE documentation for full documentation.
Getting started
The package is available on PyPI or Conda, and the easiest way to use the package is to install one of these using Pixi, Conda/Mamba or Pip.
Conda:
$ conda install -c samharrison7 nfdata
Mamba:
$ mamba install -c samharrison7 nfdata
Pip:
$ pip install nfdata
Pixi (global):
$ pixi global install -c samharrison7 nfdata
Pixi (project):
$ pixi project channel add samharrison7
$ pixi add nfdata
Usage
usage: nfdata [-h] [--output OUTPUT] {create,edit,constants} file
Compile or edit data for the NanoFASE model.
positional arguments:
{create,edit,constants}
do you wish to create from scratch, edit the data or
create a constants file?
file path to the config file (create/edit tasks) or
constants file (constants task)
optional arguments:
-h, --help show this help message and exit
--output OUTPUT, -o OUTPUT
where to create the new constants file (for constants
task)
Creating a new dataset
Specifying the "create" option compiles a new NetCDF dataset and Fortran namelist constant file:
$ nfdata create /path/to/config.create.yaml
An annotated example config file is given: config.create.example.yaml. The file is quite self-explanatory, but a few further explanations are provided in this document.
The two files will be output to the paths specified in the config file.
Editing an existing dataset
To edit an existing NetCDF dataset, specify the "edit" option:
$ nfdata edit /path/to/config.edit.yaml
An annotated example config file is given: config.edit.example.yaml. This is similar (but not identical) in format to the creation config file, except only those variables you with to edit should be specified (all other variables are left as-is).
Certain variables can't be edited: flow_dir, is_estuary. Create a new dataset instead if you wish to change these variables.
The Fortran namelist file cannot be edited using this method and you should instead edit the file directly.
Only creating a new constants file
To simply convert a constants YAML file to a Fortran namelist file, you can use the constants option:
$ nfdata constants /path/to/constants.yaml -o /path/to/constants.nml
No config file is required. The location of the newly created constants file is given by the -o or --output argument.
Tips
- For the moment, all rasters must be the same CRS as the
flow_dirraster, and this must be a projected raster. We recommend ESPG:27700 (British National Grid). In addition, all rasters except forland_usemust be the same resolution asflow_dir. They can cover a large geographical region and the module will automatically clip them to the correct size. - Support for different file types is a bit sporadic at the moment. I suggest sticking the raster files for spatial variables, raster or CSV files for spatiotemporal variables (with 1 file per timestep for raster files) and shapefiles for point sources. You will trigger errors if you use an unsupported file.
- Example input data files are given in
data.example/thames_tio2_2015/. Running the model using the example config files uses these data.
Metadata
Release files for nfdata 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nfdata-0.3.1.tar.gz | 25.0 kB | With provenance | Details for nfdata-0.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nfdata-0.3.1-py3-none-any.whl | Python 3 | none | any | Details for nfdata-0.3.1-py3-none-any.whl |
Total release size: 52.3 kB
Release files / nfdata-0.3.1.tar.gz
| Download URL | nfdata-0.3.1.tar.gz |
|---|---|
| Size | 25.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
421f791b5c8d40253d50ebcefa43f6ac5f38c1eee6d5cb1d3dabb7290a1c7dc4
|
|
BLAKE2b-256 checksum How to use checksums |
e0704a856d0d230f3e66a7f006138c9a13ec9b2e402ff1ae9ac770d8bc64cd03
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.
Transparency logRelease files / nfdata-0.3.1-py3-none-any.whl
| Download URL | nfdata-0.3.1-py3-none-any.whl |
|---|---|
| Size | 27.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4bf9bf5d7fd19e6a728ec859e4b90397100744961c4cd83b0d4b293f0e19983c
|
|
BLAKE2b-256 checksum How to use checksums |
832314248484f85326e7d7f4e54db908d9f918756e955e19d9b06575f7397c0e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.
Transparency logSecurity for nfdata 0.3.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for nfdata-0.3.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.