-
Notifications
You must be signed in to change notification settings - Fork 9
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
exporting hourly emission files with netcdf #44
Comments
lionel42
added a commit
that referenced
this issue
Nov 21, 2023
We have now a 1rst version. it needs to implement:
|
New function It should still implement for timezone aware local correction. |
While creating my inventory with emiproc, from emiproc.inventories.tno import TNO_Inventory
inv = TNO_Inventory("/users/ekoene/CTDAS_inputs/TNO_6x6_GHGco_v4_0/TNO_GHGco_v4_0_year2018.nc")
from emiproc.grids import ICONGrid
icon_grid_file = "/users/ekoene/CTDAS_inputs/icon_europe_DOM01.nc"
icon_grid = ICONGrid(icon_grid_file)
# Convert to a planar crs before
# you will get a warning from pygeos if you dont do that
from emiproc.grids import WGS84_PROJECTED
inv.to_crs(WGS84_PROJECTED)
from emiproc.regrid import remap_inventory
remaped_tno = remap_inventory(inv, icon_grid, ".remap_tno5")
from emiproc.exports.icon import export_icon_oem, TemporalProfilesTypes
export_icon_oem(remaped_tno,
icon_grid_file,
"/capstor/scratch/cscs/ekoene/inventories/icon_with_tno_emissions/",
temporal_profiles_type=TemporalProfilesTypes.HOUR_OF_YEAR,
year=2018,
substances='CO2') I don't get the correct 'country' codes, I just get the values 0,1,...,29. Is this issue responsible for that? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Adding a function to do that
The text was updated successfully, but these errors were encountered: