.. _section3.1.2: 3.1.2 - Get Dataset Information ================================= .. _GD: Action Option -**GD** (-**GetDataset**) : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ reads and displays dataset record fields from GDEXDB for the specified dataset. | **dsarch** [:ref:`-(DS|Dataset) `] dNNNNNN [-](GD|GetDataset) [:ref:`Mode Options `] | [:ref:`-(FN|FieldNames) ` FieldNameString] | [:ref:`-(KV|KeyValue) ` KeyNames] | [:ref:`-(OF|OutputFile) ` OutputFileName] | [:ref:`-(DB|Debug) ` DebugModeInfo] Available mode options: .. list-table:: :widths: auto :header-rows: 0 * - :ref:`-(FO|FormatOutput) ` - formats each column to a uniform fixed width * - :ref:`-(PE|ShowPeriod) ` - includes associated period information for the dataset and any groups * - :ref:`-(WN|WithFileNumber) ` - gathers and displays Saved/Web file counts Use :ref:`-FN ` (-FieldNames) to select which dataset fields to include. Defaults to 'SWFULQ'. Use :ref:`-FN ` ALL to retrieve every available field. Valid dataset field names and their corresponding :ref:`Info options `: .. list-table:: :widths: auto :header-rows: 1 * - Names - :ref:`Info Options ` - Descriptions * - T - :ref:`-(TI|Title) ` - dataset title * - S - :ref:`-(SP|SavedPath) ` - path relative to Saved home directory * - H - :ref:`-(WH|WebHome) ` - path for the web data home directory * - W - :ref:`-(WP|WebPath) ` - path relative to web home directory * - F - :ref:`-(DF|DataFormat) ` - default data content format * - U - :ref:`-(UD|UseDSARCH) ` - use DSARCH flag * - L - :ref:`-(LC|Location) ` - Online web file access location flags * - Q - :ref:`-(BF|BackupFlag) ` - Quasar Backup flags * - A - :ref:`-(DA|DataAccessFlag) ` - dataset data file list access flags * - V - :ref:`-(GL|GroupLevel) ` - number of group levels to display * - C - :ref:`-(FL|FileLimit) ` - file count limit for separate group filelists * - B - :ref:`-(BL|ButtonLimit) ` - file count limit for showing script buttons * - M - :ref:`-(ML|MetaLink) ` - a link to content meta at the dataset level * - W - :ref:`-(NW|NoteWeb) ` - web data description * - I - :ref:`-(NI|NoteInternal) ` - internal data description * - D - :ref:`-(ND|NoteDocument) ` - document description * - N - :ref:`-(NS|NoteSoftware) ` - software description * - G - :ref:`-(GI|GroupIndex) ` - Group Indices to identify groups for periods * - J - :ref:`-(BD|BeginDate) ` - date data begin for dataset/group * - K - :ref:`-(BT|BeginTime) ` - time data begin for dataset/group * - X - :ref:`-(ED|EndDate) ` - date data end for dataset/group * - Y - :ref:`-(ET|EndTime) ` - time data end for dataset/group Use :ref:`-OF ` (-OutputFile) to save the retrieved information to a file. Without it, results are displayed on screen. .. _3.1.2_e2: **EXAMPLE 2. To retrieve all dataset fields for d260001 and save to a file:** | **dsarch** d260001 :ref:`GD ` :ref:`-FN ` ALL :ref:`-PE ` -OF d260001.ds Content of output file d260001.ds: .. code-block:: none Dataset<=>d260001 Title<=>Objectively Analyzed Air-Sea Fluxes (OAFlux) For Global Oceans, By Lisan Yu et al. SavedPath<=> WebPath<=> Location<=>G DataFormat<=> UseDSARCH<=>P GroupLevel<=>3 FileLimit<=>500 ButtonLimit<=>2 DescWeb<=> DescInternal<=> GroupIndex<:>BeginDate<:>EndDate<:>BeginTime<:>EndTime<:> 1<:>1985-01-01<:>2006-12-31<:>00:00:00<:>00:00:59<:> 2<:>1958-01-01<:>2006-12-31<:>00:00:00<:>00:00:59<:> | :ref:`Back to Top ` | :ref:`Back to Table of Contents `