import s3fs
import xarray as xr
#fs = s3fs.S3FileSystem(anon=True)
#aws_url = 'https://rgw.met.no/6c6a817bd3bb47588bcc9e1221cb52b5:escience2022/Ada/conc/1979/01/ice_conc_sh_ease2-250_cdr-v2p0_197901301200.nc'
import urllib
new_x = "temp.nc"
x = 'https://rgw.met.no/6c6a817bd3bb47588bcc9e1221cb52b5:escience2022/Ada/conc/1979/01/ice_conc_sh_ease2-250_cdr-v2p0_197901301200.nc'
urllib.request.urlretrieve(x, new_x)
('temp.nc', <http.client.HTTPMessage at 0x7f82524009a0>)
esacci = xr.open_dataset('temp.nc')
esacci
<xarray.Dataset>
Dimensions:                   (time: 1, nv: 2, xc: 432, yc: 432)
Coordinates:
  * time                      (time) datetime64[ns] 1979-01-30T12:00:00
  * xc                        (xc) float64 -5.388e+03 -5.362e+03 ... 5.388e+03
  * yc                        (yc) float64 5.388e+03 5.362e+03 ... -5.388e+03
    lat                       (yc, xc) float32 ...
    lon                       (yc, xc) float32 ...
Dimensions without coordinates: nv
Data variables:
    Lambert_Azimuthal_Grid    int32 -2147483647
    time_bnds                 (time, nv) datetime64[ns] 1979-01-30 1979-01-31
    ice_conc                  (time, yc, xc) float64 ...
    raw_ice_conc_values       (time, yc, xc) float64 ...
    total_standard_error      (time, yc, xc) float64 ...
    smearing_standard_error   (time, yc, xc) float64 ...
    algorithm_standard_error  (time, yc, xc) float64 ...
    status_flag               (time, yc, xc) float32 ...
Attributes: (12/40)
    title:                     Sea Ice Concentration Climate Data Record from...
    summary:                   This climate data record of sea ice concentrat...
    topiccategory:             Oceans ClimatologyMeteorologyAtmosphere
    keywords:                  Earth Science > Cryosphere > Sea Ice > Sea Ice...
    keywords_vocabulary:       GCMD Science Keywords
    geospatial_lat_min:        -90.0
    ...                        ...
    Conventions:               CF-1.6 ACDD-1.3
    standard_name_vocabulary:  CF Standard Name Table (v36, 21 September 2016)
    id:                        10.15770/EUM_SAF_OSI_0008
    product_version:           2.0
    history:                   2017-02-14T19:39:25Z creation\n2022-06-07: Cor...
    geospatial_bounds_crs:     EPSG:6932