Skip to content

S1 GRD error on loading as DimTree #12

@felixcremer

Description

@felixcremer

Opening the S1 GRD data as open_tree gives the following error:

v = "incidence_angle"
ERROR: ArgumentError: start and stop must be finite, got 0.0053354413248598576 and NaN
Stacktrace:
  [1] _linspace(start::Float64, stop::Float64, len::Int64)
    @ Base ./twiceprecision.jl:669
  [2] range_start_stop_length(start::Float64, stop::Float64, len::Int64)
    @ Base ./twiceprecision.jl:664
  [3] _range
    @ ./range.jl:167 [inlined]
  [4] range
    @ ./range.jl:150 [inlined]
  [5] _cdmspan
    @ ~/Documents/EOPF.jl/SentinelDataSource/dev/Rasters/src/sources/commondatamodel.jl:366 [inlined]
  [6] _cdmlookup(ds::ZarrDataset{…}, var::CommonDataModel.CFVariable{…}, attr::OrderedCollections.OrderedDict{…}, dimname::String, D::Type, index::Vector{…}, metadata::DimensionalData.Dimensions.Lookups.Metadata{…}, crs::Rasters.NoKW, mappedcrs::Rasters.NoKW)
    @ Rasters ~/Documents/EOPF.jl/SentinelDataSource/dev/Rasters/src/sources/commondatamodel.jl:305
  [7] _cdmlookup(ds::ZarrDataset{…}, dimname::String, D::Type, crs::Rasters.NoKW, mappedcrs::Rasters.NoKW)
    @ Rasters ~/Documents/EOPF.jl/SentinelDataSource/dev/Rasters/src/sources/commondatamodel.jl:283
  [8] _cdmdim(ds::ZarrDataset{…}, dimname::String, crs::Rasters.NoKW, mappedcrs::Rasters.NoKW)
    @ Rasters ~/Documents/EOPF.jl/SentinelDataSource/dev/Rasters/src/sources/commondatamodel.jl:231
  [9] (::Rasters.var"#1088#1089"{ZarrDatasets.ZarrVariable{}, Rasters.NoKW, Rasters.NoKW, Tuple{}})(i::Int64)
    @ Rasters ~/Documents/EOPF.jl/SentinelDataSource/dev/Rasters/src/sources/commondatamodel.jl:166
 [10] ntuple
    @ ./ntuple.jl:49 [inlined]
 [11] _dims(var::ZarrDatasets.ZarrVariable{Float32, 2, ZArray{…}, ZarrDataset{…}}, crs::Rasters.NoKW, mappedcrs::Rasters.NoKW)
    @ Rasters ~/Documents/EOPF.jl/SentinelDataSource/dev/Rasters/src/sources/commondatamodel.jl:167
 [12] (::Rasters.var"#77#78"{})(var::ZarrDatasets.ZarrVariable{…})
    @ Rasters ~/Documents/EOPF.jl/SentinelDataSource/dev/Rasters/src/array.jl:384
 [13] _open(f::Rasters.var"#77#78"{}, ::Rasters.Zarrsource, var::ZarrDatasets.ZarrVariable{…}; mod::Nothing, kw::@Kwargs{})
    @ Rasters ~/Documents/EOPF.jl/SentinelDataSource/dev/Rasters/src/sources/commondatamodel.jl:94
 [14] _raster(ds::ZarrDatasets.ZarrVariable{…}; dims::Rasters.NoKW, refdims::Tuple{}, name::Rasters.NoKW, group::Rasters.NoKW, filename::String, metadata::Rasters.NoKW, missingval::Rasters.NoKW, crs::Rasters.NoKW, mappedcrs::Rasters.NoKW, source::Rasters.Zarrsource, replace_missing::Rasters.NoKW, coerce::typeof(convert), scaled::Rasters.NoKW, verbose::Bool, write::Bool, lazy::Bool, dropband::Bool, checkmem::Bool, raw::Bool, mod::Rasters.NoKW, f::typeof(identity))
    @ Rasters ~/Documents/EOPF.jl/SentinelDataSource/dev/Rasters/src/array.jl:365
 [15] _raster
    @ ~/Documents/EOPF.jl/SentinelDataSource/dev/Rasters/src/array.jl:334 [inlined]
 [16] #Raster#1080
    @ ~/Documents/EOPF.jl/SentinelDataSource/dev/Rasters/src/sources/commondatamodel.jl:72 [inlined]
 [17] open_tree(dataset::ZarrDataset{ZarrDataset{…}, Missing, ZGroup{…}})
    @ SentinelDataSource ~/Documents/EOPF.jl/SentinelDataSource/src/SentinelDataSource.jl:20
 [18] open_tree(dataset::ZarrDataset{ZarrDataset{…}, Missing, ZGroup{…}})
    @ SentinelDataSource ~/Documents/EOPF.jl/SentinelDataSource/src/SentinelDataSource.jl:24
 [19] open_tree(dataset::ZarrDataset{ZarrDataset{Nothing, Missing, ZGroup{…}}, Missing, ZGroup{Zarr.ConsolidatedStore{…}}})
    @ SentinelDataSource ~/Documents/EOPF.jl/SentinelDataSource/src/SentinelDataSource.jl:24
 [20] open_tree(dataset::ZarrDataset{Nothing, Missing, ZGroup{Zarr.ConsolidatedStore{Zarr.HTTPStore}}})
    @ SentinelDataSource ~/Documents/EOPF.jl/SentinelDataSource/src/SentinelDataSource.jl:24
 [21] top-level scope
    @ REPL[365]:1
Some type information was truncated. Use `show(err)` to see complete types.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions