-
Notifications
You must be signed in to change notification settings - Fork 6
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
cmorizing lpjg output #257
Comments
Hi Klaus, certainly @nierad and others have managed to cmorize lpjg output with this. I believe the flag you are looking for is |
Hi the flag for only LPJ-GUESS cmorization is However, some dropped out, this is related to the fact that at the LPJ-GUESS ece2cmor component merge the |
Thanks for the tips. I tried with a data request created for CMIP/piControl, seems to work. But then ece2cmor.py stops with
The resources/ingrid_T255_unstructured.txt file is there, but apparently I am 1 directory too low, The hard-wired path only works if I start ece2cmor.py from directory ~/cmorize/ece2cmor3. Not nice, can't the resources directory be set when launching ece2cmor.py? |
Next problem:
mrsol is soil moisture, right? There were some discussions whether or not it makes sense that soil moisture is saved from LPJG and not from IFS. Does this error has something to do with it? |
I think we should be able to cmorize soil moisture from lpjg output, so I believe the problem above is caused by something else. Will have a look at it. |
Apparently lpjg2cmor attempts to read the soil depths from an output file header, but in the header it finds layer_1, ... instead of numbers. I fixed the hard path issue and added logging regarding this soil depth reading, can you pull, re-install and rerun Klaus? |
Pulled, re-installed and re-run, same result... |
Yes I expected that but now it should report which file it tries to read to determine the soil layer depths no? |
Hi, probably @nierad could comment better than me, but soil moisture in IFS and LPJG can be different, since LPJG computes soil moisture internally, even though IFS sends it soil moisture to LPJG. Not sure which one to use for cmorization in this case? |
The general philosophy of ece2cmor3 is to compute whatever it can, so in this case it will extract mrsol from the lpjg output. This may not be the optimal strategy for all use cases, which I address in issue #224 |
Indeed, it does:
|
Can you see in the header of that output file whether the soil depths are listed? |
The file starts with
So yes, it lists 2 layers. |
Ece2cmor3 does indeed try to read the soil layer depths from the column headers of the LPJ-Guess .out-files. However, LPJ-Guess has not traditionally written the soil depths to the output, instead using the layer_1-style header names. The cmor soil depth axis ticks are "depth in meters", not e.g. a string stating "layer 1" or similar, so the design decision was made a while back to change the LPJ-Guess output so that header names = soil depths. This is so that ece2cmor3 will have all the necessary information already from the output file, which will avoid problems if/when the depths corresponding to the LPJ-Guess soil layers change in the future. The guys at Lund University, mainly David Wårlind and @nierad, will know if the change has already been made in the most recent versions of LPJ-Guess. This will of course not help with cmorizing any existing LPJ-Guess output files. I suppose the easiest way to cmorize those is to simply edit the header and replace layer_1 and layer_2 with their corresponding values for soil depth. |
Hi all, |
Just an update: |
@nierad, any news on this? |
It is resolved within the new lpjg-branch. |
Where do we stand with respect to LPJG output? There is a flag
--land
inece2cmor.py
, does it work and process the LPJG output? Has anybody a worksheet (.xls file) or varlist with land variables for a historical or piControl experiment?The text was updated successfully, but these errors were encountered: