Page 1 of 1

CFHTLENS problem

Posted: September 27 2020
by Zhu-Yao Wang
Hi guys,
I want to include CFHLENS data in my analysis but error reads:


--------------------------------------------------------------------
reading WL data set: CFHTLENS_6bin_ultra_conservative
WL: unknown or old measurements_format
--------------------------------------------------------------------

I didn't modify WL.ini file at all..

I'm wondering why this is happening and how could I fix it. Thanks!

Re: CFHTLENS problem

Posted: September 28 2020
by Antony Lewis
It's probably based on an old CosmoMC version, you can try getting old versions from github if needed.

Re: CFHTLENS problem

Posted: September 28 2020
by Zhu-Yao Wang
Thank you so much ! I will give it a shot.

Re: CFHTLENS problem

Posted: September 29 2020
by Zhu-Yao Wang
I tried to use Nov2016 version but I got the same error:
viewtopic.php?t=3109
And the suggestion is to use the latest version CosmoMC.

Is there anyway other way to fix it? Thank you.

Re: CFHTLENS problem

Posted: September 29 2020
by Zhu-Yao Wang
I read through wl.f90 file in CosmoMC/source/ .Comparing 2016 version with the latest version, there's a Huge change. I don't know why this is happening but it changed the loading of CFTHLens dataset.
Especially this sentense in wl.f90:

Code: Select all

measurements_format = Ini%Read_String('measurements_format',NotFoundFail=.true.)
    IF (measurements_format /= 'DES') call MpiStop('WL: unknown or old measurements_format')
measurements_format /= 'DES' doesn't make much sense to me.


I fixed this problem by replacing new version wl.f90 with the old version file. Recompile cosmomc. And now it can load CFTHLens data and everything works.