-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
indexing pyaerocom collocated data #151
Comments
@jshaw35 If you want it on the form of a pandas dataframe you could try: |
@jshaw35: Have you created the obs_arr = coldata.data[0]
model_arr = coldata.data[1] Both objects share the same dimensions, which are Cheers |
Just checked again your output: how did you manage to get 3 entries in |
@jgliss
I'm having some trouble selecting data from pyaerocom collocated data objects. I want to use sns.regplot to create a scatter plot comparison between EBASMC and GCM data like the function .plot_scatter, but I can't select the data in the way I am used to with xarray.
This is what my array object looks like:
<xarray.DataArray 'concoa' (data_source: 3, time: 180, station_name: 10)>
array([[[0.036875, 0.051544, ..., 0.051615, 0.954757],
[0.103363, 0.1591 , ..., 0.054503, 1.945504],
...,
[0.034183, 0.05595 , ..., 0.05753 , 1.224979],
[0.048925, 0.055559, ..., 0.069318, 1.282269]],
Coordinates:
var_name (data_source) object ...
var_units (data_source) object ...
ts_type_src (data_source) object ...
latitude (station_name) float64 ...
longitude (station_name) float64 ...
altitude (station_name) float64 ...
Attributes:
data_source: ['EBASMC', 'CESM2-WACCM']
var_name: ['concoa', 'concoa']
ts_type: monthly
filter_name: WORLD-wMOUNTAINS
ts_type_src: ['weekly;hourly;hourly; weekly', 'monthly']
start_str: 20000101
stop_str: 20141231
var_units: ['ug m-3', 'ug m-3']
vert_scheme: None
data_level: 3
revision_ref: 20191001
from_files: ['concoa_CESM2-WACCM_historical__1980_2014.nc', 'conc...
from_files_ref: None
stations_ignored: None
colocate_time: False
apply_constraints: True
outliers_removed: True
region: WORLD
lon_range: [-180 180]
lat_range: [-90 90]
alt_range: None
The text was updated successfully, but these errors were encountered: