Skip to content

necessity of $PAMTRA_DATADIR? #30

@MeraX

Description

@MeraX

Hi all,

often, when I want to do simple clear-sky simulations, either zenith pointing or above the ocean, I stumble upon the PAMTRA_DATADIR environment variable. Often I end up setting os.environ['PAMTRA_DATADIR'] = ""in the beginning of my code, as I see no need for this extra data, but setting this variable is required for importing pyPamtra.

I would suggest to postpone this variable check to a later place, where the code actually requires any of the additional files.
As far as I can see, PAMTRA_DATADIR is required for hongdb, db_liu, and land emissivity (land_emis_ssmi and telsem2).

So my idea would be to move the check to runPamtra and check for the variable, and perhaps also the required sub directories, if and only if there are any hong or liu particles in the descriptor file or if there are any columns over land.

What do you think?

Best
Marek

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions