Comments (5)
@gleckler1 can you paste here a sample parameter files that I can use for debugging? Thx.
from pcmdi_metrics.
Any script using a level field will bomb… here iz an example…
import genutil
################################################################################
# OPTIONS ARE SET BY USER IN THIS FILE AS INDICATED BELOW BY:
#
################################################################################
## RUN IDENTIFICATION
# DEFINES A SUBDIRECTORY TO METRICS OUTPUT RESULTS SO MULTIPLE CASES CAN BE COMPARED
case_id = 'sampletest1'
case_id = 'cmip5_test'
# LIST OF MODEL VERSIONS TO BE TESTED - WHICH ARE EXPECTED TO BE PART OF CLIMATOLOGY FILENAME
model_versions = ['GFDL-ESM2G',]
model_versions = ['ACCESS1-0', 'ACCESS1-3', 'bcc-csm1-1', 'bcc-csm1-1-m', 'BNU-ESM', 'CanCM4', 'CanESM2', 'CCSM4', 'CESM1-BGC', 'CESM1-CAM5-1-FV2', 'CESM1-CAM5', 'CESM1-FASTCHEM', 'CESM1-WACCM', 'CESM1-WSCCM', 'CMCC-CESM', 'CMCC-CM', 'CMCC-CMS', 'CNRM-CM5', 'CSIRO-Mk3-6-0', 'EC-EARTH', 'FGOALS-g2', 'FGOALS-s2', 'FIO-ESM', 'GFDL-CM2p1', 'GFDL-CM3', 'GFDL-ESM2G', 'GFDL-ESM2M', 'GISS-E2-H-CC', 'GISS-E2-H', 'GISS-E2-R-CC', 'GISS-E2-R', 'HadCM3', 'HadGEM2-AO', 'HadGEM2-CC', 'HadGEM2-ES', 'inmcm4', 'IPSL-CM5A-LR', 'IPSL-CM5A-MR', 'IPSL-CM5B-LR', 'MIROC4h', 'MIROC5', 'MIROC-ESM-CHEM', 'MIROC-ESM', 'MPI-ESM-LR', 'MPI-ESM-MR', 'MPI-ESM-P', 'MRI-CGCM3', 'NorESM1-ME', 'NorESM1-M']
model_versions = ['ACCESS1-0', 'ACCESS1-3', 'bcc-csm1-1', 'bcc-csm1-1-m', 'BNU-ESM']
#model_versions = ['MRI-CGCM3',]
### VARIABLES AND OBSERVATIONS TO USE
vars = ['zos','pr','rlut','tos']
#vars = ['tas','pr']
#vars = ['pr','tas','tos']
#vars = ['tas','tos']
vars = ['tos']
vars = ['tas']
vars=['hus_850',]
vars = ['pr','tas','rlut','rsut','hus_850']
vars = ['ta_850','ta_200','ua_850','ua_200','va_850','va_200','zg_500','rlut','rsut','rlutcs','rsutcs','tas']
#vars = ['rlutcs','rsutcs','vas','tas']
#vars = ['tauu','tauv']
#vars = ['ta_850']
vars = ['tos','sos','zos']
vars = ['rlut', 'rsut','rsutcs','rlutcs','pr','tas','prw','uas','vas','hus']
vars = ['zg_500']
# Observations to use at the moment "default" or "alternate"
ref = 'all'
ref = ['default'] #,'alternate','ref3']
ext = '.xml' #'.nc'
ext = '.nc'
# INTERPOLATION OPTIONS
targetGrid = '2.5x2.5' # OPTIONS: '2.5x2.5' or an actual cdms2 grid object
regrid_tool = 'regrid2' #'regrid2' # OPTIONS: 'regrid2','esmf'
regrid_method = 'linear' # OPTIONS: 'linear','conservative', only if tool is esmf
regrid_tool_ocn = 'esmf' # OPTIONS: "regrid2","esmf"
regrid_method_ocn = 'linear' # OPTIONS: 'linear','conservative', only if tool is esmf
# SIMULATION PARAMETERS
model_period = '1980-2005'
realization = 'r1i1p1'
# SAVE INTERPOLATED MODEL CLIMATOLOGIES ?
save_mod_clims = True # True or False
## DATA LOCATION: MODELS, OBS AND METRICS OUTPUT
## Templates for climatology files
## TEMPLATE EXAMPLE: cmip5.GFDL-ESM2G.historical.r1i1p1.mo.atm.Amon.rlut.ver-1.1980-1999.AC.nc
filename_template = "cmip5.%(model_version).historical.r1i1p1.mo.%(table_realm).%(variable).ver-1.%(period).AC.%(ext)"
filename_template = "cmip5.%(model_version).historical.%(realization).mo.%(table_realm).%(variable).ver-1.%(model_period).AC.%(ext)"
#filename_template = "%(variable)_MEAN_CLIM_METRICS_%(model_version)_%(realization)_%(model_period)-clim.xml"
filename_template = "cmip5.%(model_version).historical.r1i1p1.mo.%(table_realm).%(variable).ver-1.latestX.1980-2005.AC.nc"
filename_template = "cmip5.%(model_version).historical.r1i1p1.mo.%(table_realm).%(variable).ver-v20110601.1980-2005.AC.nc" ## tos
filename_template = "%(variable)_%(model_version)_Amon_historical_r1i1p1_198001-200512-clim.nc"
## ROOT PATH FOR MODELS CLIMATOLOGIES
mod_data_path = '/work/gleckler1/processed_data/cmip5clims_metrics_package-historical/'
#mod_data_path = '/work/gleckler1/processed_data/cmip5clims-AR5-frozen_1dir/'
## ROOT PATH FOR OBSERVATIONS
obs_data_path = '/work/gleckler1/processed_data/metrics_package/obs/'
## DIRECTORY WHERE TO PUT RESULTS
metrics_output_path = '/work/gleckler1/processed_data/metrics_package/metrics_results/'
## DIRECTORY WHERE TO PUT INTERPOLATED MODELS' CLIMATOLOGIES
model_clims_interpolated_output = '/work/gleckler1/processed_data/metrics_package/interpolated_model_clims/'
## FILENAME FOR INTERPOLATED CLIMATOLGIES OUTPUT
filename_output_template = "cmip5.%(model_version).historical.r1i1p1.mo.%(table_realm).%(variable)%(level).ver-1.%(period).interpolated.%(regridMethod).%(targetGridName).AC%(ext)"
from pcmdi_metrics.
This is the most important issue as it prevents bday boy from generating a database of CMIP5 results for GFDL to being using...
from pcmdi_metrics.
will be fixed before your next birthday no worries ;)
from pcmdi_metrics.
fixed in devel. branch: issue46_levels_bomb
ok @gleckler1 @durack1 we need confirmation it does what you need.
right now it assumes ALL level will be processed over the same regions, if you want to define regions for level specific let me know.
from pcmdi_metrics.
Related Issues (20)
- [Feature]: Port cdat_info dependencies to PMP
- [Bug]: xr.DataArray.from_cdms2() deprecated in newer versions of xarray HOT 1
- [Feature]: simple land-sea mask generation HOT 1
- [Feature]: stringConstructor-equivalent function
- [Bug]: land sea mask incorrectly generated for non-regular lat/lon grid
- [Feature]: statistics calculation as APIs
- [Doc]: Update Contributing Guide HOT 1
- [Bug]: demo9b warning message
- [Feature]: Generalized calendar fixes
- [Feature]: Add regional subsetting capabilities to precip variability metrics
- [Bug]: Raw data file for PCMDI landmask
- [Feature]: Update portrait_plot_lib
- [Feature]: Input data qurator
- [Feature]: Annual cycle climatology for obs4MIP datasets
- Support custom target grid resolution in mean climate
- Vertical level extraction issue HOT 1
- Update cloud feedback code with xcdat/xarray
- Add doc for contribution guide
- cdms2 error when installing pcmdi_metrics with mamba HOT 1
- [Feature]: portrait plot annotation text color
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pcmdi_metrics.