|
82 | 82 | "end = '2018-12'\n", |
83 | 83 | "\n", |
84 | 84 | "# INPUT DATASET - CAN BE MODEL OR OBSERVATIONS\n", |
85 | | - "infile = 'demo_data/obs4MIPs_PCMDI_monthly/NASA-LaRC/CERES-EBAF-4-1/mon/rlut/gn/v20210727/rlut_mon_CERES-EBAF-4-1_PCMDI_gn_200301-201812.nc'\n", |
| 85 | + "infile = 'demo_data_tmp/obs4MIPs_PCMDI_monthly/NASA-LaRC/CERES-EBAF-4-1/mon/rlut/gn/v20210727/rlut_mon_CERES-EBAF-4-1_PCMDI_gn_200301-201812.nc'\n", |
86 | 86 | "\n", |
87 | 87 | "# DIRECTORY WHERE TO PUT RESULTS\n", |
88 | | - "outfile = 'demo_output/climo/rlut_mon_CERES-EBAF-4-1_BE_gn.nc'\n", |
| 88 | + "outfile = 'demo_output_tmp/climo/rlut_mon_CERES-EBAF-4-1_BE_gn.nc'\n", |
89 | 89 | "\n" |
90 | 90 | ] |
91 | 91 | } |
|
115 | 115 | "text": [ |
116 | 116 | "start and end are 2003-01 2018-12\n", |
117 | 117 | "variable list: ['rlut']\n", |
118 | | - "infilename is rlut_mon_CERES-EBAF-4-1_PCMDI_gn_200301-201812.nc\n", |
119 | | - "outfd is demo_output/climo/rlut_mon_CERES-EBAF-4-1_BE_gn.nc\n", |
120 | | - "outdir is None\n", |
| 118 | + "ver: v20240923\n", |
| 119 | + "var: rlut\n", |
| 120 | + "infile: demo_data_tmp/obs4MIPs_PCMDI_monthly/NASA-LaRC/CERES-EBAF-4-1/mon/rlut/gn/v20210727/rlut_mon_CERES-EBAF-4-1_PCMDI_gn_200301-201812.nc\n", |
| 121 | + "outfile: demo_output_tmp/climo/rlut_mon_CERES-EBAF-4-1_BE_gn.nc\n", |
| 122 | + "outfilename: None\n", |
| 123 | + "outpath: None\n", |
| 124 | + "ver: v20240923\n", |
| 125 | + "infilename: rlut_mon_CERES-EBAF-4-1_PCMDI_gn_200301-201812.nc\n", |
| 126 | + "type(d): <class 'xarray.core.dataset.Dataset'>\n", |
| 127 | + "atts: {'Conventions': 'CF-1.7 ODS-2.1', 'activity_id': 'obs4MIPs', 'contact': 'PCMDI ( [email protected])', 'creation_date': '2021-07-27T18:20:26Z', 'curation_provenance': 'work-in-progress', 'data_specs_version': '2.1.0', 'external_variables': 'areacella', 'frequency': 'mon', 'further_info_url': 'https://furtherinfo.es-doc.org/CMIP6.NASA-LaRC.CERES-EBAF-4-1.experiment_idsub_experiment_idPCMDI', 'grid': '1x1 degree latitude x longitude', 'grid_label': 'gn', 'history': '2021-07-27T18:20:26Z; CMOR rewrote data to be consistent with obs4MIPs, and CF-1.7 ODS-2.1 standards', 'institution': 'NASA-LaRC (Langley Research Center) Hampton, Va', 'institution_id': 'NASA-LaRC', 'mip_era': 'CMIP6', 'nominal_resolution': '100 km', 'product': 'observations', 'realm': 'atmos', 'release_year': '2019', 'source': 'CERES EBAF (Energy Balanced and Filled) TOA Fluxes. Monthly Averages', 'source_description': 'CERES EBAF (Energy Balanced and Filled) TOA Fluxes. Monthly Averages', 'source_id': 'CERES-EBAF-4-1', 'source_label': 'CERES-EBAF-4-1', 'source_name': 'CERES-EBAF4-1', 'source_type': 'satellite_blended', 'source_version_number': '4.1', 'table_id': 'obs4MIPs_Amon', 'table_info': 'Creation Date:(18 November 2020) MD5:d8a4a72de798e86a999881bdaeb1809e', 'title': 'CERES prepared for obs4MIPs (ODS-v2.1.0)', 'tracking_id': 'hdl:21.14102/d1afa116-4801-4801-b302-43c49b5bb7dc', 'variable_id': 'rlut', 'variant_info': 'Best Estimate', 'variant_label': 'PCMDI', 'license': 'Data in this file processed for obs4MIPs by PCMDI and is for research purposes only.', 'cmor_version': '3.6.1'}\n", |
| 128 | + "outdir: demo_output_tmp/climo\n", |
121 | 129 | "start_yr_str is 2003\n", |
122 | | - "outfd is demo_output/climo/rlut_mon_CERES-EBAF-4-1_BE_gn.nc\n", |
123 | | - "out is demo_output/climo/rlut_mon_CERES-EBAF-4-1_BE_gn.200301-201812.AC.v20220420.nc\n", |
124 | | - "(12, 180, 360) (12, 180, 360) demo_output/climo/rlut_mon_CERES-EBAF-4-1_BE_gn.200301-201812.AC.v20220420.nc\n", |
125 | | - "outfd is demo_output/climo/rlut_mon_CERES-EBAF-4-1_BE_gn.nc\n", |
126 | | - "out is demo_output/climo/rlut_mon_CERES-EBAF-4-1_BE_gn.200301-201812.DJF.v20220420.nc\n", |
127 | | - "(180, 360) (12, 180, 360) demo_output/climo/rlut_mon_CERES-EBAF-4-1_BE_gn.200301-201812.DJF.v20220420.nc\n", |
128 | | - "outfd is demo_output/climo/rlut_mon_CERES-EBAF-4-1_BE_gn.nc\n", |
129 | | - "out is demo_output/climo/rlut_mon_CERES-EBAF-4-1_BE_gn.200301-201812.MAM.v20220420.nc\n", |
130 | | - "(180, 360) (12, 180, 360) demo_output/climo/rlut_mon_CERES-EBAF-4-1_BE_gn.200301-201812.MAM.v20220420.nc\n", |
131 | | - "outfd is demo_output/climo/rlut_mon_CERES-EBAF-4-1_BE_gn.nc\n", |
132 | | - "out is demo_output/climo/rlut_mon_CERES-EBAF-4-1_BE_gn.200301-201812.JJA.v20220420.nc\n", |
133 | | - "(180, 360) (12, 180, 360) demo_output/climo/rlut_mon_CERES-EBAF-4-1_BE_gn.200301-201812.JJA.v20220420.nc\n", |
134 | | - "outfd is demo_output/climo/rlut_mon_CERES-EBAF-4-1_BE_gn.nc\n", |
135 | | - "out is demo_output/climo/rlut_mon_CERES-EBAF-4-1_BE_gn.200301-201812.SON.v20220420.nc\n", |
136 | | - "(180, 360) (12, 180, 360) demo_output/climo/rlut_mon_CERES-EBAF-4-1_BE_gn.200301-201812.SON.v20220420.nc\n" |
| 130 | + "start_mo_str is 01\n", |
| 131 | + "end_yr_str is 2018\n", |
| 132 | + "end_mo_str is 12\n", |
| 133 | + "output file is demo_output_tmp/climo/rlut_mon_CERES-EBAF-4-1_BE_gn.200301-201812.AC.v20240923.nc\n", |
| 134 | + "output file is demo_output_tmp/climo/rlut_mon_CERES-EBAF-4-1_BE_gn.200301-201812.DJF.v20240923.nc\n", |
| 135 | + "output file is demo_output_tmp/climo/rlut_mon_CERES-EBAF-4-1_BE_gn.200301-201812.MAM.v20240923.nc\n", |
| 136 | + "output file is demo_output_tmp/climo/rlut_mon_CERES-EBAF-4-1_BE_gn.200301-201812.JJA.v20240923.nc\n", |
| 137 | + "output file is demo_output_tmp/climo/rlut_mon_CERES-EBAF-4-1_BE_gn.200301-201812.SON.v20240923.nc\n" |
137 | 138 | ] |
138 | 139 | } |
139 | 140 | ], |
|
172 | 173 | "text": [ |
173 | 174 | "start and end are 2003-01 2018-12\n", |
174 | 175 | "variable list: ['rlut']\n", |
175 | | - "infilename is rlut_mon_CERES-EBAF-4-1_PCMDI_gn_200301-201812.nc\n", |
176 | | - "outfd is demo_output/climo/rlut_mon_CERES-EBAF-4-1_BE_gn.nc\n", |
177 | | - "outdir is None\n", |
| 176 | + "ver: v20240923\n" |
| 177 | + ] |
| 178 | + }, |
| 179 | + { |
| 180 | + "name": "stderr", |
| 181 | + "output_type": "stream", |
| 182 | + "text": [ |
| 183 | + "/Users/lee1043/mambaforge/envs/pmp_devel_20240425/lib/python3.10/site-packages/pcmdi_metrics/io/string_constructor.py:43: UserWarning: Keyword 'variable' not provided for filling the template.\n", |
| 184 | + " warnings.warn(f\"Keyword '{k}' not provided for filling the template.\")\n" |
| 185 | + ] |
| 186 | + }, |
| 187 | + { |
| 188 | + "name": "stdout", |
| 189 | + "output_type": "stream", |
| 190 | + "text": [ |
| 191 | + "var: rlut\n", |
| 192 | + "infile: demo_data_tmp/obs4MIPs_PCMDI_monthly/NASA-LaRC/CERES-EBAF-4-1/mon/rlut/gn/v20210727/rlut_mon_CERES-EBAF-4-1_PCMDI_gn_200301-201812.nc\n", |
| 193 | + "outfile: demo_output_tmp/climo/rlut_mon_CERES-EBAF-4-1_BE_gn.nc\n", |
| 194 | + "outfilename: None\n", |
| 195 | + "outpath: None\n", |
| 196 | + "ver: v20240923\n", |
| 197 | + "infilename: rlut_mon_CERES-EBAF-4-1_PCMDI_gn_200301-201812.nc\n", |
| 198 | + "type(d): <class 'xarray.core.dataset.Dataset'>\n", |
| 199 | + "atts: {'Conventions': 'CF-1.7 ODS-2.1', 'activity_id': 'obs4MIPs', 'contact': 'PCMDI ( [email protected])', 'creation_date': '2021-07-27T18:20:26Z', 'curation_provenance': 'work-in-progress', 'data_specs_version': '2.1.0', 'external_variables': 'areacella', 'frequency': 'mon', 'further_info_url': 'https://furtherinfo.es-doc.org/CMIP6.NASA-LaRC.CERES-EBAF-4-1.experiment_idsub_experiment_idPCMDI', 'grid': '1x1 degree latitude x longitude', 'grid_label': 'gn', 'history': '2021-07-27T18:20:26Z; CMOR rewrote data to be consistent with obs4MIPs, and CF-1.7 ODS-2.1 standards', 'institution': 'NASA-LaRC (Langley Research Center) Hampton, Va', 'institution_id': 'NASA-LaRC', 'mip_era': 'CMIP6', 'nominal_resolution': '100 km', 'product': 'observations', 'realm': 'atmos', 'release_year': '2019', 'source': 'CERES EBAF (Energy Balanced and Filled) TOA Fluxes. Monthly Averages', 'source_description': 'CERES EBAF (Energy Balanced and Filled) TOA Fluxes. Monthly Averages', 'source_id': 'CERES-EBAF-4-1', 'source_label': 'CERES-EBAF-4-1', 'source_name': 'CERES-EBAF4-1', 'source_type': 'satellite_blended', 'source_version_number': '4.1', 'table_id': 'obs4MIPs_Amon', 'table_info': 'Creation Date:(18 November 2020) MD5:d8a4a72de798e86a999881bdaeb1809e', 'title': 'CERES prepared for obs4MIPs (ODS-v2.1.0)', 'tracking_id': 'hdl:21.14102/d1afa116-4801-4801-b302-43c49b5bb7dc', 'variable_id': 'rlut', 'variant_info': 'Best Estimate', 'variant_label': 'PCMDI', 'license': 'Data in this file processed for obs4MIPs by PCMDI and is for research purposes only.', 'cmor_version': '3.6.1'}\n", |
| 200 | + "outdir: demo_output_tmp/climo\n", |
178 | 201 | "start_yr_str is 2003\n", |
179 | | - "outfd is demo_output/climo/rlut_mon_CERES-EBAF-4-1_BE_gn.nc\n", |
180 | | - "out is demo_output/climo/rlut_mon_CERES-EBAF-4-1_BE_gn.200301-201812.AC.v20220420.nc\n", |
181 | | - "(12, 180, 360) (12, 180, 360) demo_output/climo/rlut_mon_CERES-EBAF-4-1_BE_gn.200301-201812.AC.v20220420.nc\n", |
182 | | - "outfd is demo_output/climo/rlut_mon_CERES-EBAF-4-1_BE_gn.nc\n", |
183 | | - "out is demo_output/climo/rlut_mon_CERES-EBAF-4-1_BE_gn.200301-201812.DJF.v20220420.nc\n", |
184 | | - "(180, 360) (12, 180, 360) demo_output/climo/rlut_mon_CERES-EBAF-4-1_BE_gn.200301-201812.DJF.v20220420.nc\n", |
185 | | - "outfd is demo_output/climo/rlut_mon_CERES-EBAF-4-1_BE_gn.nc\n", |
186 | | - "out is demo_output/climo/rlut_mon_CERES-EBAF-4-1_BE_gn.200301-201812.MAM.v20220420.nc\n", |
187 | | - "(180, 360) (12, 180, 360) demo_output/climo/rlut_mon_CERES-EBAF-4-1_BE_gn.200301-201812.MAM.v20220420.nc\n", |
188 | | - "outfd is demo_output/climo/rlut_mon_CERES-EBAF-4-1_BE_gn.nc\n", |
189 | | - "out is demo_output/climo/rlut_mon_CERES-EBAF-4-1_BE_gn.200301-201812.JJA.v20220420.nc\n", |
190 | | - "(180, 360) (12, 180, 360) demo_output/climo/rlut_mon_CERES-EBAF-4-1_BE_gn.200301-201812.JJA.v20220420.nc\n", |
191 | | - "outfd is demo_output/climo/rlut_mon_CERES-EBAF-4-1_BE_gn.nc\n", |
192 | | - "out is demo_output/climo/rlut_mon_CERES-EBAF-4-1_BE_gn.200301-201812.SON.v20220420.nc\n", |
193 | | - "(180, 360) (12, 180, 360) demo_output/climo/rlut_mon_CERES-EBAF-4-1_BE_gn.200301-201812.SON.v20220420.nc\n" |
| 202 | + "start_mo_str is 01\n", |
| 203 | + "end_yr_str is 2018\n", |
| 204 | + "end_mo_str is 12\n", |
| 205 | + "output file is demo_output_tmp/climo/rlut_mon_CERES-EBAF-4-1_BE_gn.200301-201812.AC.v20240923.nc\n", |
| 206 | + "output file is demo_output_tmp/climo/rlut_mon_CERES-EBAF-4-1_BE_gn.200301-201812.DJF.v20240923.nc\n", |
| 207 | + "output file is demo_output_tmp/climo/rlut_mon_CERES-EBAF-4-1_BE_gn.200301-201812.MAM.v20240923.nc\n", |
| 208 | + "output file is demo_output_tmp/climo/rlut_mon_CERES-EBAF-4-1_BE_gn.200301-201812.JJA.v20240923.nc\n", |
| 209 | + "output file is demo_output_tmp/climo/rlut_mon_CERES-EBAF-4-1_BE_gn.200301-201812.SON.v20240923.nc\n" |
194 | 210 | ] |
195 | 211 | } |
196 | 212 | ], |
|
231 | 247 | "text": [ |
232 | 248 | "start and end are 2003-01 2018-12\n", |
233 | 249 | "variable list: ['rlut']\n", |
234 | | - "infilename is rlut_mon_CERES-EBAF-4-1_PCMDI_gn_200301-201812.nc\n", |
235 | | - "outfd is demo_output/climo/rlut_mon_CERES-EBAF-4-1_BE_gn.nc\n", |
236 | | - "outdir is demo_output/climo/\n", |
| 250 | + "ver: v20240923\n", |
| 251 | + "var: rlut\n", |
| 252 | + "infile: demo_data_tmp/obs4MIPs_PCMDI_monthly/NASA-LaRC/CERES-EBAF-4-1/mon/rlut/gn/v20210727/rlut_mon_CERES-EBAF-4-1_PCMDI_gn_200301-201812.nc\n", |
| 253 | + "outfile: demo_output_tmp/climo/rlut_mon_CERES-EBAF-4-1_BE_gn.nc\n", |
| 254 | + "outfilename: rlut_mon_CERES-EBAF-4-1_BE_gn.nc\n", |
| 255 | + "outpath: demo_output_tmp/climo/\n", |
| 256 | + "ver: v20240923\n", |
| 257 | + "infilename: rlut_mon_CERES-EBAF-4-1_PCMDI_gn_200301-201812.nc\n", |
| 258 | + "type(d): <class 'xarray.core.dataset.Dataset'>\n", |
| 259 | + "atts: {'Conventions': 'CF-1.7 ODS-2.1', 'activity_id': 'obs4MIPs', 'contact': 'PCMDI ( [email protected])', 'creation_date': '2021-07-27T18:20:26Z', 'curation_provenance': 'work-in-progress', 'data_specs_version': '2.1.0', 'external_variables': 'areacella', 'frequency': 'mon', 'further_info_url': 'https://furtherinfo.es-doc.org/CMIP6.NASA-LaRC.CERES-EBAF-4-1.experiment_idsub_experiment_idPCMDI', 'grid': '1x1 degree latitude x longitude', 'grid_label': 'gn', 'history': '2021-07-27T18:20:26Z; CMOR rewrote data to be consistent with obs4MIPs, and CF-1.7 ODS-2.1 standards', 'institution': 'NASA-LaRC (Langley Research Center) Hampton, Va', 'institution_id': 'NASA-LaRC', 'mip_era': 'CMIP6', 'nominal_resolution': '100 km', 'product': 'observations', 'realm': 'atmos', 'release_year': '2019', 'source': 'CERES EBAF (Energy Balanced and Filled) TOA Fluxes. Monthly Averages', 'source_description': 'CERES EBAF (Energy Balanced and Filled) TOA Fluxes. Monthly Averages', 'source_id': 'CERES-EBAF-4-1', 'source_label': 'CERES-EBAF-4-1', 'source_name': 'CERES-EBAF4-1', 'source_type': 'satellite_blended', 'source_version_number': '4.1', 'table_id': 'obs4MIPs_Amon', 'table_info': 'Creation Date:(18 November 2020) MD5:d8a4a72de798e86a999881bdaeb1809e', 'title': 'CERES prepared for obs4MIPs (ODS-v2.1.0)', 'tracking_id': 'hdl:21.14102/d1afa116-4801-4801-b302-43c49b5bb7dc', 'variable_id': 'rlut', 'variant_info': 'Best Estimate', 'variant_label': 'PCMDI', 'license': 'Data in this file processed for obs4MIPs by PCMDI and is for research purposes only.', 'cmor_version': '3.6.1'}\n", |
| 260 | + "outdir: demo_output_tmp/climo/\n", |
237 | 261 | "start_yr_str is 2003\n", |
238 | | - "outfd is demo_output/climo/rlut_mon_CERES-EBAF-4-1_BE_gn.nc\n", |
239 | | - "out is demo_output/climo/rlut_mon_CERES-EBAF-4-1_BE_gn.200301-201812.AC.v20220420.nc\n", |
240 | | - "(12, 180, 360) (12, 180, 360) demo_output/climo/rlut_mon_CERES-EBAF-4-1_BE_gn.200301-201812.AC.v20220420.nc\n", |
241 | | - "outfd is demo_output/climo/rlut_mon_CERES-EBAF-4-1_BE_gn.nc\n", |
242 | | - "out is demo_output/climo/rlut_mon_CERES-EBAF-4-1_BE_gn.200301-201812.DJF.v20220420.nc\n", |
243 | | - "(180, 360) (12, 180, 360) demo_output/climo/rlut_mon_CERES-EBAF-4-1_BE_gn.200301-201812.DJF.v20220420.nc\n", |
244 | | - "outfd is demo_output/climo/rlut_mon_CERES-EBAF-4-1_BE_gn.nc\n", |
245 | | - "out is demo_output/climo/rlut_mon_CERES-EBAF-4-1_BE_gn.200301-201812.MAM.v20220420.nc\n", |
246 | | - "(180, 360) (12, 180, 360) demo_output/climo/rlut_mon_CERES-EBAF-4-1_BE_gn.200301-201812.MAM.v20220420.nc\n", |
247 | | - "outfd is demo_output/climo/rlut_mon_CERES-EBAF-4-1_BE_gn.nc\n", |
248 | | - "out is demo_output/climo/rlut_mon_CERES-EBAF-4-1_BE_gn.200301-201812.JJA.v20220420.nc\n", |
249 | | - "(180, 360) (12, 180, 360) demo_output/climo/rlut_mon_CERES-EBAF-4-1_BE_gn.200301-201812.JJA.v20220420.nc\n", |
250 | | - "outfd is demo_output/climo/rlut_mon_CERES-EBAF-4-1_BE_gn.nc\n", |
251 | | - "out is demo_output/climo/rlut_mon_CERES-EBAF-4-1_BE_gn.200301-201812.SON.v20220420.nc\n", |
252 | | - "(180, 360) (12, 180, 360) demo_output/climo/rlut_mon_CERES-EBAF-4-1_BE_gn.200301-201812.SON.v20220420.nc\n" |
| 262 | + "start_mo_str is 01\n", |
| 263 | + "end_yr_str is 2018\n", |
| 264 | + "end_mo_str is 12\n", |
| 265 | + "output file is demo_output_tmp/climo/rlut_mon_CERES-EBAF-4-1_BE_gn.200301-201812.AC.v20240923.nc\n", |
| 266 | + "output file is demo_output_tmp/climo/rlut_mon_CERES-EBAF-4-1_BE_gn.200301-201812.DJF.v20240923.nc\n", |
| 267 | + "output file is demo_output_tmp/climo/rlut_mon_CERES-EBAF-4-1_BE_gn.200301-201812.MAM.v20240923.nc\n", |
| 268 | + "output file is demo_output_tmp/climo/rlut_mon_CERES-EBAF-4-1_BE_gn.200301-201812.JJA.v20240923.nc\n", |
| 269 | + "output file is demo_output_tmp/climo/rlut_mon_CERES-EBAF-4-1_BE_gn.200301-201812.SON.v20240923.nc\n" |
253 | 270 | ] |
254 | 271 | } |
255 | 272 | ], |
|
278 | 295 | "name": "python", |
279 | 296 | "nbconvert_exporter": "python", |
280 | 297 | "pygments_lexer": "ipython3", |
281 | | - "version": "3.9.12" |
| 298 | + "version": "3.10.10" |
282 | 299 | } |
283 | 300 | }, |
284 | 301 | "nbformat": 4, |
|
0 commit comments