mangonetwork / mangopy

This repository contains code for processing all-sky images generated by the Mid-latitude All-sky-imager Network for Geophysical Observations (MANGO), a project funded by the National Science Foundation.
GNU General Public License v3.0
7 stars 3 forks source link

Output grid arrays for single cameras includes NaNs as coordinates #9

Open ljlamarche opened 5 years ago

ljlamarche commented 5 years ago

In the Mango class, get_data() returns 3 equal sized arrays: brightness values, latitude, and longitude. However, because the camera FoV is a circle and these are a regular grid, the corners of the latitude and longitude arrays contain NaNs, which tends to confuse plotting and analysis routines (data values of NaN are usually accounted for but coordinates of NaN tend to be unexpected). This may be something to address in lower-level data processing.

Potential options:

  1. Give the latitude and longitude arrays values throughout and just have the NaNs in the image array.
  2. Return 1D arrays that only contain points where there is valid data (create a flattened circle).
  3. Report coordinates in some other system that's circularly symmetrical.