Skip to content

Simplify Conversion Code: Use Only Rioxarray for NetCDF to COG #16

Description

@srizvi-NASA

The current conversion code utilizes both rasterio and rioxarray libraries for processing netcdf data into COG format. However, simplifying the conversion process by using only rioxarray seems feasible and advantageous.

Previously, rioxarray encountered an issue when converting object data types in MUR-JPL-L4-GLOB-v4.1 files to NumPy timedeltas. This can likely be addressed by implementing data pre-processing steps before feeding the data to rioxarray.

Here's why transitioning to solely using rioxarray is beneficial:

  1. Reduced Complexity: Maintaining a single library simplifies the codebase and reduces potential dependency conflicts.
  2. Leveraging Rioxarray's Functionality: Rioxarray offers built-in functions specifically designed for working with COG datasets, which can streamline the conversion process.
  3. Resolving Previous Exception: By addressing the data pre-processing step mentioned above, we can overcome the prior exception encountered with rioxarray.

By transitioning to a single library approach using rioxarray, we can achieve a more efficient and robust conversion process.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions