home / github / issues

Menu
  • Search all tables
  • GraphQL API

issues: 94012395

This data as json

id node_id number title user state locked assignee milestone comments created_at updated_at closed_at author_association active_lock_reason draft pull_request body reactions performed_via_github_app state_reason repo type
94012395 MDU6SXNzdWU5NDAxMjM5NQ== 457 xray raises error when opening datasets with multi-dimensional coordinate variables 6883049 closed 0     2 2015-07-09T10:32:16Z 2015-09-03T13:34:42Z 2015-09-03T13:34:42Z CONTRIBUTOR      

Hello and thank you for this great package.

I have a (opendap) dataset where one coordinate (time24), is attached to a 2-dimensional coordinate variable. The reason is that it contains a set of forecasts that overlap in time, so the value of time24 depends on the run. Unfortunately it's not open so I can't share it for tests.

The main variable is:

float32 mean2t24(run, member, time24, lat, lon) long_name: Mean temperature at 2 metres since last 24 hours @ Ground or water surface

And the coordinate variables are:

``` int32 run(run) long_name: Run time for ForecastModelRunCollection standard_name: forecast_reference_time units: hours since 1981-01-01T00:00:00 _CoordinateAxisType: RunTime

|S1 member(member, maxStrlen64) standard_name: realization _CoordinateAxisType: Ensemble

int32 time24(run, time24) long_name: Forecast time for ForecastModelRunCollection standard_name: time units: hours since 1981-01-01T00:00:00 _CoordinateAxisType: Time

float32 lon(lon) units: degrees_east

float32 lat(lat) units: degrees_north ```

xray is currently unable to open this dataset:

ValueError: an index variable must be defined with 1-dimensional data

Which its OK, this looks like something difficult to support, but it will be fine if at least I could simply exclude the variable time24 for being read by xray. A flag like "exclude_variable=(var1, var2, ...)". And then xray would fill the coordinate with the default int64 values (0, 1, 2, 3, 4...) that uses when there is no coordinate for a dimension. This would be very useful also to exclude troublesome variables (e.g. corrupt, with weird data types, inconsistent when concatenating) that are present in many datasets. Another way to go could be to issue a warning instead of an error, and then fill the variable with the default values (0, 1, 2, 3, 4...)

I am looking at the code to see if I can implement this by myself, but I am not sure about how to proceed.

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/457/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  completed 13221727 issue

Links from other tables

  • 0 rows from issues_id in issues_labels
  • 2 rows from issue in issue_comments
Powered by Datasette · Queries took 0.896ms · About: xarray-datasette