cardat / air-health-bushfire-smoke-netcdf

Software to share australian bushfire smoke data funded by CAR and ARDC. Supported by CurtinIC and ASDAF
MIT License
1 stars 0 forks source link

Port parts of do_extract_abs_sa1.R to Python #16

Open truth-quark opened 12 months ago

truth-quark commented 12 months ago

Requirements

Idea is to demonstrate Python can interoperate with the 20 variable NetCDF file.

Solution Options:

ivanhanigan commented 12 months ago

@truth-quark yes this is the best place to work on new requirements:

The user will want to specify:

  1. place(s) e.g.. ACT, Tasmania etc
  2. times e.g. 2019-2020
  3. flags to use e.g. "smoke_2SD","active_fires_50000","dust_merra_2_p95"

Possibly you want to break this up to extraction step and then analysis step?

truth-quark commented 11 months ago

@ivanhanigan do you know if using command line tools (e.g. ncks) is considered user friendly enough for the target data users?

truth-quark commented 11 months ago

The user will want to specify:

  1. place(s) e.g.. ACT, Tasmania etc
  2. times e.g. 2019-2020
  3. flags to use e.g. "smoke_2SD","active_fires_50000","dust_merra_2_p95"

The ncks tool contains a hyperslabbing cmd line option to subset multiple dimensions in a single command. From the user guide, subsets of cell coords & times can be specified, as well as selecting which variables to extract.

I didn't see an option to specify a bounding box to clip. If a user has some known bounds, these could be converted to pixel coords & hyperslab to the area of interest. It wasn't clear in the user guide, but it may be possible to specify coordinate system bounds with some cmd line options.