Skip to content

Add options to .to_raster() #1363

Description

@erogluorhan

Since .to_raster()1 doesn't expose any options, it seems that currently the only way to make it try harder and produce a sharper image (assuming you have high-resolution data) is to set the figure DPI to something higher than the default (100) before calling .to_raster(). This is a bit annoying if you're using Jupyter though, because unless you reset the figure DPI to the default afterwards, it will display the figure blown up.

Anyway, I feel like this method should at least be mentioned in https://uxarray.readthedocs.io/en/latest/user-guide/mpl.html#rasterization. And/or option(s) could be added to .to_raster().

Originally posted by @zmoon in #1353

Footnotes

  1. thanks for adding this, have been enjoying it

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions