Skip to content

cannot plot large images #10

Closed
Closed

Description

optical FITS, NAXIS = 2, dimensions 24900 x 26620, 2.5GB FITS file, the following code runs out of memory:

using AstroImages
#] pkg> add https://github.com/JuliaAstro/AstroImages.jl

using FITSIO
using Plots

dir = "/home/chris/ダウンロード"
file = "e20121211_0010500001_dp_sf_st_mos.fits"

fitspath = string(dir, "/", file)
println("loading ", fitspath)
fits = load(fitspath)

img = AstroImage(fits)
plot(img)

The FITS file can be downloaded from

http://surveys.roe.ac.uk/wsa/cgi-bin/siap.cgi?extNum=2&file=djoser:/disk39/wsa/products/mosaics/20121211_v10/e20121211_0010500001_dp_sf_st_mos.fit

Then the file extension needs to be changed from .fit to .fits .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions