|
654 | 654 | "metadata": {}, |
655 | 655 | "source": [ |
656 | 656 | "### 1.3 Create the combined reference file and use it to open the data\n", |
657 | | - "However the single reference files were generated in the previous section, they can now be used to create a single reference file for the entire year 2019. The computation time for this step can also be decreased with parallel computing, but in this case serial computing is used." |
| 657 | + "However the single reference files were generated in the previous section, they can now be used to create a single reference file for the entire year 2019. The computation time for this step can also be decreased with parallel computing, but in this case serial computing is used.\n", |
| 658 | + "\n", |
| 659 | + "***Important: Modify the `time_invariant_dims_and_coords` list in the next block. List all the NC dimension and coordinate names other than time. This is necessary to ensure they stay 1D and do not get a dummy time dimension added to them.***" |
| 660 | + ] |
| 661 | + }, |
| 662 | + { |
| 663 | + "cell_type": "code", |
| 664 | + "execution_count": null, |
| 665 | + "id": "9fdf7203-9cf9-47df-89f8-82be7f6ccebf", |
| 666 | + "metadata": {}, |
| 667 | + "outputs": [], |
| 668 | + "source": [ |
| 669 | + "time_invariant_dims_and_coords = []" |
658 | 670 | ] |
659 | 671 | }, |
660 | 672 | { |
|
683 | 695 | "ref_files_indv.sort()\n", |
684 | 696 | "\n", |
685 | 697 | "## Combined reference file\n", |
686 | | - "kwargs_mzz = {'remote_protocol':\"s3\", 'remote_options':fs.storage_options, 'concat_dims':[\"time\"]}\n", |
| 698 | + "kwargs_mzz = {\n", |
| 699 | + " 'remote_protocol':\"s3\", \n", |
| 700 | + " 'remote_options':fs.storage_options, \n", |
| 701 | + " 'concat_dims':[\"time\"]\n", |
| 702 | + " 'identical_dims':time_invariant_dims_and_coords\n", |
| 703 | + " }\n", |
687 | 704 | "mzz = MultiZarrToZarr(ref_files_indv, **kwargs_mzz)\n", |
688 | 705 | "ref_combined = mzz.translate()\n", |
689 | 706 | "\n", |
|
2266 | 2283 | "name": "python", |
2267 | 2284 | "nbconvert_exporter": "python", |
2268 | 2285 | "pygments_lexer": "ipython3", |
2269 | | - "version": "3.12.0" |
| 2286 | + "version": "3.12.9" |
2270 | 2287 | } |
2271 | 2288 | }, |
2272 | 2289 | "nbformat": 4, |
|
0 commit comments