Configuration Guide
This page explains how CPFA is configured in practice, including environment settings, folder layout, and key file conventions.
Overview
The current version of CPFA does not use a central configuration file (such as YAML or JSON). Instead, configuration is defined by:
The Python and library versions used in the Conda environment
The folder structure in the project root
The names and locations of input and output files
The choice of ONNX model file
Environment Configuration
Recommended environment:
Operating system: Windows
Python: 3.9.2
Package manager: Conda
Required libraries:
numpypandasmatplotlibxarraycartopyonnx==1.13.1onnxruntime==1.14.0
Create and activate the environment as described in Getting Started.
Folder Configuration
Required folders:
download_dataStores downloaded ERA5 data (NetCDF or similar).
input_dataStores prepared input arrays such as
input_surface.npy.
output_dataStores prediction outputs, visualization products, and evaluation results.
These folder names are assumed by the scripts and should be preserved unless you adapt the code.
Input File Configuration
CPFA expects an input file:
Name:
input_surface.npyLocation:
input_datafolderShape:
(4, 721, 1440)Variable order:
[MSLP, U10, V10, T2M]
If you change the filename, shape, or order, you must update the corresponding script sections that load and interpret this array.
Model Selection
Available Pangu-Weather ONNX models in the project root:
pangu_weather_1.onnxpangu_weather_3.onnxpangu_weather_6.onnxpangu_weather_24.onnx
The prediction script chooses one of these models internally. To change the model used:
Locate the model-loading section in the prediction script and update the filename as needed.
Output Configuration
Prediction, visualization, and evaluation outputs are written into
the output_data folder by default. Outputs may include:
Numerical arrays
Diagnostic logs
Plot images
If you want to change the output location, modify the relevant paths in the scripts.
Extending Configuration
Future versions of CPFA may introduce a more formal configuration file. For now, the settings described above form the effective configuration of the system.