G5NR Data Access Guide: Difference between revisions
FTP is not supported anymore |
|||
(21 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{rightTOC}} | |||
For questions or comments please send an email to g5nr at lists dot nasa dot gov. | For questions or comments please send an email to g5nr at lists dot nasa dot gov. | ||
Line 15: | Line 16: | ||
== Download data files == | == Download data files == | ||
==== Global data ==== | |||
===== [[Recipe: Retrieve (global) data from FTP server|Retrieve (global) data from | <!-- | ||
===== [[Recipe: Retrieve data | ===== [[Recipe: Retrieve (global) data from FTP server|FTP]] ===== | ||
--> | |||
===== [[Recipe: Retrieve (global) data from HTTPS server|HTTPS]] ===== | |||
==== Data subsets ==== | |||
===== [[Recipe: Retrieve data subsets using download tool|Download tool]] ===== | |||
== Read downloaded data files == | == Read downloaded data files == | ||
Line 25: | Line 31: | ||
==== [[Recipe: C program to read data from downloaded file|C program]] ==== | ==== [[Recipe: C program to read data from downloaded file|C program]] ==== | ||
==== [[Recipe: Python program to read data from downloaded file|Python script]] ==== | ==== [[Recipe: Python program to read data from downloaded file|Python script]] ==== | ||
==== [[Recipe: Matlab program to read data from downloaded file|Matlab script]] ==== | |||
==== [[Recipe: IDL program to read data from downloaded file|IDL script]] ==== | |||
==== [[Recipe: Visualize downloaded data using Panoply|Panoply]] ==== | |||
== OPeNDAP access == | == OPeNDAP access == | ||
OPeNDAP is a data server architecture that allows users to use data files that are stored on remote computers with their favorite analysis and visualization tools. Opening an OPeNDAP file is as easy replacing the file name in the client software by an OPeNDAP URL. All G5NR collections that are provided by | OPeNDAP is a data server architecture that allows users to use data files that are stored on remote computers with their favorite analysis and visualization tools. Opening an OPeNDAP file is as easy replacing the file name in the client software by an OPeNDAP URL. All G5NR collections that are provided by https/download-tool are also available on the OPeNDAP server | ||
https://opendap.nccs.nasa.gov/dods/OSSE/G5NR/Ganymed/7km | |||
===== [[Recipe: Fortran program as OPeNDAP client|Fortran client]] ===== | ===== [[Recipe: Fortran program as OPeNDAP client|Fortran client]] ===== | ||
===== [[Recipe: C program as OPeNDAP client|C client]] ===== | ===== [[Recipe: C program as OPeNDAP client|C client]] ===== | ||
===== [[Recipe: Python program as OPeNDAP client|Python client]] ===== | ===== [[Recipe: Python program as OPeNDAP client|Python client]] ===== | ||
===== [[Recipe: Matlab program as OPeNDAP client|Matlab client]] ===== | |||
===== [[Recipe: IDL program as OPeNDAP client|IDL client]] ===== | |||
===== [[Recipe: Visualize OPeNDAP data using Panoply|Panoply]] ===== | |||
<!-- | <!-- | ||
===== Shmem example ===== | ===== Shmem example ===== | ||
===== R ===== | ===== R ===== | ||
This example requires the [ | This example requires the [https://cran.r-project.org/web/packages/ncdf4/index.html ncdf4] and [https://cran.r-project.org/web/packages/rworldmap/index.html rworldmap] packages. | ||
<syntaxhighlight lang="rsplus"> | <syntaxhighlight lang="rsplus"> | ||
Line 80: | Line 64: | ||
> jm <- 361 | > jm <- 361 | ||
> lm <- 72 | > lm <- 72 | ||
> nc <- nc_open(" | > nc <- nc_open("https://opendap.nccs.nasa.gov:9090/dods/OSSE/GEOS-5.12/BETA9/0.5000_deg/inst/inst01hr_3d_T_Cv") | ||
< t <- ncvar_get(nc,"t",start=c(1,1,1,37),count=c(im,jm,lm,1)) | < t <- ncvar_get(nc,"t",start=c(1,1,1,37),count=c(im,jm,lm,1)) | ||
> str(t) | > str(t) | ||
Line 94: | Line 78: | ||
===== IDV ===== | ===== IDV ===== | ||
[ | [https://www.unidata.ucar.edu/software/idv/ IDV] is an OPeNDAP tool that can access and display the nature run data. In our OPenDAP server, all files are time aggregated, so they appear as a single dataset for each location. | ||
This is an example to open and display the field 'T' (air temperature) from the collection 'inst01hr_3d_T_Cv'. The OPenDAP URL for this dataset is | This is an example to open and display the field 'T' (air temperature) from the collection 'inst01hr_3d_T_Cv'. The OPenDAP URL for this dataset is https://opendap.nccs.nasa.gov:80/dods/OSSE/GEOS-5.12/BETA9/0.5000_deg/inst/inst01hr_3d_T_Cv. The following steps are valid for IDV version 5.0u1 running on a Linux desktop. | ||
From the 'Dashboard' panel | From the 'Dashboard' panel | ||
Line 104: | Line 88: | ||
* Select Field Selector and choose the 3D field'air_temperature'. The 'Times' tab lists all the available levels and times for this data. At this point, one can select specific times, level and regions (subsetting) from the 'Times' and 'Level' and 'Region' tabs. Click on 'Create Display'. | * Select Field Selector and choose the 3D field'air_temperature'. The 'Times' tab lists all the available levels and times for this data. At this point, one can select specific times, level and regions (subsetting) from the 'Times' and 'Level' and 'Region' tabs. Click on 'Create Display'. | ||
--> | --> |