Opened 5 years ago

Last modified 5 years ago

#2130 closed enhancement

Petascope - Importing with wcst_import gdal general recipe should allow selecting bands — at Version 1

Reported by: Dimitar Misev Owned by: Bang Pham Huu
Priority: major Milestone: 10.0
Component: petascope Version: 9.8
Keywords: Cc:
Complexity: Medium

Description (last modified by Bang Pham Huu)

The variables format parameter allows to specify the bands or variables to be imported from an input file (docs)

  // Specify variable names, band ids (0-based), etc.
  "variables": [ "var1", "var2", ... ],

But petascope currently does not support importing a subset of bands (although it does support for grib or netcdf). For example, below is importing 1 band from a png file with 3 bands:

<gml:rangeSet>
    <gml:rangeParameters>
        {"variables": ["1"]}
    </gml:rangeParameters>
    <gml:File>
        <gml:fileReference><![CDATA[
                file:///home/rasdaman/rasdaman_community/rasdaman/systemtest/testcases_services/test_all_wcst_import/testdata/wcs_gdal_select_1band_from_3bands_to_import/rgb.png
            ]]></gml:fileReference>
        <gml:fileStructure>image/png</gml:fileStructure>
    </gml:File>
</gml:rangeSet>

Change History (1)

comment:1 by Bang Pham Huu, 5 years ago

Component: wcst_importpetascope
Description: modified (diff)
Summary: Importing with gdal should allow selecting bandsPetascope - Importing with wcst_import gdal general recipe should allow selecting bands
Note: See TracTickets for help on using tickets.