Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sample in sceaua #323

Open
XiaoXiaoLeisure opened this issue May 1, 2024 · 0 comments
Open

Sample in sceaua #323

XiaoXiaoLeisure opened this issue May 1, 2024 · 0 comments

Comments

@XiaoXiaoLeisure
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant