Getting Started with the NetCDF Diag Files #25
Replies: 1 comment 3 replies
-
@guoqing-noaa @terraladwig @christinaholtNOAA now that I’m back from vacation and sick leave, I’m making some headway on these NetCDF diag files, I think. I’ve got a list of variables from the NetCDF file; I have a guess as to what some of them mean, but not others, so I’m going to list them here and you can hopefully fill in the gaps for us and correct anything I’ve misunderstood. Here are my guesses:
And here are the terms for which I don’t have a good guess:
Assuming that my guesses are correct, and that one of the first things we want to do is display a histogram of Then the fields that we need are As a sanity check, I created this histogram from Does this seem reasonable? Once we iron out our understanding of what’s in these files, we should be able to start progressing rapidly on making these histograms available in the application. |
Beta Was this translation helpful? Give feedback.
-
@ian-noaa since I’m out next week, I thought it’d be good to leave you with the steps I used to start looking into the NetCDF files, even though I didn’t get to look at them very closely. If you have a different approach you prefer, feel free to ignore this.
I downloaded and extracted the archive that Guoqing shared in Drive into
tmp/data
(tmp/
is in.gitignore
so you don’t have to worry about committing the NetCDF files). Then I fired up JupyterLab in a Docker container.This will make JupyterLab available to you on http://localhost:8888/ (the token thing just ensures you don’t have to copy any security tokens, since you’re running in a secured environment).
Inside of JupyterLab, you’ll need to open a new terminal and install
xarray
andnetcdf4
.Then you can open either a Python console or a new Python notebook and begin exploring the NetCDF files.
That should load the file so that you can start exploring it. If you save your notebooks, they’ll end up in
tmp/
(so they won’t be committed).Beta Was this translation helpful? Give feedback.
All reactions