MODIS satellite data
See the NASA Ocean Color website for more information on the MODIS Aqua and Terra instruments. So far, only a small subset of the available data products can be accessed using dreamcoat, but this will be improved in future versions.
Set up credentials
You need to create a NASA Earthdata account in order to download MODIS data.
Create a .netrc file and generate an AppKey as described here (check the Download Methods tab on that page). Put the appkey in
The download functions use
wget, so they won't work natively on Windows.
Dreamcoat downloads the daily L3-mapped observations from MODIS Aqua and Terra and combines them into a single dataset for each day, taking the mean of the two instruments. To get a day or some consecutive days of data, use
- Dates should be given in
%Y-%m-%dformat. If left blank, yesterday is used for both.
- Resolution can be
- Files are downloaded as netCDFs into the
Only particulate inorganic carbon (PIC) data are downloaded. These data are in mol/m3.
Open daily datasets
To open a sequence of already-downloaded daily datasets and combine them into a single xarray Dataset, use