Transcription

CDO User’s GuideClimate Data OperatorsVersion 1.5.9December 2012Uwe Schulzweida, Luis Kornblueh – MPI for MeteorologyRalf Quast – Brockmann Consult

Contents1. Introduction1.1. Building from sources . . . .1.1.1. Compilation . . . . . .1.1.2. Installation . . . . . .1.2. Usage . . . . . . . . . . . . .1.2.1. Options . . . . . . . .1.2.2. Operators . . . . . . .1.2.3. Combining operators .1.2.4. Operator parameter .1.3. Horizontal grids . . . . . . . .1.3.1. Grid area weights . . .1.3.2. Grid description . . .1.4. Z-axis description . . . . . . .1.5. Time axis . . . . . . . . . . .1.5.1. Absolute time . . . . .1.5.2. Relative time . . . . .1.5.3. Conversion of the time1.6. Parameter table . . . . . . . .1.7. Missing values . . . . . . . . .1.7.1. Mean and average . .2. Reference manual2.1. Information . . . . . . . . . . . . . . . . . . . . . . . . . .2.1.1. INFO - Information and simple statistics . . . . .2.1.2. SINFO - Short information . . . . . . . . . . . . .2.1.3. DIFF - Compare two datasets field by field . . . .2.1.4. NINFO - Print the number of parameters, levels or2.1.5. SHOWINFO - Show variables, levels or times . . .2.1.6. FILEDES - Dataset description . . . . . . . . . . .2.2. File operations . . . . . . . . . . . . . . . . . . . . . . . .2.2.1. COPY - Copy datasets . . . . . . . . . . . . . . . .2.2.2. REPLACE - Replace variables . . . . . . . . . . .2.2.3. MERGE - Merge datasets . . . . . . . . . . . . . .2.2.4. SPLIT - Split a dataset . . . . . . . . . . . . . . .2.2.5. SPLITTIME - Split timesteps of a dataset . . . . .2.2.6. SPLITSEL - Split selected timesteps . . . . . . . .2.3. Selection . . . . . . . . . . . . . . . . . . . . . . . . . . . .2.3.1. SELVAR - Select fields . . . . . . . . . . . . . . . .2.3.2. SELTIME - Select timesteps . . . . . . . . . . . .2.3.3. SELBOX - Select a box of a field . . . . . . . . . .2.4. Conditional selection . . . . . . . . . . . . . . . . . . . . .2.4.1. COND - Conditional select one field . . . . . . . .2.4.2. COND2 - Conditional select two fields . . . . . . .2.4.3. CONDC - Conditional select a constant . . . . . .2.5. Comparison . . . . . . . . . . . . . . . . . . . . . . . . . .2.5.1. COMP - Comparison of two fields . . . . . . . . .2.5.2. COMPC - Comparison of a field with a constant .2.6. Modification . . . . . . . . . . . . . . . . . . . . . . . . . .2.6.1. SET - Set field info . . . . . . . . . . . . . . . . . .2.667778899910101314141414141515. . . . . . . . . . . . .times. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3444547.

