PollyNET / polly2earlinetDB

Provide command line tool to convert the polly results to the new EARLINET database format.
GNU General Public License v3.0
4 stars 0 forks source link

How to add a new campaign in the configs? #4

Closed ZPYin closed 4 years ago

ZPYin commented 4 years ago

Firstly, you should know some details of the configurations used for the convertor. If you open the config folder, you will find bunch of toml files used for the projects. But only two kinds associated with the campaign info, as below

# campaign list
campaign_list.toml

# configurations for single campaign
{location}_campaign_info{tag}.toml

Therefore, to do that, you need firstly write down the fundamental information of the campaign, like below

# for one instrument available along the measurement history
[Dushanbe_campaign_info]
location = "Dushanbe"
country = "Tajikistan"
starttime = "2019-06-15 00:00:00"
endtime = "2029-01-01 00:00:00"
system = "PollyXT_TJK" 

# for multiple instruments
[Dushanbe_campaign_info_2]
location = "Dushanbe"
country = "Tajikistan"
starttime = "2019-06-15 00:00:00"
endtime = "2029-01-01 00:00:00"
system = "PollyXT_TJK" 

[Dushanbe_campaign_info_1]
location = "Dushanbe"
country = "Tajikistan"
starttime = "2015-03-17 00:00:00"
endtime = "2016-09-30 00:00:00"
system = "PollyXT_TROPOS" 

After the entry point was setup in the campaign list file, you need to create the campaign metadata file with the same keyword in the campaign list, e.g., Dushanbe_campaign_info_1.toml and Dushanbe_campaign_info_2.toml. To simplify this, you can copy and manipulate items in other campaign list file. But take care to use UTF-8 encoding to open and edit the file, otherwise the non-ASCII characters will be a mess in the final netCDF4 file.

Note: If you used the python setuptools and using the executable command, you need to recompile it. Because the configuration files also needs to be updated for the script. To do like, you can follow the instructions below,

# delete the previous executable scripts
pip uninstall polly2scc

# reinstall it with using new configuration files
pip install git+https://github.com/PollyNET/polly2scc.git