best-cost / best-cost_WPs

This repository aim to collect the confidential (not public) work of the EU project BEST-COST in the framework of the workpackages (WPs).
1 stars 0 forks source link

Prepare function air pollution and geo units #314

Open luytax opened 1 month ago

luytax commented 3 weeks ago

@arnopauwels FYI: Yesterday Alberto and myself did a live demo of the R package for Enrico Pisoni.

For Enrico it's absolutely crucial that the package can digest the netCDF file format, i.e. either prepare_exposure_data() or another prepare_... function should be able to digest that and make it usable for the attribute() functions.

1) Do you have experience with this file type? 2) Do you think it's feasible to write a function for digesting netCDF files?

arnopauwels commented 2 weeks ago

Hello, I looked into it and found out that the terra package is able to read in netCDF files. So using its rast function to read in a netCDF will create a SpatRaster object (to be done in advance by the user), which can then go into the prepare_... functions.

luytax commented 2 weeks ago

Good news! To be decided if/how we include terra::rast() function that prepares the netCDF files.

Let's discuss at our next meeting @ungatoverde & @arnopauwels

ungatoverde commented 1 week ago

@luytax What do you mean with this?

To be decided if/how we include terra::rast() function that prepares the netCDF files.

What should be decided? Looks good :-) I guess that reading that data should be quite straight forward with terra::rast() Right? @arnopauwels let me know if I am wrong.

arnopauwels commented 1 week ago

That should indeed be easy Alberto (I cannot tag you with @?). So terra:rast() should not be included in the prepare_... functions @luytax .

luytax commented 20 hours ago

Alberto (I cannot tag you with @?)

Same for me, for unknown reasons... although when you write @ungatoverde he get's contacted, even though his name doesn't show up as you type it, as happens for other people.

@luytax What do you mean with this? To be decided if/how we include terra::rast() function that prepares the netCDF files.

I was referring to whether or not to include the terra::rast() function in the prepare_... functions or not : )