|
ocssw
V2022
|
create_images.py File Reference
Go to the source code of this file.
Namespaces | |
| create_images | |
Functions | |
| def | gamma_stretch (data, gamma=2) |
| def | extract_data (image, avail_bands, req_bands, allow_neg=False, key='Rrs') |
| def | plot_product (ax, title, product, rgb, vmin, vmax) |
Variables | |
| string | sensor = 'HICO' |
| dictionary | kwargs |
| req_bands = get_sensor_bands(sensor, get_args(**kwargs)) | |
| list | rgb_bands = [660, 550, 440] |
| time_start = time.time() | |
| image = Dataset(location.joinpath('l2gen.nc'))['geophysical_data'] | |
| bands = sorted([int(k.replace('Rrs_', '')) for k in image.variables.keys() if 'Rrs_' in k]) | |
| def | Rrs = extract_data(image, bands, req_bands) |
| def | rgb = extract_data(image, bands, rgb_bands, key='rhos') |
| products | |
| slices | |
| f | |
| axes | |
| figsize | |
| dictionary | bounds |


