home / github / issues

Menu
  • GraphQL API
  • Search all tables

issues: 223891484

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
223891484 MDU6SXNzdWUyMjM4OTE0ODQ= 1383 open_mfdataset not finding coordinates 8699967 closed 0     3 2017-04-24T17:17:02Z 2017-04-24T19:58:12Z 2017-04-24T19:58:12Z CONTRIBUTOR      

It there a good way to define the coordinates in the dataset if you know the variable names beforehand?

When loading in a folder of datasets with lat, lon variables using open_mfdataset , the lat. lon variables are not recognized as coordinates. NCDUMP: dimensions: east_west = 1201 ; north_south = 1001 ; time = 1 ; variables: float lat(north_south, east_west) ; lat:units = "degree_north" ; lat:standard_name = "latitude" ; lat:long_name = "latitude" ; lat:scale_factor = 1.f ; lat:add_offset = 0.f ; lat:missing_value = -9999.f ; lat:_FillValue = -9999.f ; lat:vmin = 0.f ; lat:vmax = 0.f ; float lon(north_south, east_west) ; lon:units = "degree_east" ; lon:standard_name = "longitude" ; lon:long_name = "longitude" ; lon:scale_factor = 1.f ; lon:add_offset = 0.f ; lon:missing_value = -9999.f ; lon:_FillValue = -9999.f ; lon:vmin = 0.f ; lon:vmax = 0.f ; ... XARRAY: ``` <xarray.Dataset> Dimensions: (RelSMC_profiles: 4, SmLiqFrac_profiles: 4, SoilMoist_profiles: 4, SoilTemp_profiles: 4, east_west: 1201, north_south: 1001, time: 240) Coordinates: * time (time) datetime64[ns] 2011-01-30 2011-01-30T03:00:00 ... Dimensions without coordinates: RelSMC_profiles, SmLiqFrac_profiles, SoilMoist_profiles, SoilTemp_profiles, east_west, north_south Data variables: lat (time, north_south, east_west) float64 26.0 26.0 ... lon (time, north_south, east_west) float64 58.0 58.01 ...

``` What is the best way to set them as coordinates in the dataset?

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/1383/reactions",
    "total_count": 1,
    "+1": 1,
    "-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
  • 3 rows from issue in issue_comments
Powered by Datasette · Queries took 0.651ms · About: xarray-datasette