# Job: Local Filtering

## **Description**

Locally filter a refined map using a local resolution map. The Local Filtering job can:

* filter an input volume using a spatially adaptive filter, either using a `lanczos` (default) or `gaussian` kernel
* optionally apply global sharpening via a B-factor
* Run on the GPU (default) or CPU
* optionally filter only within a `mask_refine` input that is connected, to save time

The job is designed to work with the output of the [Local Resolution Estimation](/processing-data/all-job-types-in-cryosparc/post-processing/job-local-resolution-estimation.md) job.

## **Input**

* a single volume input containing
  * `map_half_A`
  * `map_half_B`
  * `map_locres`
  * `mask_refine` (optional)

## **Output**

* a single volume output containing
  * `map_filtered` , the locally filtered, globally sharpened output map

## **Common Parameters**

* `B-factor for sharpening` should be set to a negative value to sharpen
* `Maximum resolution for sharpening` should be set to a cutoff resolution to ensure that very high resolution Fourier components do not get over-sharpening resulting in a noisy output

## **Common Next Steps**


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://guide.cryosparc.com/processing-data/all-job-types-in-cryosparc/post-processing/job-local-filtering.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
