-
Notifications
You must be signed in to change notification settings - Fork 2
Preparing CERES Database Irradiance Variables
The SAM weather modeling is dependent on NASA's CERES irradiance data. The irradiance variables used in the model can be found on a NASA database and downloaded. The files that can be downloaded from the NASA database are not in a format that the SAM will recognize. Therefore, the data needs to be read from these downloaded files and formatted in a specific way to be recognized and used in the model.
- Go to: https://ceres.larc.nasa.gov/order_data.php
- Find the SYN1deg data products (Synoptic TOA and surface fluxes and clouds) -> Browse & Subset
- Edition 4 -> Browse & Subset
- Under 'Adjusted TOA, Surface, and Profile Fluxes' select
- 'Adjusted All-Sky Profile Fluxes' -> 'Shortwave Flux Down' -> 'Surface'
- 'Adjusted Surface SW Direct and Diffuse Fluxes' -> 'Surface Shortwave Direct Flux' -> 'All Sky'
- Select Hourly Temporal Resolution, Global Spatial Resolution (0 to 360 and -90 to 90), and Terra+Aqua Edition 4A Satellite
- Enter time range of deployment
- Enter email address and select 'Get Data' button at the bottom of the page
If the data order exceeds 2 GB, the data will have to added to the shopping cart and ordered. Follow the instructions to complete order. This process will result in nc file downloads.
Use 'ncread' matlab function to open the files:
GHI = ncread(filename, 'adj_atmos_sw_down_all_surface_1h');
and
DNI = ncread(filename, 'adj_sfc_sw_direct_all_1h');
This will produce matrices of size 360 x 180 x T, where T is the number of hours in the calendar months over which your deployment spanned. Split these matrices into monthly matrices of size 360 x 180 x days_in_month*24 and save to mat file with the naming convention, 'CERES_SYN1deg_1H_TrAq_Ed4a_[YEAR]_[MONTH]_SW_Irr_Flux.mat', where [MONTH] is always two numbers (e.g. 01 or 12).