Skip to content

speed of point data access #8

@markjessell

Description

@markjessell

Hi I have a notebook where I can draw a line across the geology map and it extracts the grav and mag profiles. It all works, which is amazing, hower it is quite slow in the data extraction step.

For the following code:

sample_values = np.array(netcdf_grid_utils.get_value_at_coords(sample_points, 'EPSG:4326', max_bytes=100))

it takes 16 seconds to extract 200 grav points, around 90 seconds to extract 200mag points, and nearly 5 minutes to extract 2000 mag points from these two sources:

"https://dapds00.nci.org.au//thredds/dodsC/iv65/Geoscience_Australia_Geophysics_Reference_Data_Collection/national_geophysical_compilations/Gravmap2019/Gravmap2019-grid-grv_cscba_1vd.nc"

"https://dapds00.nci.org.au/thredds/dodsC/iv65/Geoscience_Australia_Geophysics_Reference_Data_Collection/national_geophysical_compilations/Magmap2019/Magmap2019-grid-tmi-Cellsize40m-AWAGS_MAG_2019.nc"

So my question is whether there is a better (faster) way of extracting this information.

cheers

Mark

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