Contents2.6.2. SETTIME - Set time . . . . . . . . . . . . . . . . . . . . . .2.6.3. CHANGE - Change field header . . . . . . . . . . . . . . .2.6.4. SETGRID - Set grid information . . . . . . . . . . . . . . .2.6.5. SETZAXIS - Set z-axis type . . . . . . . . . . . . . . . . . .2.6.6. SETGATT - Set global attribute . . . . . . . . . . . . . . .2.6.7. INVERT - Invert latitudes . . . . . . . . . . . . . . . . . . .2.6.8. INVERTLEV - Invert levels . . . . . . . . . . . . . . . . . .2.6.9. MASKREGION - Mask regions . . . . . . . . . . . . . . . .2.6.10. MASKBOX - Mask a box . . . . . . . . . . . . . . . . . . .2.6.11. SETBOX - Set a box to constant . . . . . . . . . . . . . . .2.6.12. ENLARGE - Enlarge fields . . . . . . . . . . . . . . . . . .2.6.13. SETMISS - Set missing value . . . . . . . . . . . . . . . . .2.7. Arithmetic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2.7.1. EXPR - Evaluate expressions . . . . . . . . . . . . . . . . .2.7.2. MATH - Mathematical functions . . . . . . . . . . . . . . .2.7.3. ARITHC - Arithmetic with a constant . . . . . . . . . . . .2.7.4. ARITH - Arithmetic on two datasets . . . . . . . . . . . . .2.7.5. MONARITH - Monthly arithmetic . . . . . . . . . . . . . .2.7.6. YMONARITH - Multi-year monthly arithmetic . . . . . . .2.7.7. YDAYARITH - Multi-year daily arithmetic . . . . . . . . .2.7.8. YHOURARITH - Multi-year hourly arithmetic . . . . . . .2.7.9. ARITHDAYS - Arithmetic with days . . . . . . . . . . . .2.8. Statistical values . . . . . . . . . . . . . . . . . . . . . . . . . . . .2.8.1. CONSECSTAT - Consecute timestep periods . . . . . . . .2.8.2. ENSSTAT - Statistical values over an ensemble . . . . . . .2.8.3. ENSSTAT2 - Statistical values over an ensemble . . . . . .2.8.4. ENSVAL - Ensemble validation tools . . . . . . . . . . . . .2.8.5. FLDSTAT - Statistical values over a field . . . . . . . . . .2.8.6. ZONSTAT - Zonal statistical values . . . . . . . . . . . . .2.8.7. MERSTAT - Meridional statistical values . . . . . . . . . .2.8.8. GRIDBOXSTAT - Statistical values over grid boxes . . . .2.8.9. VERTSTAT - Vertical statistical values . . . . . . . . . . .2.8.10. TIMSELSTAT - Time range statistical values . . . . . . . .2.8.11. TIMSELPCTL - Time range percentile values . . . . . . . .2.8.12. RUNSTAT - Running statistical values . . . . . . . . . . . .2.8.13. RUNPCTL - Running percentile values . . . . . . . . . . .2.8.14. TIMSTAT - Statistical values over all timesteps . . . . . . .2.8.15. TIMPCTL - Percentile values over all timesteps . . . . . .2.8.16. HOURSTAT - Hourly statistical values . . . . . . . . . . .2.8.17. HOURPCTL - Hourly percentile values . . . . . . . . . . .2.8.18. DAYSTAT - Daily statistical values . . . . . . . . . . . . .2.8.19. DAYPCTL - Daily percentile values . . . . . . . . . . . . .2.8.20. MONSTAT - Monthly statistical values . . . . . . . . . . .2.8.21. MONPCTL - Monthly percentile values . . . . . . . . . . .2.8.22. YEARSTAT - Yearly statistical values . . . . . . . . . . . .2.8.23. YEARPCTL - Yearly percentile values . . . . . . . . . . . .2.8.24. SEASSTAT - Seasonal statistical values . . . . . . . . . . .2.8.25. SEASPCTL - Seasonal percentile values . . . . . . . . . . .2.8.26. YHOURSTAT - Multi-year hourly statistical values . . . .2.8.27. YDAYSTAT - Multi-year daily statistical values . . . . . .2.8.28. YDAYPCTL - Multi-year daily percentile values . . . . . .2.8.29. YMONSTAT - Multi-year monthly statistical values . . . .2.8.30. YMONPCTL - Multi-year monthly percentile values . . . .2.8.31. YSEASSTAT - Multi-year seasonal statistical values . . . .2.8.32. YSEASPCTL - Multi-year seasonal percentile values . . . .2.8.33. YDRUNSTAT - Multi-year daily running statistical values .2.8.34. YDRUNPCTL - Multi-year daily running percentile 021031041051061071081091101111121131141151161183

