Open bobkopp opened 11 months ago
@AlexReedy I think the Python code for this module can be pretty light, given that emulandice2 now works directly with FACTS-type files. We ought to be able to use a single project script with different modes for AIS, GrIS, and glaciers, and a single postprocess script that uses a configuration file to map ice source + region to fingerprint files. We ought to be able to pass info between the scripts using the netcdf files outputted by the project script, as opposed to a pkl file. The postprocess script set up in this generic way also helps pave the way for a general grd fingerprint module.
We have a prototype project script for emulandice2/GrIS that seems to be working, but needs to be adjusted as @tamsinedwards adds in a simpler way of specifying the location of the climate_data_file, the emulator file, and the output name (including pipeline name in the filename) -- the prototype uses cludges for working with these right now.
I added some thoughts on the structure of the new postprocess module to the emulandice_postprocess.py file.
emulandice_postprocess.py seems to run, though results have not been checked.
Need to add functionality to emulandice2_project to (1) interpolate onto years defined by the --pyear parameters and (2) rebase to the year specified by --baseyear.
Interpolation functionality added.
Current status: I think the Python code may be done, but requires inspection of output vs expected output. The Box.com modules-data directory has working built emulator Rdata files for 19 RGI glacier regions, but we need these for AIS and GrIS.
Current status: Box.com modules-data directory has working built emulator Rdata files, but these are priors, not conditioned on observations. Code itself should work but diagnostics need to be generated.
@AlexReedy Is this all working in the development branch now?
We hope that emulandice2 will work natively with FACTS climate input and output FACTS-compative output. Will have more sectors for the AIS and GrIS that need to be tracked, ideally flexibly, and will have associated fingerprints. Tamsin will work with Alex on this.