
Security News
MCP Community Begins Work on Official MCP Metaregistry
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
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.
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: 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)
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.
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.
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.
flow_dir
raster, and this must be a projected raster. We recommend ESPG:27700 (British National Grid). In addition, all rasters except for land_use
must be the same resolution as flow_dir
. They can cover a large geographical region and the module will automatically clip them to the correct size.data.example/thames_tio2_2015/
. Running the model using the example config files uses these data.FAQs
Compile and edit input data for the NanoFASE model
We found that nfdata demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.