Skip to content

A Python app to build a input database to DISPLACE from converting the numerous input text files obtained from the DISPLACE input R routines. The aim is to ultimately provide a new alternative path, besides the txt files, to input data into DISPLACE in a more compacted and structured way i.e. as a db file.

Notifications You must be signed in to change notification settings

frabas/PyDisplaceInput

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyDisplaceInput

Usage:

Run the script from a command prompt, specifying at least the scenario name, the name and the input directory if it is not the current:

py_input --verbose --overwrite --name fake \
    --directory DISPLACE_input_minitest/ \
    baseline

For example:

.\py_input.py --overwrite --name fake --directory C:\Users\fbas\Documents\GitHub\DISPLACE_input_minitest baseline

or, for another scenario:

.\py_input.py --overwrite --name fake --directory C:\Users\fbas\Documents\GitHub\DISPLACE_input_minitest areaclosure

--verbose shows some info while running

--overwrite overwrites the output file if it is already present

--directory selects the input directory, where the model resides

baseline is the name of the scenario.

Since the --outfile or -o option is not set, the output file will reside in the directory path and will be named baseline.db.

You can specify an alternative output name: -o outfile.db.

Use the --help option to show the usage.

About

A Python app to build a input database to DISPLACE from converting the numerous input text files obtained from the DISPLACE input R routines. The aim is to ultimately provide a new alternative path, besides the txt files, to input data into DISPLACE in a more compacted and structured way i.e. as a db file.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages