In this script, I create maps with MODIS-Aqua data, but you can modify the script for a different NASA satellite.
ESA and NASA use different data structures. NASA stores all parameters in one NetCDF file, while ESA stores each parameter in a separate NetCDF.
Download M_map (https://www.eoas.ubc.ca/~rich/map.html) and move to functions folder. Store Level-2 images (NetCDFs) in data folder.
Options:
-
download Level-2 directly, already processed by NASA (OK for open ocean, Case I waters) -- I recommending using getOC: https://github.com/OceanOptics/getOC It's a fantastic batch download tool.
-
process Level-1 images yourself using l2gen in NASA SeaDAS (see my other repository, Coastal-OC-Remote-Sensing for directions)