Skip to content

Sample in sceaua #323

@XiaoXiaoLeisure

Description

@XiaoXiaoLeisure

Hi, I am using SPOTY's SCEUA algorithm to optimize the VIC model. I want to keep the parameter combinations of each calculation, but I find that the number of parameter combinations in the output csv file is less than iterations, for example, iterations=500, len(params)=208.

sampler = spotpy.algorithms.sceua(cal_setup, dbname=name, dbformat='csv')
sampler.sample(iterations)

results_df = pd.DataFrame(np.array(sampler.getdata()))
columns_to_save = results_df.columns[:7] # 获取前7列的列名
filtered_df = results_df[columns_to_save]
filtered_df.columns = ['like1', 'binfil', 'Ds','Ds_max', 'Ws', 'Soil_D2', 'Soil_D3']
filtered_df.to_excel(outCal + paramfile, sheet_name='param', index=False)

How can I get the VIC parameters for each calculation?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions