This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
""" | |
Create the ACCESS-ESM1.5 ancillary file needed for nitrogen deposition in UKESM1 for the CMIP6 SSP370 scenarioMIP | |
00447 0 NITROGEN DEPOSITION (kgN/m2/s) (ACCESS-CM2) | |
or | |
00884 0 NITROGEN DEPOSITION (gN/m2/d) (ACCESS-ESM1.5) | |
""" | |
import os | |
import ants | |
from ants.fileformats.ancil import _cubes_to_ancilfile, _mule_set_lbuser2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import mule | |
import xarray as xr | |
rootDir = '/g/data/tm70/dm5220/ancil/tilo' | |
ancilFilename = f'{rootDir}/orig_co2' | |
netcdfFilename = f'{rootDir}/co2_new.nc' | |
start_yr = 201 | |
end_yr = 300 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# READ FILES | |
import mule | |
import xarray as xr | |
rootDir = '/scratch/public/dm5220/tilo' | |
ancilFilename = f'{rootDir}/orig_co2' | |
BMDI = -2.0**30 # (-1073741824.0) Value used in the UM Fieldsfile to indicate NaN |