Hi there!
I am using Scene objects in order to apply corrections/projections to GOES imagery and get out RGB numpy arrays of the data. The input is GOES ABI L1b C01, C02, C03 the output I'd like is the True Color RGB values. I'm able to obtain the R, "G", B values using the code below.
def get_RGB_save_dataset(scn, composite):
data = scn.save_dataset(composite, compute=False)
R = normalize(data[0][0])
G = normalize(data[0][1])
B = normalize(data[0][2])
RGB = np.dstack([R, G, B])
RGB = RGB.compute()
return RGB
RGB_save_ds = get_RGB_save_dataset(scn, 'true_color')
this gives me expected results shown here:
But I only want the RGB arrays and don't want to save a GeoTiff so I tried obtaining the data through scn.compute() using the same exact Scene object but get weird results
def get_RGB_compute(scn, composite):
computed_scn = scn.compute()
R = normalize(computed_scn[composite].data[0])
G = normalize(computed_scn[composite].data[1])
B = normalize(computed_scn[composite].data[2])
RGB = np.dstack([R, G, B])
return RGB
RGB_compute = get_RGB_compute(scn, 'true_color')
I thought that using the scn.compute() function would allow me to get the projected/corrected values without creating the geotiff but the output is not right for the corrections (projection looks fine). How do I get the true color RGB values without having to create the geotiff file?
Thank you!
Rey