Skip to content

Refactor codebase to support a new simplified Parser->ManifestStore model. #601

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

Open
wants to merge 102 commits into
base: develop
Choose a base branch
from

Conversation

sharkinsspatial
Copy link
Collaborator

@sharkinsspatial sharkinsspatial commented May 20, 2025

TomNicholas and others added 30 commits April 11, 2025 11:34
Comment on lines +20 to +21
Instantiate a parser with parser-specific parameters that can be used in the __call__ method.
Parameters
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Instantiate a parser with parser-specific parameters that can be used in the __call__ method.
Parameters
Instantiate a parser with parser-specific parameters that can be used in the
`__call__` method.
Parameters
Suggested change
Instantiate a parser with parser-specific parameters that can be used in the __call__ method.
Parameters
Instantiate a parser with parser-specific parameters that can be used in the __call__ method.
Parameters

Comment on lines +21 to +26
Instantiate a parser with parser-specific parameters that can be used in the __call__ method.
Parameters:
group (str): The group within the file to be used as the Zarr root group for the ManifestStore.
fs_root (str): The qualifier to be used for kerchunk references containing relative paths.
skip_variables (Iterable[str]): Variables in the file that will be ignored when creating the ManifestStore.
store_registry (ObjectStoreRegistry): A user defined ObjectStoreRegistry to be used for reading data for kerchunk references contain paths to multiple locations.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Instantiate a parser with parser-specific parameters that can be used in the __call__ method.
Parameters:
group (str): The group within the file to be used as the Zarr root group for the ManifestStore.
fs_root (str): The qualifier to be used for kerchunk references containing relative paths.
skip_variables (Iterable[str]): Variables in the file that will be ignored when creating the ManifestStore.
store_registry (ObjectStoreRegistry): A user defined ObjectStoreRegistry to be used for reading data for kerchunk references contain paths to multiple locations.
Instantiate a parser with parser-specific parameters that can be used in the
`__call__` method.
Parameters
----------
group
The group within the file to be used as the Zarr root group for the ManifestStore.
fs_root
The qualifier to be used for kerchunk references containing relative paths.
skip_variables
Variables in the file that will be ignored when creating the ManifestStore.
store_registry
A user defined ObjectStoreRegistry to be used for reading data for kerchunk
references contain paths to multiple locations.

file_url
The URI or path to the input file (e.g., "s3://bucket/kerchunk.json").
object_store
An obstore ObjectStore instance for accessing the file specified in the `file_url` parameter.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
An obstore ObjectStore instance for accessing the file specified in the `file_url` parameter.
An obstore ObjectStore instance for accessing the file specified in the
`file_url` parameter.

reader_options: dict | None = None,
):
"""
Instantiate a parser with parser-specific parameters that can be used in the __call__ method.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Instantiate a parser with parser-specific parameters that can be used in the __call__ method.
Instantiate a parser with parser-specific parameters that can be used in the
`__call__` method.

file_url
The URI or path to the input parquet directory (e.g., "s3://bucket/file.parq").
object_store
An obstore ObjectStore instance for accessing the file specified in the `file_url` parameter.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
An obstore ObjectStore instance for accessing the file specified in the `file_url` parameter.
An obstore ObjectStore instance for accessing the file specified in the
`file_url` parameter.

reader_options
dict containing kwargs to pass to file opener, by default {}
fs
The fsspec filesystem object, created in __post_init__
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
The fsspec filesystem object, created in __post_init__
The fsspec filesystem object, created in the `__post_init__` method.

reader_options: dict | None = None,
):
"""
Instantiate a parser with parser-specific parameters that can be used in the `__call__` method.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Instantiate a parser with parser-specific parameters that can be used in the `__call__` method.
Instantiate a parser with parser-specific parameters that can be used in the
`__call__` method.

file_url
The URI or path to the input file (e.g., "s3://bucket/file.nc").
object_store
An obstore ObjectStore instance for accessing the file specified in the `file_url` parameter.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
An obstore ObjectStore instance for accessing the file specified in the `file_url` parameter.
An obstore ObjectStore instance for accessing the file specified in the
`file_url` parameter.

remote_options: dict | None = None,
):
"""
Instantiate a parser with parser-specific parameters that can be used in the `__call__` method.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Instantiate a parser with parser-specific parameters that can be used in the `__call__` method.
Instantiate a parser with parser-specific parameters that can be used in the
`__call__` method.

file_url
The URI or path to the input file (e.g., "s3://bucket/file.tiff").
object_store
An obstore ObjectStore instance for accessing the file specified in the `file_url` parameter.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
An obstore ObjectStore instance for accessing the file specified in the `file_url` parameter.
An obstore ObjectStore instance for accessing the file specified in the
`file_url` parameter.

file_url
The URI or path to the input Zarr store (e.g., "s3://bucket/store.zarr").
object_store
An obstore ObjectStore instance for accessing the directory specified in the `file_url` parameter.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
An obstore ObjectStore instance for accessing the directory specified in the `file_url` parameter.
An obstore ObjectStore instance for accessing the directory specified in the
`file_url` parameter.

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

Successfully merging this pull request may close these issues.

5 participants