Skip to content

Converting Cell type from not having 'NoData' defined to it being defined takes a lot of time. #612

Description

@arind123

I am trying to convert "int16raw" to "int16ud-99" takes about 7 minutes for a band of a tile of Sentinel 2 data. I saw the link '#343'. But was there any new functions made available?

I am currently using the following code as given in the documentation:

_ct = red_10mt_rf.select(rf_cell_type('red_10mt')).distinct().first()[0]

new_ct = CellType(_ct).with_no_data_value(-99)

red_10mt_rf_ct = red_10mt_rf.select('proj_raster_path', rf_convert_cell_type('red_10mt', new_ct).alias('red_10mt'), "spatial_index")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions