|
575 | 575 | "name": "stdout", |
576 | 576 | "output_type": "stream", |
577 | 577 | "text": [ |
578 | | - "netcdf O3_in_ppbv {\r\n", |
579 | | - "dimensions:\r\n", |
580 | | - "\ttime = 1 ;\r\n", |
581 | | - "\tlev = 47 ;\r\n", |
582 | | - "\tlat = 46 ;\r\n", |
583 | | - "\tlon = 72 ;\r\n", |
584 | | - "variables:\r\n", |
585 | | - "\tfloat time(time) ;\r\n", |
586 | | - "\t\ttime:_FillValue = NaNf ;\r\n", |
587 | | - "\t\ttime:long_name = \"Time\" ;\r\n", |
588 | | - "\t\ttime:axis = \"T\" ;\r\n", |
589 | | - "\t\ttime:delta_t = \"0000-00-00 00:00:00\" ;\r\n", |
590 | | - "\t\ttime:units = \"hours since 1985-01-01\" ;\r\n", |
591 | | - "\t\ttime:calendar = \"gregorian\" ;\r\n", |
592 | | - "\tfloat lev(lev) ;\r\n", |
593 | | - "\t\tlev:_FillValue = NaNf ;\r\n", |
594 | | - "\t\tlev:long_name = \"Eta Centers\" ;\r\n", |
595 | | - "\t\tlev:units = \"sigma_level\" ;\r\n", |
596 | | - "\t\tlev:positive = \"up\" ;\r\n", |
597 | | - "\t\tlev:axis = \"Z\" ;\r\n", |
598 | | - "\tfloat lat(lat) ;\r\n", |
599 | | - "\t\tlat:_FillValue = NaNf ;\r\n", |
600 | | - "\t\tlat:long_name = \"Latitude\" ;\r\n", |
601 | | - "\t\tlat:units = \"degrees_north\" ;\r\n", |
602 | | - "\t\tlat:axis = \"Y\" ;\r\n", |
603 | | - "\tfloat lon(lon) ;\r\n", |
604 | | - "\t\tlon:_FillValue = NaNf ;\r\n", |
605 | | - "\t\tlon:long_name = \"Longitude\" ;\r\n", |
606 | | - "\t\tlon:units = \"degrees_east\" ;\r\n", |
607 | | - "\t\tlon:axis = \"X\" ;\r\n", |
608 | | - "\tfloat TRC_O3(time, lev, lat, lon) ;\r\n", |
609 | | - "\t\tTRC_O3:_FillValue = NaNf ;\r\n", |
610 | | - "\t\tTRC_O3:units = \"ppbv\" ;\r\n", |
611 | | - "}\r\n" |
| 578 | + "netcdf O3_in_ppbv {\n", |
| 579 | + "dimensions:\n", |
| 580 | + "\ttime = 1 ;\n", |
| 581 | + "\tlev = 47 ;\n", |
| 582 | + "\tlat = 46 ;\n", |
| 583 | + "\tlon = 72 ;\n", |
| 584 | + "variables:\n", |
| 585 | + "\tfloat time(time) ;\n", |
| 586 | + "\t\ttime:_FillValue = NaNf ;\n", |
| 587 | + "\t\ttime:long_name = \"Time\" ;\n", |
| 588 | + "\t\ttime:axis = \"T\" ;\n", |
| 589 | + "\t\ttime:delta_t = \"0000-00-00 00:00:00\" ;\n", |
| 590 | + "\t\ttime:units = \"hours since 1985-01-01\" ;\n", |
| 591 | + "\t\ttime:calendar = \"gregorian\" ;\n", |
| 592 | + "\tfloat lev(lev) ;\n", |
| 593 | + "\t\tlev:_FillValue = NaNf ;\n", |
| 594 | + "\t\tlev:long_name = \"Eta Centers\" ;\n", |
| 595 | + "\t\tlev:units = \"sigma_level\" ;\n", |
| 596 | + "\t\tlev:positive = \"up\" ;\n", |
| 597 | + "\t\tlev:axis = \"Z\" ;\n", |
| 598 | + "\tfloat lat(lat) ;\n", |
| 599 | + "\t\tlat:_FillValue = NaNf ;\n", |
| 600 | + "\t\tlat:long_name = \"Latitude\" ;\n", |
| 601 | + "\t\tlat:units = \"degrees_north\" ;\n", |
| 602 | + "\t\tlat:axis = \"Y\" ;\n", |
| 603 | + "\tfloat lon(lon) ;\n", |
| 604 | + "\t\tlon:_FillValue = NaNf ;\n", |
| 605 | + "\t\tlon:long_name = \"Longitude\" ;\n", |
| 606 | + "\t\tlon:units = \"degrees_east\" ;\n", |
| 607 | + "\t\tlon:axis = \"X\" ;\n", |
| 608 | + "\tfloat TRC_O3(time, lev, lat, lon) ;\n", |
| 609 | + "\t\tTRC_O3:_FillValue = NaNf ;\n", |
| 610 | + "\t\tTRC_O3:units = \"ppbv\" ;\n", |
| 611 | + "}\n" |
612 | 612 | ] |
613 | 613 | } |
614 | 614 | ], |
|
1045 | 1045 | "name": "stdout", |
1046 | 1046 | "output_type": "stream", |
1047 | 1047 | "text": [ |
1048 | | - "Ozone.png\r\n" |
| 1048 | + "Ozone.png\n" |
1049 | 1049 | ] |
1050 | 1050 | } |
1051 | 1051 | ], |
|
1243 | 1243 | "interact(plot_layer, \n", |
1244 | 1244 | " var=SelectionSlider(options=varnames, continuous_update=False), \n", |
1245 | 1245 | " l=IntSlider(min=0, max=46, step=1, continuous_update=False),\n", |
1246 | | - " );" |
| 1246 | + " );\n", |
| 1247 | + "\n", |
| 1248 | + "# Disable `continuous_update` so the figure is only updated after you release the mouse. This reduces computing burden." |
1247 | 1249 | ] |
1248 | 1250 | }, |
1249 | 1251 | { |
|
1543 | 1545 | "source": [ |
1544 | 1546 | "Now you know how to use xarray to explore NetCDF data, in a really efficient way.\n", |
1545 | 1547 | "\n", |
1546 | | - "This is the longest and the most important chapter. With the knowledge of xarray, the next chapter will be quite easy: [Chapter02_NC_and_bpch_diagnostics.ipynb](./Chapter02_NC_and_bpch_diagnostics.ipynb)" |
| 1548 | + "This is the longest and the most important chapter. With the knowledge of xarray, you can easily understand the next two chapters (they don't need to be read in order):\n", |
| 1549 | + "\n", |
| 1550 | + "- [Chapter02_NC_and_bpch_diagnostics.ipynb](./Chapter02_NC_and_bpch_diagnostics.ipynb).\n", |
| 1551 | + "- [Chapter03_regridding.ipynb](./Chapter03_regridding.ipynb)" |
1547 | 1552 | ] |
1548 | 1553 | } |
1549 | 1554 | ], |
|
0 commit comments