Complete CDAS R1.7.13 Web Services API

Generated by IDLdoc

single page | use frames     summary     class     fields     routine details     file attributes

./

spdfcdaswsexample.pro


This program is an example to demonstrate calling the Coordinated Data Analysis System's REST Web Services from an Exelis Visual Information Solutions (VIS) Interactive Data Language (IDL) program. It demonstrates the following:

  • Getting the available dataviews.
  • Getting the available mission groups.
  • Getting the available instrument types.
  • Getting the available datasets for ACE.
  • Getting the variables for the AC_H0_MFI dataset.
  • Getting and displaying a portion of an ASCII listing of AC_H0_MFI data.
  • Getting a CDF file of AC_H0_MFI data and displaying some of the file's attributes.
  • Getting and displaying a graph of AC_H0_MFI data.
  • Some basic HTTP error handling.

Author information

Author

B. Harris

Copyright

Copyright (c) 2010-2018 United States Government as represented by the National Aeronautics and Space Administration. No copyright is claimed in the United States under Title 17, U.S.Code. All Other Rights Reserved.

Routines

Routines from spdfcdaswsexample.pro

getCdfFile, fileDescription

This procedure demonstrates how to obtain a local copy of a remote CDF file and display some CDF information about the file's contents.

getTextFile, fileDescription

This procedure demonstrates how to obtain a local copy of a remote text file and display a portion of its contents.

getFile, fileDescription

This procedure demonstrates how to check the MIME-type of an SpdfFileDescription and, if it is of type "image/png", to get a local copy and display the image.

getResultFile, fileDescription

This procedure demonstrates how to examine an SpdfFileDescription and then display it based upon it MIME-type.

getDataResults, results

This procedure demonstrates how to examine the result of a data request.

SpdfCdasWsExample

This procedure is an example to demonstrate calling the CDAS REST Web Services from an IDL program.

Routine details

top source getCdfFile

getCdfFile, fileDescription

This procedure demonstrates how to obtain a local copy of a remote CDF file and display some CDF information about the file's contents.

Parameters

fileDescription in type=SpdfFileDescription

description of a remote CDF file.

top source getTextFile

getTextFile, fileDescription

This procedure demonstrates how to obtain a local copy of a remote text file and display a portion of its contents.

Parameters

fileDescription in type=SpdfFileDescription

description of a remote CDF file.

top source getFile

getFile, fileDescription

This procedure demonstrates how to check the MIME-type of an SpdfFileDescription and, if it is of type "image/png", to get a local copy and display the image.

Parameters

fileDescription in type=SpdfFileDescription

description of a remote file

top source getResultFile

getResultFile, fileDescription

This procedure demonstrates how to examine an SpdfFileDescription and then display it based upon it MIME-type.

Parameters

fileDescription in type=SpdfFileDescription

description of a remote file.

top source getDataResults

getDataResults, results

This procedure demonstrates how to examine the result of a data request.

Parameters

results in type=SpdfCdasDataResult

results of a data request.

top source SpdfCdasWsExample

SpdfCdasWsExample

This procedure is an example to demonstrate calling the CDAS REST Web Services from an IDL program. It demonstrates the following:

  • Getting the available dataviews.
  • Getting the available mission groups.
  • Getting the available instrument types.
  • Getting the available datasets for ACE.
  • Getting the variables for the AC_H0_MFI dataset.
  • Getting and displaying a portion of an ASCII listing of AC_H0_MFI data.
  • Getting a CDF file of AC_H0_MFI data and displaying some of the file's attributes.
  • Getting and displaying a graph of AC_H0_MFI data.
  • Some basic HTTP error handling.

File attributes

Modification date: Wed May 30 11:53:02 2018
Lines: 142


CDAS Feedback.