LM-SAL / aiapy

Python library for AIA data analysis
https://aiapy.readthedocs.io/en/stable/
BSD 3-Clause "New" or "Revised" License
6 stars 3 forks source link

Draft: Normalize AIA image, resize, and save as memory-mapped numpy array. - [opened] #213

Closed nabobalis closed 10 months ago

nabobalis commented 3 years ago

In GitLab by @kingbob8 on Oct 30, 2020, 16:20

Merges aia2sdoml -> main

This script is to normalize the AIA image to 1 AU with specified disk size, correct for degradation and exposure time, and also provide an option to downsample the image and save it in memory mapped numpy array, which follows the same procedure as we did for the SDOML dataset.

nabobalis commented 3 years ago

In GitLab by @wtbarnes on Oct 31, 2020, 12:35

This is great! A few high level comments around how we actually want to integrate this functionality into aiapy.

w.r.t. the norm function,

Regarding the save_ml function,

tl;dr my recommendations would be that,

  1. norm be renamed and only do the 1 AU normalization procedure
  2. Create a separate example showing how to combine degradation, exposure normalization, and the 1 AU correction
  3. save_ml should be a separate example that shows how to save this data efficiently using numpy memmap and if possible, use the resample method from sunpy.
nabobalis commented 3 years ago

In GitLab by @kingbob8 on Nov 2, 2020, 10:26

Thanks, Will! That's great suggestions. I will separate the script into normalize_disksize function and the rest into an example gallery. For the downsampling function in scikit-image and in sunpy, I think the difference should be minimum. I will switch to resample for the example gallery.

nabobalis commented 2 years ago

changed target branch from master to main