Step 4: Fetch and Save Your Data¶
There are basically two strategies to working with data in Domino:
You can copy your data into Domino
If you are working with data that is on your local machine or in a shared server, you might want to upload your data into Domino.
You can query your data from Domino
If you have a large dataset stored in a database or data service, you may just need to query the database or the API for the data service.
In this step, you’ll copy your data into the project using the MATLAB terminal. If you have not done so, please complete Step 3 to start a MATLAB workspace.
The starting file path in your MATLAB workspace is
/mnt. By default, this is considered the root of your Domino project. If you add or modify files in
/mnt, you can save them back to your project when you stop or sync the workspace.
Step 4.1: Fetch Your Data¶
In the command window, enter the following command to fetch some data from the US NOAA Climatology Service:
!curl -o tegel.csv https://www.ncei.noaa.gov/data/global-historical-climatology-network-daily/access/GME00121150.csv
The downloaded file will appear in the Current Folder file navigator of your MATLAB desktop.
Note that the temperature data is in tenths of Celsius degrees. Learn more here: README File for Daily Global Historical Climatology Network.
Step 4.2: Save Your Data to Your Domino Project¶
To save this data to your Domino project, click the Save & Push All button, enter an informative commit message, and then click Continue with Sync. After doing this, Domino will show you which files have changed during your session.