-
Notifications
You must be signed in to change notification settings - Fork 12
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
Redundant worldcover.file_id mapping #449
Comments
After reviewing the code, it is functioning as intended. Points from each granule are sampled in parallel by their dedicated RasterSamplers, with each RasterSampler using a different keySpace. In this case, the keySpace values are 0 and 2^32 (4294967296). The keySpace is used in the creation of fileId, which is included in raster samples to identify the file/raster the value came from. For the GeoRaster class, it is always the same VRT file, which results in duplicate file entries with different fileIds. However, these are necessary because the sampling code assigns the fileId to each sample based on the keySpace. To clean up the code, we could add logic to identify that all fileIds in the samples correspond to the same VRT file. Alternatively, we could leave the code as is, as it does not impact functionality. |
Ok, thanks @elidwa , you're right it's not a huge issue, just wanted to document it. I'm also noticing different dtypes coming back from the worldcover sampling. I think for the value column these should always be
edit: i suspect this is in order to handle np.nans |
@scottyhq, the value is being returned by the server code as a C++ double (64-bit floating point). This decision was made to use a single data type that can represent all possible pixel values across our datasets. Most of our datasets use pixel data types that are either floating-point values or signed/unsigned integers up to 32 bits. This approach works well with those assumptions. |
I noticed in the following case I'm getting two entries for the world_cover sampling that point to the same VRT:
The text was updated successfully, but these errors were encountered: