-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #176 from NOAA-CSL/develop_grid
Develop grid
- Loading branch information
Showing
10 changed files
with
492 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Gridded Datasets | ||
================ | ||
|
||
Gridded datasets | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Time Chunking | ||
================ | ||
|
||
Time chunking | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
examples/process_gridded_data/control_time_chunking_with_gridded_data.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
analysis: | ||
start_time: '2020-01-01' | ||
end_time: '2020-12-31' | ||
time_interval: 'MS' | ||
output_dir: $HOME/Plots | ||
debug: True | ||
regrid: False | ||
target_grid: $HOME/Data/Grids/cam_grid.nc | ||
time_chunking_with_gridded_data: True | ||
|
||
obs: | ||
|
||
MOD08_M3: | ||
data_format: gridded_eos | ||
datadir: $HOME/Data/MOD08_M3 | ||
obs_type: gridded_data | ||
filename: MOD08_M3.AYYYYDDD.061.*_regrid.nc | ||
regrid: | ||
base_grid: $HOME/Data/Grids/modis_l3_grid.nc | ||
method: bilinear | ||
variables: | ||
AOD_550_Dark_Target_Deep_Blue_Combined_Mean_Mean: | ||
fillvalue: -9999 | ||
scale: 0.001 | ||
units: none | ||
|
||
model: | ||
|
||
MERRA2: | ||
data_format: netcdf | ||
mod_type: merra2 | ||
datadir: $HOME/Data/MERRA2 | ||
files: MERRA2_*.tavgM_2d_aer_Nx.YYYYMM_MM_TOTEXTTAU_regrid.nc4 | ||
regrid: | ||
base_grid: $HOME/Data/Grids/merra2_grid.nc | ||
method: bilinear | ||
variables: | ||
fillvalue: 1.e+15 | ||
scale: 1.0 | ||
units: none | ||
mapping: | ||
MOD08_M3: | ||
TOTEXTTAU: AOD_550_Dark_Target_Deep_Blue_Combined_Mean_Mean | ||
|
20 changes: 20 additions & 0 deletions
20
examples/process_gridded_data/process_time_chunking_with_gridded_data.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
from melodies_monet import driver | ||
|
||
an = driver.analysis() | ||
an.control = 'control_time_chunking_with_gridded_data.yaml' | ||
an.read_control() | ||
an.setup_regridders() | ||
|
||
for time_interval in an.time_intervals: | ||
|
||
print(time_interval) | ||
|
||
an.open_obs(time_interval=time_interval) | ||
an.open_models(time_interval=time_interval) | ||
|
||
print(an.obs) | ||
for obs in an.obs: | ||
print(an.obs[obs].obj) | ||
print(an.models) | ||
for mod in an.models: | ||
print(an.models[mod].obj) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.