Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
arind123 opened this issue Jun 8, 2023 · 0 comments

Comments

@arind123
Copy link

arind123 commented Jun 8, 2023

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")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant