Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Test UX array

Data Access

Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
/glade/campaign/collections/rda/data/d616000/catalogs/d616000_catalog.json
/glade/derecho/scratch/harshah

Create a PBS cluster

Loading...

Load ... data and open with uxarray

Loading...
Loading...
Loading...
['CERES_EBAF', 'ERA5', 'IR_IMERG', 'JRA3Q', 'MERRA2', 'arp-gem-1p3km', 'arp-gem-2p6km', 'casesm2_10km_nocumulus', 'ew_dyamond3_2D', 'icon_d3hp003', 'icon_d3hp003aug', 'icon_d3hp003feb', 'icon_ngc4008', 'ifs_tco3999-ng5_deepoff', 'ifs_tco3999-ng5_rcbmf', 'ifs_tco3999-ng5_rcbmf_cf', 'ifs_tco3999_rcbmf', 'mpas_dyamond1', 'mpas_dyamond2', 'mpas_dyamond3', 'nicam_220m_test', 'nicam_gl11', 'scream-dkrz', 'scream2D_hrly', 'scream_lnd', 'scream_ne120', 'tracking-d3hp003', 'um_Africa_km4p4_RAL3P3_n1280_GAL9_nest', 'um_CTC_km4p4_RAL3P3_n1280_GAL9_nest', 'um_SAmer_km4p4_RAL3P3_n1280_GAL9_nest', 'um_SEA_km4p4_RAL3P3_n1280_GAL9_nest', 'um_glm_n1280_CoMA9_TBv1p2', 'um_glm_n1280_GAL9', 'um_glm_n2560_RAL3p3', 'wrf_conus', 'wrf_samerica']
  • col.df turns the catalog object into a pandas dataframe!

  • (Actually, it accesses the dataframe attribute of the catalog)

Select data and plot

What if you don’t know the variable names ?
  • Use pandas logic to print out the short_name and long_name

Temperature

  • Plot temperature for a random date

  • The data is organized in (virtual) zarr stores with one year’s worth of data in one file

  • Select a year. This is done by selcting the start time to be Jan 1st of that year or the end time to be Dec 31st of the same year

  • This also means that if you want to request data for other days, say Oct 1 for the year YYYY, you first have to load the data for one year YYYY and then select the data for that particular day. This example is discussed below.

Load data into xarray


--> The keys in the returned dictionary of datasets are constructed as follows:
	'variable.short_name'
Loading...
Loading...

Dataset dictionary keys:
 dict_keys(['T2.T2'])
dict_keys(['T2.T2'])
Loading...
CPU times: user 7.25 ms, sys: 4.22 ms, total: 11.5 ms
Wall time: 20.8 ms
Loading...
CPU times: user 23.8 s, sys: 17.5 s, total: 41.3 s
Wall time: 3min 14s
<Figure size 640x480 with 2 Axes>