Uploaded image for project: 'JASMIN CIS'
  1. JASMIN CIS
  2. JASCIS-226

"invalid variable" used for axis actually exists

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Plotting
    • Labels:
      None

      Description

      cis plot RelHumidity:level_1_2/ITCT2004/NAerosol_mrg60_NP3_2004*_R0.ict.nc --title='ITCT2004 flights' --itemwidth 10 --xaxis nfine --yaxis coarse

      gives:

      Traceback (most recent call last):
        File "/group_workspaces/jasmin/cis/cis_dev_venv/bin/cis", line 6, in <module>
          main()
        File "/group_workspaces/jasmin/cis/cis_dev_venv/lib/python2.7/site-packages/jasmin_cis/cis.py", line 309, in main
          parse_and_run_arguments()
        File "/group_workspaces/jasmin/cis/cis_dev_venv/lib/python2.7/site-packages/jasmin_cis/cis.py", line 288, in parse_and_run_arguments
          cmd(arguments)
        File "/group_workspaces/jasmin/cis/cis_dev_venv/lib/python2.7/site-packages/jasmin_cis/cis.py", line 80, in plot_cmd
          main_arguments["x_variable"] = __check_variable_is_valid(main_arguments, data, "x")
        File "/group_workspaces/jasmin/cis/cis_dev_venv/lib/python2.7/site-packages/jasmin_cis/cis.py", line 45, in __check_variable_is_valid
          raise InvalidVariableError("{} is not a valid variable".format(user_specified_variable))
      jasmin_cis.exceptions.InvalidVariableError: nfine is not a valid variable

      Actually, nfine is a valid variable. I can plot ITCT2004 nfine data without problems if I stick to more common axes: longitude, latitude, altitude.

      Here, however, I'd like to make a scatterplot of nine against ncoarse with the colour of the data points determined by RelHumidity.

      Note: cis plot nfine:lvl12/ITCT2004/NAerosol_mrg60_NP3_2004*_R0.ict.nc ncoarse:lvl12/ITCT2004/NAerosol_mrg60_NP3_2004*_R0.ict.nc --title='ITCT2004 flights' --itemwidth 10 --type comparativescatter
       
      works fine but

      cis plot nfine:lvl12/ITCT2004/NAerosol_mrg60_NP3_2004*_R0.ict.nc ncoarse:lvl12/ITCT2004/NAerosol_mrg60_NP3_2004*_R0.ict.nc --title='ITCT2004 flights' --itemwidth 10 --type comparativescatter --xaxis=nfine

      yields the same error as before

        Attachments

          Activity

            People

            Assignee:
            matthew.kendall@tessella.com Matthew Kendall
            Reporter:
            schutgens@atm.ox.ac.uk Nick Schutgens
            Participants:
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated: