All kinds of software read netcdf

Source: Internet
Author: User

There are many plotting/analysis packages that can read and manipulate we netcdf files. Select a program to and examples of the how to use them. We don't warranty any of the this information, nor does we generally offer help with the using any of these tools.

Ferret Grads Ncbrowse
NCL (NCAR Command Language) Idl NCO (NETCDF Operator)
Cdat (Climate Data analysis Tools) Panoply IDV (Integrated Data Viewer)
Matlab Excel ArcGIS

There is also a contributed filter for the Ncdump utility This understands the udunits dates in our files and translates T  Hem to a human readable output. This page is for documentation.
List of packages: Ferret Ferret is a freely available visualization and analysis tool from the Pacific Marine. Ferret commands similar to these should read the file and produce a plot:

Yes? Use "Uwnd.mean.nc" Yes?! Use only the ' the ' the ' the ' ' plot yes? Set region/l=1 Yes? Contour Uwnd
gradsThe Graphic analysis and Display System (grads), developed in Cola, is also freely available. Grads has a SDF ( SElf DEscribing FIle) interface that can read a NETCDF or HDF (scientific Data Sets) file, which compatible with the Coards NETCDF ions.
To create a plot in grads use commands similar to these:ga-> Sdfopen
Scanning self-describing FILE:UWND.MEAN.NC
Found displayable variable Uwnd with 0 levels in SDF file.
Data file Uwnd.mean.nc is open as file 1
LON set to 0 360
LAT Set to-89 89
LEV set to 0 0
Time Values set:1980:1:1:0 1980:1:1:0
Ga-> D Uwnd
IDLIDL is a commercial software package to ITT Visual information Solutions which can also read our netcdf files. In IDL 4.0 (or later), commands similar to these should work:idl. Version 4.0.1b (SunOS SPARC).
Copyright 1989-1996, Systems, Inc.
All rights reserved. Unauthorized reproduction prohibited.
Installation number:1627-1.
Licensed for use By:climate diagnostics Center
% Compiled module: $MAIN $.
Idl> Id=ncdf_open ("/datasets/coads1a.enh/sst.mean.nc")
Idl> Sstid=ncdf_varid (ID, "SST")
Idl> NCDF_VARGET,ID,SSTID,SST
Idl> Contour,sst (*,*,1)
IdV (Integrated Data Viewer)  The idv is A meteorologically oriented, platform-independent application for visualization and analysis , developed using Java, visad and other component libraries, which emphasizes interactive 3D visualization and in Tegration of diverse data types, including coards and CF netcdf files from PSD. IDV is developed in UCAR ' S unidata program Center. The idv homepage for information on "How to" install IdV on your platform. If you have Java WebStart installed for your can launch IDV here. In idv:publicly available PSD datasets are available through the PSD Thredds catalog which be linked from the main IDV CA Talog in the Catalog Chooser under Community Data Servers. Select the dataset with want to load. Once It is loaded the data source appears in the IdV ' Field Selector window. You can subset the "times" for the entire dataset or a individual display. To select the entire dataset, right-click on the data source name; Click on the Properties in The pop-up menu that appears. In the ' Times tab ' in the ' Properties dialog ', click off the checkbox ' use Default '. Then Select a range of times to use. Can right click on the "Times" to get some predefined options, or select the starting time and Shift-click on the end Ti Me of the range you want. (Many PSD data sets have thousands of time steps and are too to load all at large.) After your Select the time, choose the field and display type to want by clicking on them. Alternatively, you can select the "times for a" particular variable in the Times tab to the the Data subset panel in the lower R ight portion of the Field Selector. Then Click the Create Display button. For more information, The idv Users Guide.   NcbrowseNcbrowse is a pure Java desktop application This can create graphical displays and view the attributes of our NETCDF files . PanoplyThe panoply is a GUI netcdf the data viewer from Nasa/giss. It plots maps and zonal averages and are easy to use. It's free and available for Mac, Windows or Linux. NCLNCL, the NCAR Command Language, is a freely available software package from NCAR which can read our netcdf files as. This is a sequence of commands that should work:
Load "$NCARG _root/lib/ncarg/nclscripts/csm/gsn_code.ncl"
Load "$NCARG _root/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
Load "$NCARG _root/lib/ncarg/nclscripts/csm/contributed.ncl"
f = AddFile ("Slp.2002.nc", "R")
SLP =short2flt (F->SLP); Convert to float [CONTRIBUTED.NCL]
Wks =gsn_open_wks ("PS", "slp_ce"); Open a "x11", "PS" or "NCGM" file
Plot=gsn_csm_contour_map_ce (WKS, SLP (0,:,:), False); Create a default CE plot
For unpacked files in our collection, the line with "Short2flt" in it should is changed to "SLP=F->SLP".
Further examples of NCL use are available. NCONCO is a (free) suite of programs this operate on NETCDF files. Each operator was a standalone, command line program which is executed at the UNIX (or NT) shell-level like, e.g., LS or MK Dir. The operators take NETCDF or HDF4 files as input, then perform a set of operations (e.g., deriving new data, averaging, HY perslabbing, or metadata manipulation) and produce a netcdf file as output. The operators are primarily designed to-aid manipulation and analysis of gridded scientific data. These tools are a powerful and easy way to perform simple manipulations on NETCDF files without a major programming effort .

For example:the command:ncrcat 85.nc 86.nc 87.nc 88.nc 89.nc 8589.nc concatenates the 4 files along the record This case) dimension and creates one single fileCdatCdat Climate Data Analysis Tools (cdat) are a software system designed to provide access to and management of gridded Te data. It uses a object-oriented scripting language to link together separate software subsystems and packages thus forming ntegrated Environment for solving model diagnosis problems. The power of the system comes from Python and its ability to seamlessly interconnect software. Python provides a general purpose and full-featured scripting language with a variety of user interfaces including command -line interaction, stand-alone scripts (applications) and graphical user interfaces (GUI). The modular Cdat subsystems provide access to the data, to Large-array numerical (via Operations Python), and VI Sualization.MATLABMATLAB is a high-level language and interactive environment w/extensive plotting and numerical processing. Http://mexcdf.sourceforge.net/for the Mexnc interface to NETCDF files.

 p = nc_varget (' prate.1979.nc ', ' prate ', [0 0 0],[10-1-1]); File Pmean = double (Squeeze (mean (p,1))); % Take The mean of this data over time Nlat=nc_varget (' prate.1979.nc ', ' lat '); % get the latitude and longitude coordinates nlon=nc_varget (' prate.1979.nc ', ' lon '); Pcolor (Lon,lat,pmean); shading Interp;colormap (1-jet.^2)% make a pseudocolor plot load coast; Hold on; Plot (Long+360,lat); Hold of If you have the mapping Toolbox there are a much simpler and faster solution (sample output): P = nc_varget (' Prate. 1979.nc ', ' prate ', [0 0 0],[10-1-1]) Pmean = double (Squeeze (mean (p,1))); Nlat=nc_varget ('/datasets/narr/monolevel/prate.1979.nc ', ' lat '); Nlon=nc_varget ('/datasets/narr/monolevel/prate.1979.nc ', ' lon '); Axesm (' Eqdcylin ', ' maplatlimit ', [0], ' maplonlimit ', [150 0]); % Create A cylindrical equidistant map pcolorm (nlat,nlon,pmean)% Pseudocolor plot "stretched" to the grid load coast plot M (Lat,long) 
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.