MetOffice / MetOffice/CSET

Add argument for specifying output directory into the plotting routines

Open
#2,305 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Python
Stars
33
Forks
19
Avg merge
1d 22h
Merged PRs (30d)
30

Description

### What problem does your feature request solve?

Currently, our plotting routines, when used within a python script output to the directory that you have initiated into python, unless you use `os.chdir` beforehand.

### Describe the solution you'd like

It would be great to allow the plotting routines to take an argument so that users in python routines, rather than workflow or CLI, can output the plots to where they want.

### Describe alternatives you've considered

See current work around which feels a little bit of a hack.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files, tests, or specific plotting entry points are named. Start by locating the plotting routines and reviewing how they currently choose an output directory, including the os.chdir workaround described in the issue. Done means Python-script users can select the plot output directory without changing the process working directory.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data-visualization
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.