home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 767170277

This data as json

html_url issue_url id node_id user created_at updated_at author_association body reactions performed_via_github_app issue
https://github.com/pydata/xarray/issues/4830#issuecomment-767170277 https://api.github.com/repos/pydata/xarray/issues/4830 767170277 MDEyOklzc3VlQ29tbWVudDc2NzE3MDI3Nw== 40218891 2021-01-25T23:06:00Z 2021-01-25T23:06:00Z NONE

One could always set source to str(filename_or_object). In this case: ``` import s3fs

s3 = s3fs.S3FileSystem(anon=True) s3path = 's3://wrf-se-ak-ar5/gfdl/hist/daily/1980/WRFDS_1980-01-02.nc' fileset = s3.open(s3path) fileset fileset.path prints <File-like object S3FileSystem, wrf-se-ak-ar5/gfdl/hist/daily/1980/WRFDS_1980-01-02.nc>

'wrf-se-ak-ar5/gfdl/hist/daily/1980/WRFDS_1980-01-02.nc' ` It is easy to parse the abovefileset`` representation, but there is no guarantee that some other external file representation will be amenable to parsing.

If the fix is only for s3fs, getting path attribute is more elegant, however this would require xarray to be aware of the module.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  789653499
Powered by Datasette · Queries took 1.089ms · About: xarray-datasette