Top Menu

Jump to content
  • downscale
    • View all projects
Home
    • Work packages
    • News
    • Getting started
    • Introduction video
    • Welcome to OpenProject

      Get an overview

      Get a quick overview of project management and team collaboration with OpenProject.
      You can restart this video from the help menu

    • Help and support
    • Upgrade to Enterprise Edition
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Professional support

    • Additional resources
    • Data privacy and security policy
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation
  • Sign in
      Forgot your password?

Side Menu

  • Overview
  • Activity
  • Work packages
  • News
  • Repository
  • You are here:Wiki main page
    • Table of contents
      • Hierarchy leafGravimetric humidity bias on 2008-04-07, 05 UTC
      • Expanded. Click to collapseCollapsed. Click to showWiki main page
        • Expanded. Click to collapseCollapsed. Click to showCoarse data
          • Hierarchy leafCoarse external data
          • Hierarchy leafIntroduction of new data
          • Hierarchy leafTemperature
        • Hierarchy leafDependencies
        • Expanded. Click to collapseCollapsed. Click to showExchange of variable fields
          • Hierarchy leafnamcouple
          • Expanded. Click to collapseCollapsed. Click to showSchomburg scheme
            • Expanded. Click to collapseCollapsed. Click to showSchomburg rules
              • Hierarchy leafSchomburg rule
        • Expanded. Click to collapseCollapsed. Click to showFine data
          • Hierarchy leafEstimated resolutions
          • Expanded. Click to collapseCollapsed. Click to showFine external data from the Climate Limited-area Modeling community
            • Hierarchy leafDivided by 7
            • Hierarchy leafEmulation of the test data resolution
          • Hierarchy leafSRTM data
        • Hierarchy leafIntroduction
        • Hierarchy leafLiterature
        • Expanded. Click to collapseCollapsed. Click to showModel1
          • Hierarchy leafDeprecated dummy data
          • Hierarchy leafDummy coordinates
          • Hierarchy leafProcessing
          • Expanded. Click to collapseCollapsed. Click to showRead_grib1
            • Hierarchy leafEccodes_handler
        • Hierarchy leafNaming schemes
        • Hierarchy leafOASIS3
        • Hierarchy leafPrivacy policy
        • Hierarchy leafTitle page
        • Expanded. Click to collapseCollapsed. Click to showValidation
          • Expanded. Click to collapseCollapsed. Click to showPreservation of the sub-scale average
            • Expanded. Click to collapseCollapsed. Click to showBias anecdote for gravimetric humidity
              • Hierarchy leafGravimetric humidity bias on 2008-04-04, 18 UTC
            • Expanded. Click to collapseCollapsed. Click to showBias anecdote for surface pressure
              • Hierarchy leafSurface pressure bias on 2008-04-04, 18UTC
              • Hierarchy leafSurface pressure bias on 2008-04-07, 05UTC
            • Expanded. Click to collapseCollapsed. Click to showBias anecdote for temperature
              • Hierarchy leafTemperature bias on 2008-04-07, 05UTC
              • Hierarchy leafTemperature bias on 2008-04-04, 18UTC
            • Hierarchy leafgrib2bin.pl
          • Hierarchy leafSpatial average and variance before and after downscaling
        • Expanded. Click to collapseCollapsed. Click to showWhat the Community Land Model requires
          • Hierarchy leafsva_DWD_forcing.ncl
You are here:
  • Wiki main page
  • Coarse data
  • Introduction of new data

Content

Introduction of new data

  • More
    • Table of contents

At the moment, all data specs are hard-coded into model1, model2, cosmopath, sec2date, read_grib1, and namcouple. The only exception is a pre-processor in the demo benchmark test case.

The introduction of new data is principally a matter of changing source directories. Read_grib1 crops a portion from the supplied field, which introduces another degree of freedom. Thirdly, sec2date converts the model time in seconds since the beginning of the run into calendar dates, and defines when this beginning takes place. Finally, OASIS3’s name list namcouple as well as model1 and model2 must know the total model time. With the exception of the demo benchmark test case, all active variable inputs are expected to be in Grib format.

Running the demo benchmark test case

A shell variable in job_script.sh, CPPKEYGRIB, operates a pre-processor which automatically introduces the data for the demo benchmark test case. CPPKEYGRIB needs to be anything but ‘GRIB’ in this case. The only place it does not reach is OASIS3’s namcouple, so there is a prepared name list:

downscale/data_oasis3/nc-namcouple

It only needs the new name namcouple and the algorithm can access it correctly. It may pay to make a back-up copy of the old file:

downscale/data_oasis3/namcouple

New source directories

Model1, read_grib1 and namcouple do not contain directories subject to change. Inconsequentially, read_grib1 creates Grib indices for itself in the working directory.

Model2

The variable ‘file_name’ holds the relevant data path. It must point to the fine external data in the NetCDF, just like in the demo benchmark test case. Just below the header with all the declarations, there is a convenient IF-clause where it can be changed without upsetting the pre-processor switch for the demo benchmark test case.

Temporal adjustment

namcouple

The namcouple needs to know to the total model time in seconds and the coupling time period, the inverse of the coupling frequency. Please refer to the dedicated section.

Model1

In model1, there is a variable called ‘nnn’ which specifies the expected time steps. Please consider changing it in the 1st IF-clause below the header as opposed to in the header with the declaration. The specs in the declaration facilitate the easy switch to the demo benchmark test case. There is a parameter there which you might consider changing, called ‘DELTA_T’. It defines the length of the time step in seconds, an important information for OASIS3 and the sub-directory structure of the input and output data in the Grib case.

Model2

In model2, as the brother of model1, there also are variables called ‘nnn’ and ‘delta_t’ and the recommended IF-clause. It is highlighted by the comments ‘!HEADER APPENDIX.’ and ‘!Dear user,’.

Sec2date

With the information supplied to model1 and model2, sec2date finds the appropriate time stamp. Since the time stamp is a calendar date, it also has to define a beginning, currently midnight between New Year’s eve and New Year’s day, 0 UTC, 2008. The subroutine’s parameter OFFSET is added to the given time. This allows for choosing another start date within 2008.

Loading...