This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import xarray as xr | |
| import pandas as pd | |
| import numpy as nd | |
| # read in csv to pandas dataframe. we convert | |
| # the excel file to a csv beforehand | |
| df = pd.read_csv("Leribe 1956 - 2022 Jul.csv") | |
| # get just the Year, Month1, and Day columns | |
| dates = df[['Year','Month1','Day']] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from maproom import Maproom | |
| import xarray as xr | |
| from pingrid import CMAPS | |
| mr = Maproom( | |
| title = "Climatology Maproom", | |
| prefix = "example", | |
| ) | |
| mr.controls.group("Climatology") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from maproom import Maproom | |
| import xarray as xr | |
| rfe = xr.open_dataset("Rfe_2011_2020.nc")['precip'] | |
| mr = Maproom( | |
| title = "Rainfall Climatology", | |
| prefix = "rfe", | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from maproom import Maproom | |
| import xarray as xr | |
| air = xr.tutorial.load_dataset("air_temperature")['air'] | |
| mr = Maproom( | |
| title = "Climatology", | |
| prefix = "clim", | |
| ) |