-
Notifications
You must be signed in to change notification settings - Fork 5
Load Variables
This version is a BETA RELEASE. The official version will be released at a later date.
To load variables from a data file you have already accessed, open the VCDAT control panel if it is not already open by clicking on the CDAT logo
on the left side of your screen.
Once the VCDAT control panel is open, click on the "Load Variables" button. Next double click on the data/netCDF file in which you are interested (for example the clt.nc netCDF file). If you see a File Load Error message about the data not being UTC-8 encoded or JupyterLab is unable to open this file type, click OK. If a list of variables displays, select a variable in which you are interested and click on the red "Axes" button. Next move the sliders to create a subset of data from the file.
If you see the "not UTC-8 encoded" error and nothing happens after you click OK, follow these steps:
- Type
import cdms2in a Jupyter notebook cell. - When prompted to turn on logging, type "Yes" (or "No" if you really don't want to save logging details). You may still see the error message about the data not being UTC-8 encoded, but the tool will work despite the error message.
In the downloaded sample data, you will find a total cloudiness netCDF file called clt.nc. It contains three variables:
- clt: total cloudiness on a monthly basis for 10 years from January 1979 up to and including December 1988.
- u: eastward component of wind speed (i.e. wind blowing from west to east)
- v: northward component of wind speed (i.e. wind blowing from south to north)
To load the total cloudiness variable, clt, click on this variable and a red "Axes" button should appear.
Click on the "Axes" button to subset the data if desired by moving the blue dots at the ends of the sliders. When satisfied with the subset of data, click on the blue "Load" button in the lower right corner of the window.
The python code to load that subset of data shows up in the next cell of the notebook displayed in the main window. Now you'll likely want to plot the variables.