Tutorials¶
- Sign in to the MESA Portal with a CyVerse account - Sign in to the MESA Portal at mesa.cyverse.org with a free CyVerse account and confirm that you reached your dashboard.
- Find MESA's community data in the Data Browser - Open the MESA community folder in the portal's Data Browser, confirm where you are from the folder header, and copy a folder's path.
- Ask CyVerse for access to interactive apps - Send the one-time request that lets a new CyVerse account start MESA JupyterLab and the other interactive apps, and know when it has been granted.
- Launch MESA JupyterLab with your Data Store mounted - Start the MESA JupyterLab app from the MESA Portal and confirm that your CyVerse Data Store is available inside it.
- Save your work where it survives the session - Save a notebook inside your Data Store from MESA JupyterLab and confirm from the MESA Portal that it will outlive the app.
- Stop an app and find your results - Stop a running MESA app with Save & Exit from the Analyses page and find its results in the Data Browser.
- Practice data: five invented rain gauges - The synthetic rain-gauge practice dataset used by the data tutorials: what its five files contain, its data dictionary, and how to copy it into your Data Store.
- Load a file from your Data Store into a notebook - Read a CSV file that sits in your Data Store into a pandas table in MESA JupyterLab and confirm its size against what you expected.
- Read the data dictionary before the data - Use a dataset's data dictionary to find out what each column means and which column you cannot yet add up, before you compute anything.
- Check a column's range and missing values - Find the smallest and largest value in a column and count the blanks in every column, so that an impossible value or a gap shows up before you compute with it.
- Tally a quality flag before you trust a number - Count how many rows carry each value of a quality flag, including the blanks, and look at the flagged rows before deciding what to do with them.
- Count records per day to find incomplete days - Count the rows for each gauge and day to find days that were recorded twice and days that were not recorded at all.
- Reconcile row counts before and after a join - Join a table of readings to a table of gauges and confirm that the join neither added nor lost rows and left no reading without a match.
- Leave a notebook someone else can rerun - Restart a notebook and run it from the top, remove what ties it to your session, and say at the top what it needs, so that another person gets the same result.
- Find your way around the MESA Portal - Use the MESA Portal's sidebar, dashboard, and user menu to reach your data, the apps, your analyses, and your quota.
- Share a folder with a collaborator - Give one named CyVerse user read access to a folder in your Data Store from the MESA Portal's Data Browser, and confirm the access took effect.
- Add metadata to a file or folder - Describe a folder in your Data Store with an attribute and a value from the MESA Portal's Data Browser, and confirm the description was saved.
- Describe a folder with DataCite fields - Fill in a folder's title, publisher, year, type, and creator on the MESA Portal's full metadata page, and see the standard-named AVUs it saves.
- Add Dublin Core fields to a folder - Fill in a folder's creator, subject, and rights on the Dublin Core tab of the MESA Portal's full metadata page, and see which fields the portal carries over for you.
- Record where and when data was collected, with EML fields - Fill in a folder's place, bounding box, and date range on the EML tab of the MESA Portal's full metadata page, and see the eml. AVUs it saves.
- Make a folder's metadata valid Croissant - Use the Croissant tab of the MESA Portal's full metadata page to see which required properties a folder lacks, add a description and a licence, and reach a valid Croissant document.
- Tag a folder with an ontology term - Find a term in the Environment Ontology on the Ontologies tab of the MESA Portal's full metadata page, add it to a folder, and see the AVU that carries the term's identifier.
- Sign in and start an AI agent in a MESA app - Sign in to CyVerse from a terminal in a MESA app, connect an AI agent to a language model, and have it list the folders in your Data Store.
- See which tool servers your agent can use - List the tool servers an AI agent has in a MESA app, read which are connected and which need a sign-in, and say what the agent can and cannot reach.
- Read back what an agent ran - After an AI agent finishes in a MESA app, list its sessions, export one to a file, and print every tool it called with the inputs it gave.
- Ask an agent for a query, then run it yourself - Have an AI agent draft a DuckDB query without running it, read the draft, save it to a file, run it yourself, and write down what the query leaves out.
- Check what an agent may change before you let it - Read an AI agent's permission rules in a MESA app, then test them in a scratch folder: what it writes without asking, what it is stopped from, and what a read-only agent does instead.
- Keep tokens and passwords out of saved files - Give a notebook a token without typing it into a cell, and confirm that the saved notebook does not contain it.
- Turn UTC timestamps into local days - Convert UTC timestamps to local time before grouping by day, and confirm the daily totals against values you already trust.
- Work with a long table, one row per kind of measurement - Recognise a table that stacks several kinds of measurement in one value column, summarise each kind separately, and reshape it to one column per measurement.
- Query a Parquet file with DuckDB from a notebook - Run SQL against a Parquet file from a notebook with DuckDB, without loading the file into memory first, and bring a result back as a pandas table.
- Check an AI-suggested result against the data - Test a result that an AI assistant, or anyone else, hands you: reproduce the number, find what it rests on, and say whether the claim survives.
- Map point data with sf in MESA RStudio Geospatial - Turn a table of longitudes and latitudes into spatial points with sf in MESA RStudio Geospatial, check a distance, and save a map to your Data Store.
- Make a folder in your Data Store - Create a folder in your Data Store from the MESA Portal's Data Browser, so that a piece of work has one place to live.
- Search for a file or folder by name - Find files and folders by name with the MESA Portal's Data Browser search, narrow the results, and open the folder a result lives in.
- Launch an app with the cores, memory, and time you choose - Start MESA JupyterLab from the MESA Portal with a name, a number of CPU cores, an amount of memory, and a time limit that you set yourself.
- Check on a running app and give it more time - Read how long a running MESA app has left, look at its logs, and extend its time limit from the Analyses page before it stops.
- Load a file from your Data Store in RStudio - Read a CSV file from your Data Store into an R data frame in MESA RStudio Geospatial, and confirm its size and column types.
- Tally a quality flag in R - Count the rows for each value of a quality flag in R, including the missing ones, and look at the flagged rows before deciding what to do with them.
- Query a Parquet file with DuckDB from R - Run SQL against a Parquet file from R with the duckdb package in MESA RStudio Geospatial, and get each result back as an ordinary data frame.
- Check a column's range and missing values in R - Find the smallest and largest value in a column and count the missing values in every column of an R data frame, so that an impossible value or a gap shows up before you compute with it.
- Count records per day in R - Count the rows for each gauge and day in an R data frame to find days recorded twice and days with no record at all.
- Reconcile row counts before and after a join in R - Join a data frame of readings to a data frame of gauges with merge() and confirm that the join neither added nor lost rows and left no reading without a match.
- Leave an R script someone else can rerun - Put your checks in an R script that reads its own data, then run it from an empty workspace in MESA RStudio Geospatial to confirm it does not depend on anything you typed earlier.
- Join two tables in R and keep the unmatched rows visible - Join a table of gauges to an incomplete table of positions with merge() in R, keep the gauge that finds no match, and count how many matched.
- Bring two units onto one scale in R - Give each reading its gauge's unit in R, convert every value to millimetres with a lookup you write yourself, and confirm that no row was left unconverted.
- Find and remove a repeated row in R - Show the rows of an R data frame that have an exact copy, decide that they are one reading, remove the copy with unique(), and record what you removed.
- Save a query from R so someone else can run it - Write a SQL query to a file of its own from R, then run it from that file with the duckdb package in MESA RStudio Geospatial, so that a colleague runs the same text you did.
- Read the data dictionary before the data, in R - Use the practice data's dictionary to say what one row of the readings table is, then confirm in R which gauge reports in a different unit.
- Turn UTC timestamps into local days in R - Read UTC timestamps as times in R, total hourly rain by UTC date and by local date, and confirm that only the local days match the gauge's daily record.
- Work with a long table in R - Summarise a long table, with one row per time and per kind of measurement, by measurement in R, and reshape it to one column for each kind with reshape().
- Download a file from the web into your Data Store with MESA Cloud Shell - Start MESA Cloud Shell, go to a folder in your Data Store, and fetch a file from a web address straight into it with curl.
- Write and run a Python script in MESA VS Code - Open MESA VS Code on your Data Store, create a Python script in a folder there, and run it in the built-in terminal.
- Open a file from your Data Store in a desktop program - Start the MESA KASM Ubuntu Desktop, find a file in your Data Store with its file manager, and open it in a desktop program.
- Write a README for a data folder - Add a short README file to a folder in your Data Store, from MESA JupyterLab, that says what the files are, where they came from, and who to ask.
- Record the software versions a result depends on - Write the Python version and the versions of every installed package to files beside your work, so that a result can be traced to the software that produced it.
- Rename a folder in your Data Store - Give a folder in your Data Store a clearer name from the MESA Portal's Data Browser, and confirm its path changed with it.
- Move folders into another folder - Select several folders in the MESA Portal's Data Browser and move them together into another folder in your Data Store.
- Move a folder to the trash and get it back - Move a folder to your Data Store trash from the MESA Portal, then restore it from the trash in the CyVerse Discovery Environment.
- Upload a file from your computer to your Data Store - Copy a file from your own computer into a folder of your CyVerse Data Store with the Upload button in the MESA Portal Data Browser, and confirm it arrived whole.
- Download a file from your Data Store to your computer - Save a copy of a file from the MESA Portal Data Browser to your own computer with the card's Download button, and confirm the copy is complete.
- Start a new file in the Data Browser - Create a new file from a template, such as a Markdown note, in a folder of your Data Store with the New File button in the MESA Portal Data Browser.
- Browse a large folder as a sorted list - Switch the MESA Portal's Data Browser to a list, page through a folder with many items, and sort what is on the page.
- Read the metadata on a folder shared with you - Open the metadata on a folder another CyVerse user has shared with you, in the MESA Portal's quick panel and on its full metadata page.
- Stop sharing a folder - Take away a collaborator's access to a folder in your Data Store from the MESA Portal's share dialog, and confirm the folder is private again.
- Share an analysis with a collaborator - Give another CyVerse user read access to one of your analyses from the Analyses page of the MESA Portal, and confirm they are listed.
- Find a MESA working group and how to join it - Search the Working Groups page of the MESA Portal, open a group's page, and read what the group is for and who may join, before you ask to join.
- Check your CPU hours and storage - Find how many CPU hours and how much Data Store space your CyVerse plan allows, and how much you have used, in the MESA Portal.
- Read a notebook in the portal without starting an app - Open a saved Jupyter notebook in the MESA Portal's Notebook Viewer to read its code and saved output, without launching JupyterLab.
- Look inside a CSV file from the portal - Open a CSV file in the MESA Portal's Data Viewer and read its columns, row count, and value ranges, then run one SQL query, without launching an app.
- Join two tables and keep the unmatched rows visible - Join a table of gauges to a table of positions with DuckDB so that a gauge with no match stays in the result and is counted, instead of dropping out unseen.
- Bring two units onto one scale before comparing - Convert readings that were recorded in different units to one unit, using the table that says which unit each gauge reports in, and confirm that every row was converted.
- Find and remove a repeated row - Find rows that are written twice in a table, decide from what they contain whether one of them can go, remove it, and record what you removed.
- Save a query so someone else can run it - Put a SQL query in its own file beside the notebook, with a comment that says what it needs, and run it from that file so that a colleague runs exactly what you ran.
- Plot a column to spot odd values - Draw one box per gauge for a column of readings, so that a value far from the rest, or a gauge on a different scale, shows up at a glance.
- Check a result a second way - Compute the same count in pandas and in DuckDB, find out why the two disagree, and keep the result only once both routes give the same answer.
- Check that the parts add up to the whole - After splitting a table into groups, add the groups back up and compare with the whole table, so that rows dropped without warning are noticed.
- Compare two files that should look alike - Put July's and August's readings side by side, by row count, by gauge and by largest value, so that what is unusual in one month stands out against the other.
- Plot a column to spot odd values in R - Draw one box per gauge for a column of readings in R, so that a value far from the rest, or a gauge on a different scale, shows up at a glance.
- Check a result a second way in R - Count the same rows two ways in R, find out why the two disagree, and keep a result only once two independent routes give the same answer.
- Check that the parts add up to the whole in R - After splitting an R data frame into groups, add the groups back up and compare with the whole table, so that rows dropped without warning are noticed.
- Compare two files that should look alike in R - Put July's and August's readings side by side in R, by row count, by gauge and by largest value, so that what is unusual in one month stands out against the other.
- Keep a log of AI-assisted steps - Keep a table in your notebook with one row for each step an AI assistant helped with: what you asked, what it answered, how you checked it, and what you decided.
- Say where your input data came from - Record in a folder's README where its data came from, when you retrieved it, which version it is, and what its license allows, so that someone else can get the same data again.
- State what AI did in your analysis - Add a section to a folder's README that says which AI tools helped with the analysis, what they were asked, what you kept, and how you checked it.
- Hand your folder to a colleague and have them rerun it - Test whether your work can be repeated without you: share the folder, have a colleague copy it and run the notebook from a fresh start, and compare their result with the one you wrote down.
- Record the R and package versions a result depends on - Write the R version and the version of every installed package to files beside your work in MESA RStudio Geospatial, so that a result can be traced to the software that produced it.
- Write a README for a data folder, from RStudio - Add a short README file to a folder in your Data Store, with the editor in MESA RStudio Geospatial, that says what the files are, where they came from, and who to ask.
- Hand your folder to a colleague and have them rerun it, in R - Test whether your R work can be repeated without you: share the folder, have a colleague copy it and run the script in a new RStudio session, and compare their result with the one you wrote down.
- Keep a command running in MESA Cloud Shell after you close the tab - Start a slow command in MESA Cloud Shell, open a second terminal window beside it, close the browser tab, and come back from the Analyses page to find the command still running.
- Find a value in every file of a folder with MESA VS Code - Search all the files in a folder of your Data Store for a piece of text in MESA VS Code, read how many times each file contains it, and open a file at the matching line.
- Open a terminal in a Data Store folder on the MESA desktop - On the MESA KASM Ubuntu Desktop, go to a folder of your Data Store in the file manager, open a terminal that starts in that folder, and run a command on a file there.
Machine-readable versions of this page: Markdown twin · raw source on GitHub · llms.txt · llms-full.txt (whole site). See For AI agents.