pytroll / pytroll/pyresample

problem about nprocs parameter in kd_tree.resample_nearest

Open
#387 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
385
Forks
102
Avg merge
4d 2h
Merged PRs (30d)
9

Description

Code Sample, a minimal, complete, and verifiable piece of code
# Your code here
# 将条带数据重采样至网格数据
result_aod550 = kd_tree.resample_nearest(swath_def, aod550,area_def, radius_of_influence=5000, fill_value=None, nprocs=1)
result_time = kd_tree.resample_nearest(swath_def, time,area_def, radius_of_influence=5000, fill_value=None, nprocs=1)
Problem description

When I set the nprocs=1, why it will use all threads of the machine?
image

Thanks for the reply!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the kd_tree.resample_nearest entry point and reproduce the provided swath-to-grid example with nprocs=1 while observing thread usage. Trace how the nprocs parameter is passed and determine whether the observed behavior is expected or should be changed; done means the behavior is clarified or corrected with a regression check.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.