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

Extract stack of netCDF files to CSV #35

Open
brendan-ward opened this issue Dec 9, 2015 · 1 comment
Open

Extract stack of netCDF files to CSV #35

brendan-ward opened this issue Dec 9, 2015 · 1 comment

Comments

@brendan-ward
Copy link
Collaborator

Use case:

  • One netCDF file contains the IDs of reporting units (digitized from polygons).
  • Extract from a large stack of netCDF files that match exactly in terms of spatial footprint

Output should be CSV, with first column as reporting unit ID, and one column per netCDF file.

Allow control of precision.

Will need to build in chunking for the data extraction to avoid running out of memory, but tune so that there isn't a lot of I/O churn.

@brendan-ward
Copy link
Collaborator Author

Alternatively, this could be a singular operation: input ID file and data file, and return a CSV of those pairs by pixel.

Then use a post-processing step (e.g., using pandas) to join those together.

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

No branches or pull requests

1 participant