@agrodt/aquacrop-converter
v0.1.0
Published
Command-line converter for migrating legacy AquaCrop projects to AquaCrop 7.3
Readme
@agrodt/aquacrop-converter
Command-line tools for inspecting AquaCrop projects and converting supported AquaCrop 5.x and 6.x projects to the AquaCrop 7.3 layout.
The CLI accepts ZIP archives and directories, validates project references, generates the matching AquaCrop 7.3 program-parameter file, and packages the converted project as a ZIP archive. Existing AquaCrop 7.x projects can be inspected and packaged without being rewritten.
Conversion and validation are structural. AquaCrop is not bundled or executed.
Requirements
Node.js 22.12 or newer is required.
Usage
Run the package with npx:
npx @agrodt/aquacrop-converter inspect project.zip
npx @agrodt/aquacrop-converter convert project.zip \
--output project-v73.zip \
--strict \
--cultivation-year-mode annualThe main options are:
--project <path>selects a project when the input contains multiple.PRMor.PROfiles.--strictenables strict structural validation.--cultivation-year-mode annual|preservecontrols converted cultivation-year values.--report=none|text|jsoncontrols stdout output; the default istext.--report-file <path>writes the full conversion report to a separate JSON file.
The CLI returns a nonzero exit code when inspection or conversion fails.
See the project repository for supported project versions, conversion details, limitations, and development instructions.