Contents2.9. Correlation and co. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2.9.1. FLDCOR - Correlation in grid space . . . . . . . . . . . . . . . . . . . . . .2.9.2. TIMCOR - Correlation over time . . . . . . . . . . . . . . . . . . . . . . . .2.9.3. FLDCOVAR - Covariance in grid space . . . . . . . . . . . . . . . . . . . .2.9.4. TIMCOVAR - Covariance over time . . . . . . . . . . . . . . . . . . . . . .2.10. Regression . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2.10.1. REGRES - Regression . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2.10.2. DETREND - Detrend time series . . . . . . . . . . . . . . . . . . . . . . . .2.10.3. TREND - Trend of time series . . . . . . . . . . . . . . . . . . . . . . . . .2.10.4. SUBTREND - Subtract a trend . . . . . . . . . . . . . . . . . . . . . . . . .2.11. EOFs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2.11.1. EOFS - Empirical Orthogonal Functions . . . . . . . . . . . . . . . . . . . .2.11.2. EOFCOEFF - Principal coefficients of EOFs . . . . . . . . . . . . . . . . .2.12. Interpolation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2.12.1. REMAPGRID - SCRIP grid interpolation . . . . . . . . . . . . . . . . . . .2.12.2. GENWEIGHTS - Generate SCRIP grid interpolation weights . . . . . . . .2.12.3. REMAP - SCRIP grid remapping . . . . . . . . . . . . . . . . . . . . . . .2.12.4. REMAPETA - Remap vertical hybrid level . . . . . . . . . . . . . . . . . .2.12.5. INTVERT - Vertical interpolation . . . . . . . . . . . . . . . . . . . . . . .2.12.6. INTLEVEL - Linear level interpolation . . . . . . . . . . . . . . . . . . . .2.12.7. INTLEVEL3D - Linear level interpolation from/to 3d vertical coordinates .2.12.8. INTTIME - Time interpolation . . . . . . . . . . . . . . . . . . . . . . . . .2.12.9. INTYEAR - Year interpolation . . . . . . . . . . . . . . . . . . . . . . . . .2.13. Transformation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2.13.1. SPECTRAL - Spectral transformation . . . . . . . . . . . . . . . . . . . . .2.13.2. WIND - Wind transformation . . . . . . . . . . . . . . . . . . . . . . . . . .2.14. Import/Export . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2.14.1. IMPORTBINARY - Import binary data sets . . . . . . . . . . . . . . . . .2.14.2. IMPORTCMSAF - Import CM-SAF HDF5 files . . . . . . . . . . . . . . .2.14.3. IMPORTAMSR - Import AMSR binary files . . . . . . . . . . . . . . . . .2.14.4. INPUT - Formatted input . . . . . . . . . . . . . . . . . . . . . . . . . . . .2.14.5. OUTPUT - Formatted output . . . . . . . . . . . . . . . . . . . . . . . . .2.15. Miscellaneous . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2.15.1. GRADSDES - GrADS data descriptor file . . . . . . . . . . . . . . . . . . .2.15.2. FILTER - Time series filtering . . . . . . . . . . . . . . . . . . . . . . . . .2.15.3. GRIDCELL - Grid cell quantities . . . . . . . . . . . . . . . . . . . . . . . .2.15.4. SMOOTH9 - 9 point smoothing . . . . . . . . . . . . . . . . . . . . . . . . .2.15.5. REPLACEVALUES - Replace variable values . . . . . . . . . . . . . . . . .2.15.6. TIMSORT - Timsort . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2.15.7. VARGEN - Generate a field . . . . . . . . . . . . . . . . . . . . . . . . . . .2.15.8. ROTUV - Rotation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2.15.9. MASTRFU - Mass stream function . . . . . . . . . . . . . . . . . . . . . . .2.15.10.HISTOGRAM - Histogram . . . . . . . . . . . . . . . . . . . . . . . . . . .2.15.11.SETHALO - Set the left and right bounds of a field . . . . . . . . . . . . .2.15.12.WCT - Windchill temperature . . . . . . . . . . . . . . . . . . . . . . . . .2.15.13.FDNS - Frost days where no snow index per time period . . . . . . . . . . .2.15.14.STRWIN - Strong wind days index per time period . . . . . . . . . . . . . .2.15.15.STRBRE - Strong breeze days index per time period . . . . . . . . . . . . .2.15.16.STRGAL - Strong gale days index per time period . . . . . . . . . . . . . .2.15.17.HURR - Hurricane days index per time period . . . . . . . . . . . . . . . .2.16. Climate indices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2.16.1. ECACDD - Consecutive dry days index per time period . . . . . . . . . . .2.16.2. ECACFD - Consecutive frost days index per time period . . . . . . . . . .2.16.3. ECACSU - Consecutive summer days index per time period . . . . . . . . .2.16.4. ECACWD - Consecutive wet days index per time period . . . . . . . . . . .2.16.5. ECACWDI - Cold wave duration index w.r.t. mean of reference period . .2.16.6. ECACWFI - Cold-spell days index w.r.t. 10th percentile of reference period2.16.7. ECAETR - Intra-period extreme temperature range . . . . . . . . . . . . 62163163163164166166167167169169171

Contents2.16.8. ECAFD - Frost days index per time period . . . .