<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://ccrm.vims.edu/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Jan</id>
	<title>ccrmwiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://ccrm.vims.edu/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Jan"/>
	<link rel="alternate" type="text/html" href="http://ccrm.vims.edu/w/index.php/Special:Contributions/Jan"/>
	<updated>2026-05-06T07:48:47Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.31.1</generator>
	<entry>
		<id>http://ccrm.vims.edu/w/index.php?title=Tsunami_simulation&amp;diff=705</id>
		<title>Tsunami simulation</title>
		<link rel="alternate" type="text/html" href="http://ccrm.vims.edu/w/index.php?title=Tsunami_simulation&amp;diff=705"/>
		<updated>2013-07-24T11:18:40Z</updated>

		<summary type="html">&lt;p&gt;Jan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A sample tsunami run (impact of Alaska tsunami waves on Cannon Beach, OR) can be downloaded [http://www.ccrm.vims.edu/yinglong/wiki_files/tsunami_ex15.tgz here]. Note that the files are compatible with the serial version of SELFE, but the idea for parallel version is similar.&lt;br /&gt;
&lt;br /&gt;
Typically you need to follow these 2 steps in tsunami simulations:&lt;br /&gt;
&amp;lt;OL&amp;gt;&lt;br /&gt;
  &amp;lt;LI&amp;gt; Deformation run (EX15/Def/ in the sample run): this simulates the earthquake and the set-up of the initial surface&lt;br /&gt;
       waves. For this you need:&lt;br /&gt;
*bdef.gr3 (refer to the user manual) which specifies the total seafloor deformation.&lt;br /&gt;
*turn on hotout, dt=1s, 10 steps, rnday=1.158e-4&lt;br /&gt;
*We typically run this stage for 10 sec duration and at the end of the run you'll find an output files called 10_hotstart which is then used as hotstart.in for the next (propagation and inundation) stage.&lt;br /&gt;
*In addition, use mod_depth.f (inside the bundle), which takes info in bdef.gr3 and hgrid.gr3 (pre-earthquake depths) to generate hgrid.new (post-earthquake depths). The latter is used in the next stage. For completeness you need to attach the boundary condition part (b.tmp in the bundle) of hgrid.gr3 to the end of hgrid.new;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;LI&amp;gt; Propagation and inundation stage (EX15/ in the sample run): this run continues from the deformation&lt;br /&gt;
      run above with no further seafloor movement. You'll notice that many input files are identical&lt;br /&gt;
      to the Def/ run, but be careful of differences in hgrid.gr3 (linked to Def/hgrid.new) and param.in&lt;br /&gt;
      (imm=0 etc).&lt;br /&gt;
*For this run we also turn off the advection in the open ocean (up to say 20m isobath) because it's negligible there (adv.gr3) - see for info on CFL number.&lt;br /&gt;
*Also note that hotstart.in is from the previous stage. A relatively small time step of 1 sec (by SELFE standard) is used because of the constraint from inundation stage.&lt;br /&gt;
      The operational time step for tsunami applications is generally in the range of a few seconds.&lt;br /&gt;
      The inundation results may also be sensitive to the min. depth used in the run (1cm in this example).&lt;br /&gt;
      Also since only 2 S layers are used in the vertical (quasi-2D mode) we set the bottom friction to 0.&lt;br /&gt;
     If you have to use non-zero friction you'll need to use more layers and make sure the bottom boundary&lt;br /&gt;
     layer is resolved. If you use the recent parallel version, you can simply use a 2D model with a proper Manning coefficient.&lt;br /&gt;
  &amp;lt;LI&amp;gt; After the run is done you can look at global outputs (elevation, depth-averaged velocity etc).&lt;br /&gt;
       The maximum elevation (maxelev.gr3) and depth-averaged velocity (maxdahv.gr3) are also part of the&lt;br /&gt;
       outputs (for parallel versions, use trunk/src/Utility/Combining_Scripts/combine_gr3.f90). The maximum inundation can be computed from maxelev.gr3.&lt;br /&gt;
&amp;lt;/OL&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jan</name></author>
		
	</entry>
	<entry>
		<id>http://ccrm.vims.edu/w/index.php?title=Tsunami_simulation&amp;diff=704</id>
		<title>Tsunami simulation</title>
		<link rel="alternate" type="text/html" href="http://ccrm.vims.edu/w/index.php?title=Tsunami_simulation&amp;diff=704"/>
		<updated>2013-07-24T08:33:33Z</updated>

		<summary type="html">&lt;p&gt;Jan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A sample tsunami run (impact of Alaska tsunami waves on Cannon Beach, OR) can be downloaded [http://www.ccrm.vims.edu/yinglong/wiki_files/tsunami_ex15.tgz here]. Note that the files are compatible with the serial version of SELFE, but the idea for parallel version is similar.&lt;br /&gt;
&lt;br /&gt;
Typically you need to follow these 2 steps in tsunami simulations:&lt;br /&gt;
&amp;lt;OL&amp;gt;&lt;br /&gt;
  &amp;lt;LI&amp;gt; Deformation run (EX15/Def/ in the sample run): this simulates the earthquake and the set-up of the initial surface&lt;br /&gt;
       waves. For this you need:&lt;br /&gt;
*bdef.gr3 (refer to the user manual) which specifies the total seafloor deformation.&lt;br /&gt;
*turn on hotout, dt=1s, 10 steps, rnday=1.158e-4&lt;br /&gt;
*We typically run this stage for 10 sec duration and at the end of the run you'll find an output files called 10_hotstart which is then used as hotstart.in for the next (propagation and inundation) stage.&lt;br /&gt;
*In addition, use mod_depth.f (inside the bundle), which takes info in bdef.gr3 and hgrid.gr3 (pre-earthquake depths) to generate hgrid.new (post-earthquake depths). The latter is used in the next stage. For completeness you need to attach the boundary condition part (b.tmp in the bundle) of hgrid.gr3 to the end of hgrid.new;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;LI&amp;gt; Propagation and inundation stage (EX15/ in the sample run): this run continues from the deformation&lt;br /&gt;
      run above with no further seafloor movement. You'll notice that many input files are identical&lt;br /&gt;
      to the Def/ run, but be careful of differences in hgrid.gr3 (linked to Def/hgrid.new) and param.in&lt;br /&gt;
      (imm=0 etc). For this run we also turn off the advection in the open ocean (up to say 20m isobath) because it's negligible&lt;br /&gt;
      there (adv.gr3) - see for info on CFL number. Also note that hotstart.in is from the previous stage. A relatively small&lt;br /&gt;
      time step of 1 sec (by SELFE standard) is used because of the constraint from inundation stage.&lt;br /&gt;
      The operational time step for tsunami applications is generally in the range of a few seconds.&lt;br /&gt;
      The inundation results may also be sensitive to the min. depth used in the run (1cm in this example).&lt;br /&gt;
      Also since only 2 S layers are used in the vertical (quasi-2D mode) we set the bottom friction to 0.&lt;br /&gt;
     If you have to use non-zero friction you'll need to use more layers and make sure the bottom boundary&lt;br /&gt;
     layer is resolved. If you use the recent parallel version, you can simply use a 2D model with a proper Manning coefficient.&lt;br /&gt;
  &amp;lt;LI&amp;gt; After the run is done you can look at global outputs (elevation, depth-averaged velocity etc).&lt;br /&gt;
       The maximum elevation (maxelev.gr3) and depth-averaged velocity (maxdahv.gr3) are also part of the&lt;br /&gt;
       outputs (for parallel versions, use trunk/src/Utility/Combining_Scripts/combine_gr3.f90). The maximum inundation can be computed from maxelev.gr3.&lt;br /&gt;
&amp;lt;/OL&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jan</name></author>
		
	</entry>
	<entry>
		<id>http://ccrm.vims.edu/w/index.php?title=Atmospheric_forcing&amp;diff=601</id>
		<title>Atmospheric forcing</title>
		<link rel="alternate" type="text/html" href="http://ccrm.vims.edu/w/index.php?title=Atmospheric_forcing&amp;diff=601"/>
		<updated>2013-01-31T13:28:05Z</updated>

		<summary type="html">&lt;p&gt;Jan: /* prc-files (displayed using the ncdump utility) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Theory==&lt;br /&gt;
&lt;br /&gt;
[http://ccrm.vims.edu/yinglong/wiki_files/HeatExchange-Theory.pdf Here] is some info about the heat exchange module inside SELFE, based on Dr. Mike Zuluaf's slides. &lt;br /&gt;
&lt;br /&gt;
==File description==&lt;br /&gt;
In SELFE, atmoserpic forcings include wind, air pressure and temperature, precipitation, humidity and longwave and shortwave fluxes. These are specified in the netcdf files inside sflux/ dir, and conform to the [http://cf-pcmdi.llnl.gov/documents/cf-conventions/1.0/cf-conventions.html NetCDF Climate and Forecast (CF) Metadata Convention 1.0].&lt;br /&gt;
&lt;br /&gt;
There are 4 types of files in sflux/dir; see [http://www.stccmop.org/CORIE/modeling/selfe/NARR/narr.html this site] for sample files.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;OL&amp;gt;&lt;br /&gt;
  &amp;lt;LI&amp;gt;sflux_inputs.txt: &amp;lt;br/&amp;gt;&lt;br /&gt;
$cat sflux_inputs.txt &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;amp;sflux_inputs   ! file name &amp;lt;br/&amp;gt;&lt;br /&gt;
start_year  = 1998, ! start year &amp;lt;br/&amp;gt;&lt;br /&gt;
start_month = 09, ! start month &amp;lt;br/&amp;gt;&lt;br /&gt;
start_day   = 01, ! start day &amp;lt;br/&amp;gt;&lt;br /&gt;
start_hour  = 0.0, ! start hour &amp;lt;br/&amp;gt;&lt;br /&gt;
utc_start   = 0.0, ! offset from UTC in hours, with positive numbers for western hemishpere &amp;lt;br/&amp;gt;&lt;br /&gt;
/ &amp;lt;br/&amp;gt;&lt;br /&gt;
  &amp;lt;LI&amp;gt;sflux_air_1.0*.nc: netcdf files that have time, wind speed, air temperature and pressure and specific humidity;&lt;br /&gt;
  &amp;lt;LI&amp;gt;sflux_prc_1.0*.nc: netcdf files that have precipitation data; &lt;br /&gt;
  &amp;lt;LI&amp;gt;sflux_rad_1.0*.nc: netcdf files that have downward long and short (solar) wave radiation fluxes.&lt;br /&gt;
&amp;lt;/OL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Using NARR files for your simulation (North America only)==&lt;br /&gt;
&lt;br /&gt;
 First, make sure the  [http://ccrm.vims.edu/yinglong/wiki_files/narr.ll NARR grid] covers your hgrid.ll. &lt;br /&gt;
&lt;br /&gt;
In your run directory, mkdir sflux and inside it, create symbolic links to the NARR files. e.g., if you run starts from June 10, 2004 and ends June 20, 2004, then&lt;br /&gt;
&lt;br /&gt;
sflux_air_1.001.nc --&amp;gt; narr_air.2004_06_10.nc&amp;lt;br/&amp;gt;&lt;br /&gt;
sflux_air_1.002.nc --&amp;gt; narr_air.2004_06_11.nc&amp;lt;br/&amp;gt;&lt;br /&gt;
...&amp;lt;br/&amp;gt;&lt;br /&gt;
sflux_air_1.011.nc --&amp;gt; narr_air.2004_06_20.nc&amp;lt;br/&amp;gt;&lt;br /&gt;
sflux_air_1.012.nc --&amp;gt; narr_air.2004_06_21.nc (extra day to account for time zone difference)&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Similarly for sflux_rad_*.nc and sflux_prc_*.nc. The number &amp;quot;1&amp;quot; after &amp;quot;air_&amp;quot; denotes first data set used; you can use up to 2 sets in SELFE (which combines them with some given weights set in sflux_subs.F90); here you only use 1 set.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Don't forget to update sflux_inputs.txt also.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Preparing your own sflux inputs==&lt;br /&gt;
&lt;br /&gt;
After familiarize yourself with the NARR files and their format, you may embark on creating your own nc files. The best way is to modify existing matlab scripts (src/Utility/Sflux_nc/readnc*.m) included in the source code bundle, which have extensively in-line comments to guide you along the way.&lt;br /&gt;
&lt;br /&gt;
'''Conventions for .nc-files in sflux directory and additional files needed for sflux run:'''&lt;br /&gt;
&lt;br /&gt;
'''wind:''' u-component is eastward, v-comp. is northward (normal math convention, not compass convention)&lt;br /&gt;
&lt;br /&gt;
'''windrot_geo2proj.gr3:''' rotates winds in case they do not align with coordinate axes,&lt;br /&gt;
i.e. lat/lon&lt;br /&gt;
&lt;br /&gt;
'''watertype.gr3:''' 6 is clear water, 7 is muddiest. Search in selfe_init.F90 for watertype.&lt;br /&gt;
===air-files (header displayed using the ncdump utility)===&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 netcdf sflux_air_1.001 {&lt;br /&gt;
 dimensions:&lt;br /&gt;
         nx_grid = 349 ;&lt;br /&gt;
         ny_grid = 277 ;&lt;br /&gt;
         time = UNLIMITED ; // (8 currently)&lt;br /&gt;
 variables:&lt;br /&gt;
         float time(time) ;&lt;br /&gt;
                 time:long_name = &amp;quot;Time&amp;quot; ;&lt;br /&gt;
                 time:standard_name = &amp;quot;time&amp;quot; ;&lt;br /&gt;
                 time:units = &amp;quot;days since 2001-01-01&amp;quot; ;&lt;br /&gt;
                 time:base_date = 2001, 1, 1, 0 ;&lt;br /&gt;
         float lon(ny_grid, nx_grid) ;&lt;br /&gt;
                 lon:long_name = &amp;quot;Longitude&amp;quot; ;&lt;br /&gt;
                 lon:standard_name = &amp;quot;longitude&amp;quot; ;&lt;br /&gt;
                 lon:units = &amp;quot;degrees_east&amp;quot; ;&lt;br /&gt;
         float lat(ny_grid, nx_grid) ;&lt;br /&gt;
                 lat:long_name = &amp;quot;Latitude&amp;quot; ;&lt;br /&gt;
                 lat:standard_name = &amp;quot;latitude&amp;quot; ;&lt;br /&gt;
                 lat:units = &amp;quot;degrees_north&amp;quot; ;&lt;br /&gt;
         float uwind(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 uwind:long_name = &amp;quot;Surface Eastward Air Velocity (10m AGL)&amp;quot; ;&lt;br /&gt;
                 uwind:standard_name = &amp;quot;eastward_wind&amp;quot; ;&lt;br /&gt;
                 uwind:units = &amp;quot;m/s&amp;quot; ;&lt;br /&gt;
         float vwind(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 vwind:long_name = &amp;quot;Surface Northward Air Velocity (10m AGL)&amp;quot; ;&lt;br /&gt;
                 vwind:standard_name = &amp;quot;northward_wind&amp;quot; ;&lt;br /&gt;
                 vwind:units = &amp;quot;m/s&amp;quot; ;&lt;br /&gt;
         float prmsl(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 prmsl:long_name = &amp;quot;Pressure reduced to MSL&amp;quot; ;&lt;br /&gt;
                 prmsl:standard_name = &amp;quot;air_pressure_at_sea_level&amp;quot; ;&lt;br /&gt;
                 prmsl:units = &amp;quot;Pa&amp;quot; ;&lt;br /&gt;
         float stmp(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 stmp:long_name = &amp;quot;Surface Air Temperature (2m AGL)&amp;quot; ;&lt;br /&gt;
                 stmp:standard_name = &amp;quot;air_temperature&amp;quot; ;&lt;br /&gt;
                 stmp:units = &amp;quot;K&amp;quot; ;&lt;br /&gt;
         float spfh(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 spfh:long_name = &amp;quot;Surface Specific Humidity (2m AGL)&amp;quot; ;&lt;br /&gt;
                 spfh:standard_name = &amp;quot;specific_humidity&amp;quot; ;&lt;br /&gt;
                 spfh:units = &amp;quot;1&amp;quot; ;&lt;br /&gt;
 &lt;br /&gt;
 // global attributes:&lt;br /&gt;
                 :Conventions = &amp;quot;CF-1.0&amp;quot; ;&lt;br /&gt;
 }&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===rad-files (header displayed using the ncdump utility)===&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 netcdf sflux_rad_1.001 {&lt;br /&gt;
 dimensions:&lt;br /&gt;
         nx_grid = 349 ;&lt;br /&gt;
         ny_grid = 277 ;&lt;br /&gt;
         time = UNLIMITED ; // (8 currently)&lt;br /&gt;
 variables:&lt;br /&gt;
         float time(time) ;&lt;br /&gt;
                 time:long_name = &amp;quot;Time&amp;quot; ;&lt;br /&gt;
                 time:standard_name = &amp;quot;time&amp;quot; ;&lt;br /&gt;
                 time:units = &amp;quot;days since 2001-01-01&amp;quot; ;&lt;br /&gt;
                 time:base_date = 2001, 1, 1, 0 ;&lt;br /&gt;
         float lon(ny_grid, nx_grid) ;&lt;br /&gt;
                 lon:long_name = &amp;quot;Longitude&amp;quot; ;&lt;br /&gt;
                 lon:standard_name = &amp;quot;longitude&amp;quot; ;&lt;br /&gt;
                 lon:units = &amp;quot;degrees_east&amp;quot; ;&lt;br /&gt;
         float lat(ny_grid, nx_grid) ;&lt;br /&gt;
                 lat:long_name = &amp;quot;Latitude&amp;quot; ;&lt;br /&gt;
                 lat:standard_name = &amp;quot;latitude&amp;quot; ;&lt;br /&gt;
                 lat:units = &amp;quot;degrees_north&amp;quot; ;&lt;br /&gt;
         float dlwrf(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 dlwrf:long_name = &amp;quot;Downward Long Wave Radiation Flux&amp;quot; ;&lt;br /&gt;
                 dlwrf:standard_name = &amp;quot;surface_downwelling_longwave_flux_in_air&amp;quot; ;&lt;br /&gt;
                 dlwrf:units = &amp;quot;W/m^2&amp;quot; ;&lt;br /&gt;
         float dswrf(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 dswrf:long_name = &amp;quot;Downward Short Wave Radiation Flux&amp;quot; ;&lt;br /&gt;
                 dswrf:standard_name = &amp;quot;surface_downwelling_shortwave_flux_in_air&amp;quot; ;&lt;br /&gt;
                 dswrf:units = &amp;quot;W/m^2&amp;quot; ;&lt;br /&gt;
 &lt;br /&gt;
 // global attributes:&lt;br /&gt;
                 :Conventions = &amp;quot;CF-1.0&amp;quot; ;&lt;br /&gt;
 }&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===prc-files (header displayed using the ncdump utility)===&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 netcdf sflux_prc_1.001 {&lt;br /&gt;
 dimensions:&lt;br /&gt;
         nx_grid = 349 ;&lt;br /&gt;
         ny_grid = 277 ;&lt;br /&gt;
         time = UNLIMITED ; // (8 currently)&lt;br /&gt;
 variables:&lt;br /&gt;
         float time(time) ;&lt;br /&gt;
                 time:long_name = &amp;quot;Time&amp;quot; ;&lt;br /&gt;
                 time:standard_name = &amp;quot;time&amp;quot; ;&lt;br /&gt;
                 time:units = &amp;quot;days since 2001-01-01&amp;quot; ;&lt;br /&gt;
                 time:base_date = 2001, 1, 1, 0 ;&lt;br /&gt;
         float lon(ny_grid, nx_grid) ;&lt;br /&gt;
                 lon:long_name = &amp;quot;Longitude&amp;quot; ;&lt;br /&gt;
                 lon:standard_name = &amp;quot;longitude&amp;quot; ;&lt;br /&gt;
                 lon:units = &amp;quot;degrees_east&amp;quot; ;&lt;br /&gt;
         float lat(ny_grid, nx_grid) ;&lt;br /&gt;
                 lat:long_name = &amp;quot;Latitude&amp;quot; ;&lt;br /&gt;
                 lat:standard_name = &amp;quot;latitude&amp;quot; ;&lt;br /&gt;
                 lat:units = &amp;quot;degrees_north&amp;quot; ;&lt;br /&gt;
         float prate(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 prate:long_name = &amp;quot;Surface Precipitation Rate&amp;quot; ;&lt;br /&gt;
                 prate:standard_name = &amp;quot;precipitation_flux&amp;quot; ;&lt;br /&gt;
                 prate:units = &amp;quot;kg/m^2/s&amp;quot; ;&lt;br /&gt;
 &lt;br /&gt;
 // global attributes:&lt;br /&gt;
                 :Conventions = &amp;quot;CF-1.0&amp;quot; ;&lt;br /&gt;
 }&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jan</name></author>
		
	</entry>
	<entry>
		<id>http://ccrm.vims.edu/w/index.php?title=Atmospheric_forcing&amp;diff=600</id>
		<title>Atmospheric forcing</title>
		<link rel="alternate" type="text/html" href="http://ccrm.vims.edu/w/index.php?title=Atmospheric_forcing&amp;diff=600"/>
		<updated>2013-01-31T13:27:58Z</updated>

		<summary type="html">&lt;p&gt;Jan: /* rad-files (displayed using the ncdump utility) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Theory==&lt;br /&gt;
&lt;br /&gt;
[http://ccrm.vims.edu/yinglong/wiki_files/HeatExchange-Theory.pdf Here] is some info about the heat exchange module inside SELFE, based on Dr. Mike Zuluaf's slides. &lt;br /&gt;
&lt;br /&gt;
==File description==&lt;br /&gt;
In SELFE, atmoserpic forcings include wind, air pressure and temperature, precipitation, humidity and longwave and shortwave fluxes. These are specified in the netcdf files inside sflux/ dir, and conform to the [http://cf-pcmdi.llnl.gov/documents/cf-conventions/1.0/cf-conventions.html NetCDF Climate and Forecast (CF) Metadata Convention 1.0].&lt;br /&gt;
&lt;br /&gt;
There are 4 types of files in sflux/dir; see [http://www.stccmop.org/CORIE/modeling/selfe/NARR/narr.html this site] for sample files.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;OL&amp;gt;&lt;br /&gt;
  &amp;lt;LI&amp;gt;sflux_inputs.txt: &amp;lt;br/&amp;gt;&lt;br /&gt;
$cat sflux_inputs.txt &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;amp;sflux_inputs   ! file name &amp;lt;br/&amp;gt;&lt;br /&gt;
start_year  = 1998, ! start year &amp;lt;br/&amp;gt;&lt;br /&gt;
start_month = 09, ! start month &amp;lt;br/&amp;gt;&lt;br /&gt;
start_day   = 01, ! start day &amp;lt;br/&amp;gt;&lt;br /&gt;
start_hour  = 0.0, ! start hour &amp;lt;br/&amp;gt;&lt;br /&gt;
utc_start   = 0.0, ! offset from UTC in hours, with positive numbers for western hemishpere &amp;lt;br/&amp;gt;&lt;br /&gt;
/ &amp;lt;br/&amp;gt;&lt;br /&gt;
  &amp;lt;LI&amp;gt;sflux_air_1.0*.nc: netcdf files that have time, wind speed, air temperature and pressure and specific humidity;&lt;br /&gt;
  &amp;lt;LI&amp;gt;sflux_prc_1.0*.nc: netcdf files that have precipitation data; &lt;br /&gt;
  &amp;lt;LI&amp;gt;sflux_rad_1.0*.nc: netcdf files that have downward long and short (solar) wave radiation fluxes.&lt;br /&gt;
&amp;lt;/OL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Using NARR files for your simulation (North America only)==&lt;br /&gt;
&lt;br /&gt;
 First, make sure the  [http://ccrm.vims.edu/yinglong/wiki_files/narr.ll NARR grid] covers your hgrid.ll. &lt;br /&gt;
&lt;br /&gt;
In your run directory, mkdir sflux and inside it, create symbolic links to the NARR files. e.g., if you run starts from June 10, 2004 and ends June 20, 2004, then&lt;br /&gt;
&lt;br /&gt;
sflux_air_1.001.nc --&amp;gt; narr_air.2004_06_10.nc&amp;lt;br/&amp;gt;&lt;br /&gt;
sflux_air_1.002.nc --&amp;gt; narr_air.2004_06_11.nc&amp;lt;br/&amp;gt;&lt;br /&gt;
...&amp;lt;br/&amp;gt;&lt;br /&gt;
sflux_air_1.011.nc --&amp;gt; narr_air.2004_06_20.nc&amp;lt;br/&amp;gt;&lt;br /&gt;
sflux_air_1.012.nc --&amp;gt; narr_air.2004_06_21.nc (extra day to account for time zone difference)&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Similarly for sflux_rad_*.nc and sflux_prc_*.nc. The number &amp;quot;1&amp;quot; after &amp;quot;air_&amp;quot; denotes first data set used; you can use up to 2 sets in SELFE (which combines them with some given weights set in sflux_subs.F90); here you only use 1 set.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Don't forget to update sflux_inputs.txt also.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Preparing your own sflux inputs==&lt;br /&gt;
&lt;br /&gt;
After familiarize yourself with the NARR files and their format, you may embark on creating your own nc files. The best way is to modify existing matlab scripts (src/Utility/Sflux_nc/readnc*.m) included in the source code bundle, which have extensively in-line comments to guide you along the way.&lt;br /&gt;
&lt;br /&gt;
'''Conventions for .nc-files in sflux directory and additional files needed for sflux run:'''&lt;br /&gt;
&lt;br /&gt;
'''wind:''' u-component is eastward, v-comp. is northward (normal math convention, not compass convention)&lt;br /&gt;
&lt;br /&gt;
'''windrot_geo2proj.gr3:''' rotates winds in case they do not align with coordinate axes,&lt;br /&gt;
i.e. lat/lon&lt;br /&gt;
&lt;br /&gt;
'''watertype.gr3:''' 6 is clear water, 7 is muddiest. Search in selfe_init.F90 for watertype.&lt;br /&gt;
===air-files (header displayed using the ncdump utility)===&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 netcdf sflux_air_1.001 {&lt;br /&gt;
 dimensions:&lt;br /&gt;
         nx_grid = 349 ;&lt;br /&gt;
         ny_grid = 277 ;&lt;br /&gt;
         time = UNLIMITED ; // (8 currently)&lt;br /&gt;
 variables:&lt;br /&gt;
         float time(time) ;&lt;br /&gt;
                 time:long_name = &amp;quot;Time&amp;quot; ;&lt;br /&gt;
                 time:standard_name = &amp;quot;time&amp;quot; ;&lt;br /&gt;
                 time:units = &amp;quot;days since 2001-01-01&amp;quot; ;&lt;br /&gt;
                 time:base_date = 2001, 1, 1, 0 ;&lt;br /&gt;
         float lon(ny_grid, nx_grid) ;&lt;br /&gt;
                 lon:long_name = &amp;quot;Longitude&amp;quot; ;&lt;br /&gt;
                 lon:standard_name = &amp;quot;longitude&amp;quot; ;&lt;br /&gt;
                 lon:units = &amp;quot;degrees_east&amp;quot; ;&lt;br /&gt;
         float lat(ny_grid, nx_grid) ;&lt;br /&gt;
                 lat:long_name = &amp;quot;Latitude&amp;quot; ;&lt;br /&gt;
                 lat:standard_name = &amp;quot;latitude&amp;quot; ;&lt;br /&gt;
                 lat:units = &amp;quot;degrees_north&amp;quot; ;&lt;br /&gt;
         float uwind(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 uwind:long_name = &amp;quot;Surface Eastward Air Velocity (10m AGL)&amp;quot; ;&lt;br /&gt;
                 uwind:standard_name = &amp;quot;eastward_wind&amp;quot; ;&lt;br /&gt;
                 uwind:units = &amp;quot;m/s&amp;quot; ;&lt;br /&gt;
         float vwind(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 vwind:long_name = &amp;quot;Surface Northward Air Velocity (10m AGL)&amp;quot; ;&lt;br /&gt;
                 vwind:standard_name = &amp;quot;northward_wind&amp;quot; ;&lt;br /&gt;
                 vwind:units = &amp;quot;m/s&amp;quot; ;&lt;br /&gt;
         float prmsl(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 prmsl:long_name = &amp;quot;Pressure reduced to MSL&amp;quot; ;&lt;br /&gt;
                 prmsl:standard_name = &amp;quot;air_pressure_at_sea_level&amp;quot; ;&lt;br /&gt;
                 prmsl:units = &amp;quot;Pa&amp;quot; ;&lt;br /&gt;
         float stmp(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 stmp:long_name = &amp;quot;Surface Air Temperature (2m AGL)&amp;quot; ;&lt;br /&gt;
                 stmp:standard_name = &amp;quot;air_temperature&amp;quot; ;&lt;br /&gt;
                 stmp:units = &amp;quot;K&amp;quot; ;&lt;br /&gt;
         float spfh(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 spfh:long_name = &amp;quot;Surface Specific Humidity (2m AGL)&amp;quot; ;&lt;br /&gt;
                 spfh:standard_name = &amp;quot;specific_humidity&amp;quot; ;&lt;br /&gt;
                 spfh:units = &amp;quot;1&amp;quot; ;&lt;br /&gt;
 &lt;br /&gt;
 // global attributes:&lt;br /&gt;
                 :Conventions = &amp;quot;CF-1.0&amp;quot; ;&lt;br /&gt;
 }&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===rad-files (header displayed using the ncdump utility)===&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 netcdf sflux_rad_1.001 {&lt;br /&gt;
 dimensions:&lt;br /&gt;
         nx_grid = 349 ;&lt;br /&gt;
         ny_grid = 277 ;&lt;br /&gt;
         time = UNLIMITED ; // (8 currently)&lt;br /&gt;
 variables:&lt;br /&gt;
         float time(time) ;&lt;br /&gt;
                 time:long_name = &amp;quot;Time&amp;quot; ;&lt;br /&gt;
                 time:standard_name = &amp;quot;time&amp;quot; ;&lt;br /&gt;
                 time:units = &amp;quot;days since 2001-01-01&amp;quot; ;&lt;br /&gt;
                 time:base_date = 2001, 1, 1, 0 ;&lt;br /&gt;
         float lon(ny_grid, nx_grid) ;&lt;br /&gt;
                 lon:long_name = &amp;quot;Longitude&amp;quot; ;&lt;br /&gt;
                 lon:standard_name = &amp;quot;longitude&amp;quot; ;&lt;br /&gt;
                 lon:units = &amp;quot;degrees_east&amp;quot; ;&lt;br /&gt;
         float lat(ny_grid, nx_grid) ;&lt;br /&gt;
                 lat:long_name = &amp;quot;Latitude&amp;quot; ;&lt;br /&gt;
                 lat:standard_name = &amp;quot;latitude&amp;quot; ;&lt;br /&gt;
                 lat:units = &amp;quot;degrees_north&amp;quot; ;&lt;br /&gt;
         float dlwrf(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 dlwrf:long_name = &amp;quot;Downward Long Wave Radiation Flux&amp;quot; ;&lt;br /&gt;
                 dlwrf:standard_name = &amp;quot;surface_downwelling_longwave_flux_in_air&amp;quot; ;&lt;br /&gt;
                 dlwrf:units = &amp;quot;W/m^2&amp;quot; ;&lt;br /&gt;
         float dswrf(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 dswrf:long_name = &amp;quot;Downward Short Wave Radiation Flux&amp;quot; ;&lt;br /&gt;
                 dswrf:standard_name = &amp;quot;surface_downwelling_shortwave_flux_in_air&amp;quot; ;&lt;br /&gt;
                 dswrf:units = &amp;quot;W/m^2&amp;quot; ;&lt;br /&gt;
 &lt;br /&gt;
 // global attributes:&lt;br /&gt;
                 :Conventions = &amp;quot;CF-1.0&amp;quot; ;&lt;br /&gt;
 }&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===prc-files (displayed using the ncdump utility)===&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 netcdf sflux_prc_1.001 {&lt;br /&gt;
 dimensions:&lt;br /&gt;
         nx_grid = 349 ;&lt;br /&gt;
         ny_grid = 277 ;&lt;br /&gt;
         time = UNLIMITED ; // (8 currently)&lt;br /&gt;
 variables:&lt;br /&gt;
         float time(time) ;&lt;br /&gt;
                 time:long_name = &amp;quot;Time&amp;quot; ;&lt;br /&gt;
                 time:standard_name = &amp;quot;time&amp;quot; ;&lt;br /&gt;
                 time:units = &amp;quot;days since 2001-01-01&amp;quot; ;&lt;br /&gt;
                 time:base_date = 2001, 1, 1, 0 ;&lt;br /&gt;
         float lon(ny_grid, nx_grid) ;&lt;br /&gt;
                 lon:long_name = &amp;quot;Longitude&amp;quot; ;&lt;br /&gt;
                 lon:standard_name = &amp;quot;longitude&amp;quot; ;&lt;br /&gt;
                 lon:units = &amp;quot;degrees_east&amp;quot; ;&lt;br /&gt;
         float lat(ny_grid, nx_grid) ;&lt;br /&gt;
                 lat:long_name = &amp;quot;Latitude&amp;quot; ;&lt;br /&gt;
                 lat:standard_name = &amp;quot;latitude&amp;quot; ;&lt;br /&gt;
                 lat:units = &amp;quot;degrees_north&amp;quot; ;&lt;br /&gt;
         float prate(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 prate:long_name = &amp;quot;Surface Precipitation Rate&amp;quot; ;&lt;br /&gt;
                 prate:standard_name = &amp;quot;precipitation_flux&amp;quot; ;&lt;br /&gt;
                 prate:units = &amp;quot;kg/m^2/s&amp;quot; ;&lt;br /&gt;
 &lt;br /&gt;
 // global attributes:&lt;br /&gt;
                 :Conventions = &amp;quot;CF-1.0&amp;quot; ;&lt;br /&gt;
 }&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jan</name></author>
		
	</entry>
	<entry>
		<id>http://ccrm.vims.edu/w/index.php?title=Atmospheric_forcing&amp;diff=599</id>
		<title>Atmospheric forcing</title>
		<link rel="alternate" type="text/html" href="http://ccrm.vims.edu/w/index.php?title=Atmospheric_forcing&amp;diff=599"/>
		<updated>2013-01-31T13:27:50Z</updated>

		<summary type="html">&lt;p&gt;Jan: /* air-files (displayed using the ncdump utility) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Theory==&lt;br /&gt;
&lt;br /&gt;
[http://ccrm.vims.edu/yinglong/wiki_files/HeatExchange-Theory.pdf Here] is some info about the heat exchange module inside SELFE, based on Dr. Mike Zuluaf's slides. &lt;br /&gt;
&lt;br /&gt;
==File description==&lt;br /&gt;
In SELFE, atmoserpic forcings include wind, air pressure and temperature, precipitation, humidity and longwave and shortwave fluxes. These are specified in the netcdf files inside sflux/ dir, and conform to the [http://cf-pcmdi.llnl.gov/documents/cf-conventions/1.0/cf-conventions.html NetCDF Climate and Forecast (CF) Metadata Convention 1.0].&lt;br /&gt;
&lt;br /&gt;
There are 4 types of files in sflux/dir; see [http://www.stccmop.org/CORIE/modeling/selfe/NARR/narr.html this site] for sample files.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;OL&amp;gt;&lt;br /&gt;
  &amp;lt;LI&amp;gt;sflux_inputs.txt: &amp;lt;br/&amp;gt;&lt;br /&gt;
$cat sflux_inputs.txt &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;amp;sflux_inputs   ! file name &amp;lt;br/&amp;gt;&lt;br /&gt;
start_year  = 1998, ! start year &amp;lt;br/&amp;gt;&lt;br /&gt;
start_month = 09, ! start month &amp;lt;br/&amp;gt;&lt;br /&gt;
start_day   = 01, ! start day &amp;lt;br/&amp;gt;&lt;br /&gt;
start_hour  = 0.0, ! start hour &amp;lt;br/&amp;gt;&lt;br /&gt;
utc_start   = 0.0, ! offset from UTC in hours, with positive numbers for western hemishpere &amp;lt;br/&amp;gt;&lt;br /&gt;
/ &amp;lt;br/&amp;gt;&lt;br /&gt;
  &amp;lt;LI&amp;gt;sflux_air_1.0*.nc: netcdf files that have time, wind speed, air temperature and pressure and specific humidity;&lt;br /&gt;
  &amp;lt;LI&amp;gt;sflux_prc_1.0*.nc: netcdf files that have precipitation data; &lt;br /&gt;
  &amp;lt;LI&amp;gt;sflux_rad_1.0*.nc: netcdf files that have downward long and short (solar) wave radiation fluxes.&lt;br /&gt;
&amp;lt;/OL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Using NARR files for your simulation (North America only)==&lt;br /&gt;
&lt;br /&gt;
 First, make sure the  [http://ccrm.vims.edu/yinglong/wiki_files/narr.ll NARR grid] covers your hgrid.ll. &lt;br /&gt;
&lt;br /&gt;
In your run directory, mkdir sflux and inside it, create symbolic links to the NARR files. e.g., if you run starts from June 10, 2004 and ends June 20, 2004, then&lt;br /&gt;
&lt;br /&gt;
sflux_air_1.001.nc --&amp;gt; narr_air.2004_06_10.nc&amp;lt;br/&amp;gt;&lt;br /&gt;
sflux_air_1.002.nc --&amp;gt; narr_air.2004_06_11.nc&amp;lt;br/&amp;gt;&lt;br /&gt;
...&amp;lt;br/&amp;gt;&lt;br /&gt;
sflux_air_1.011.nc --&amp;gt; narr_air.2004_06_20.nc&amp;lt;br/&amp;gt;&lt;br /&gt;
sflux_air_1.012.nc --&amp;gt; narr_air.2004_06_21.nc (extra day to account for time zone difference)&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Similarly for sflux_rad_*.nc and sflux_prc_*.nc. The number &amp;quot;1&amp;quot; after &amp;quot;air_&amp;quot; denotes first data set used; you can use up to 2 sets in SELFE (which combines them with some given weights set in sflux_subs.F90); here you only use 1 set.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Don't forget to update sflux_inputs.txt also.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Preparing your own sflux inputs==&lt;br /&gt;
&lt;br /&gt;
After familiarize yourself with the NARR files and their format, you may embark on creating your own nc files. The best way is to modify existing matlab scripts (src/Utility/Sflux_nc/readnc*.m) included in the source code bundle, which have extensively in-line comments to guide you along the way.&lt;br /&gt;
&lt;br /&gt;
'''Conventions for .nc-files in sflux directory and additional files needed for sflux run:'''&lt;br /&gt;
&lt;br /&gt;
'''wind:''' u-component is eastward, v-comp. is northward (normal math convention, not compass convention)&lt;br /&gt;
&lt;br /&gt;
'''windrot_geo2proj.gr3:''' rotates winds in case they do not align with coordinate axes,&lt;br /&gt;
i.e. lat/lon&lt;br /&gt;
&lt;br /&gt;
'''watertype.gr3:''' 6 is clear water, 7 is muddiest. Search in selfe_init.F90 for watertype.&lt;br /&gt;
===air-files (header displayed using the ncdump utility)===&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 netcdf sflux_air_1.001 {&lt;br /&gt;
 dimensions:&lt;br /&gt;
         nx_grid = 349 ;&lt;br /&gt;
         ny_grid = 277 ;&lt;br /&gt;
         time = UNLIMITED ; // (8 currently)&lt;br /&gt;
 variables:&lt;br /&gt;
         float time(time) ;&lt;br /&gt;
                 time:long_name = &amp;quot;Time&amp;quot; ;&lt;br /&gt;
                 time:standard_name = &amp;quot;time&amp;quot; ;&lt;br /&gt;
                 time:units = &amp;quot;days since 2001-01-01&amp;quot; ;&lt;br /&gt;
                 time:base_date = 2001, 1, 1, 0 ;&lt;br /&gt;
         float lon(ny_grid, nx_grid) ;&lt;br /&gt;
                 lon:long_name = &amp;quot;Longitude&amp;quot; ;&lt;br /&gt;
                 lon:standard_name = &amp;quot;longitude&amp;quot; ;&lt;br /&gt;
                 lon:units = &amp;quot;degrees_east&amp;quot; ;&lt;br /&gt;
         float lat(ny_grid, nx_grid) ;&lt;br /&gt;
                 lat:long_name = &amp;quot;Latitude&amp;quot; ;&lt;br /&gt;
                 lat:standard_name = &amp;quot;latitude&amp;quot; ;&lt;br /&gt;
                 lat:units = &amp;quot;degrees_north&amp;quot; ;&lt;br /&gt;
         float uwind(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 uwind:long_name = &amp;quot;Surface Eastward Air Velocity (10m AGL)&amp;quot; ;&lt;br /&gt;
                 uwind:standard_name = &amp;quot;eastward_wind&amp;quot; ;&lt;br /&gt;
                 uwind:units = &amp;quot;m/s&amp;quot; ;&lt;br /&gt;
         float vwind(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 vwind:long_name = &amp;quot;Surface Northward Air Velocity (10m AGL)&amp;quot; ;&lt;br /&gt;
                 vwind:standard_name = &amp;quot;northward_wind&amp;quot; ;&lt;br /&gt;
                 vwind:units = &amp;quot;m/s&amp;quot; ;&lt;br /&gt;
         float prmsl(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 prmsl:long_name = &amp;quot;Pressure reduced to MSL&amp;quot; ;&lt;br /&gt;
                 prmsl:standard_name = &amp;quot;air_pressure_at_sea_level&amp;quot; ;&lt;br /&gt;
                 prmsl:units = &amp;quot;Pa&amp;quot; ;&lt;br /&gt;
         float stmp(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 stmp:long_name = &amp;quot;Surface Air Temperature (2m AGL)&amp;quot; ;&lt;br /&gt;
                 stmp:standard_name = &amp;quot;air_temperature&amp;quot; ;&lt;br /&gt;
                 stmp:units = &amp;quot;K&amp;quot; ;&lt;br /&gt;
         float spfh(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 spfh:long_name = &amp;quot;Surface Specific Humidity (2m AGL)&amp;quot; ;&lt;br /&gt;
                 spfh:standard_name = &amp;quot;specific_humidity&amp;quot; ;&lt;br /&gt;
                 spfh:units = &amp;quot;1&amp;quot; ;&lt;br /&gt;
 &lt;br /&gt;
 // global attributes:&lt;br /&gt;
                 :Conventions = &amp;quot;CF-1.0&amp;quot; ;&lt;br /&gt;
 }&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===rad-files (displayed using the ncdump utility)===&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 netcdf sflux_rad_1.001 {&lt;br /&gt;
 dimensions:&lt;br /&gt;
         nx_grid = 349 ;&lt;br /&gt;
         ny_grid = 277 ;&lt;br /&gt;
         time = UNLIMITED ; // (8 currently)&lt;br /&gt;
 variables:&lt;br /&gt;
         float time(time) ;&lt;br /&gt;
                 time:long_name = &amp;quot;Time&amp;quot; ;&lt;br /&gt;
                 time:standard_name = &amp;quot;time&amp;quot; ;&lt;br /&gt;
                 time:units = &amp;quot;days since 2001-01-01&amp;quot; ;&lt;br /&gt;
                 time:base_date = 2001, 1, 1, 0 ;&lt;br /&gt;
         float lon(ny_grid, nx_grid) ;&lt;br /&gt;
                 lon:long_name = &amp;quot;Longitude&amp;quot; ;&lt;br /&gt;
                 lon:standard_name = &amp;quot;longitude&amp;quot; ;&lt;br /&gt;
                 lon:units = &amp;quot;degrees_east&amp;quot; ;&lt;br /&gt;
         float lat(ny_grid, nx_grid) ;&lt;br /&gt;
                 lat:long_name = &amp;quot;Latitude&amp;quot; ;&lt;br /&gt;
                 lat:standard_name = &amp;quot;latitude&amp;quot; ;&lt;br /&gt;
                 lat:units = &amp;quot;degrees_north&amp;quot; ;&lt;br /&gt;
         float dlwrf(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 dlwrf:long_name = &amp;quot;Downward Long Wave Radiation Flux&amp;quot; ;&lt;br /&gt;
                 dlwrf:standard_name = &amp;quot;surface_downwelling_longwave_flux_in_air&amp;quot; ;&lt;br /&gt;
                 dlwrf:units = &amp;quot;W/m^2&amp;quot; ;&lt;br /&gt;
         float dswrf(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 dswrf:long_name = &amp;quot;Downward Short Wave Radiation Flux&amp;quot; ;&lt;br /&gt;
                 dswrf:standard_name = &amp;quot;surface_downwelling_shortwave_flux_in_air&amp;quot; ;&lt;br /&gt;
                 dswrf:units = &amp;quot;W/m^2&amp;quot; ;&lt;br /&gt;
 &lt;br /&gt;
 // global attributes:&lt;br /&gt;
                 :Conventions = &amp;quot;CF-1.0&amp;quot; ;&lt;br /&gt;
 }&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===prc-files (displayed using the ncdump utility)===&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 netcdf sflux_prc_1.001 {&lt;br /&gt;
 dimensions:&lt;br /&gt;
         nx_grid = 349 ;&lt;br /&gt;
         ny_grid = 277 ;&lt;br /&gt;
         time = UNLIMITED ; // (8 currently)&lt;br /&gt;
 variables:&lt;br /&gt;
         float time(time) ;&lt;br /&gt;
                 time:long_name = &amp;quot;Time&amp;quot; ;&lt;br /&gt;
                 time:standard_name = &amp;quot;time&amp;quot; ;&lt;br /&gt;
                 time:units = &amp;quot;days since 2001-01-01&amp;quot; ;&lt;br /&gt;
                 time:base_date = 2001, 1, 1, 0 ;&lt;br /&gt;
         float lon(ny_grid, nx_grid) ;&lt;br /&gt;
                 lon:long_name = &amp;quot;Longitude&amp;quot; ;&lt;br /&gt;
                 lon:standard_name = &amp;quot;longitude&amp;quot; ;&lt;br /&gt;
                 lon:units = &amp;quot;degrees_east&amp;quot; ;&lt;br /&gt;
         float lat(ny_grid, nx_grid) ;&lt;br /&gt;
                 lat:long_name = &amp;quot;Latitude&amp;quot; ;&lt;br /&gt;
                 lat:standard_name = &amp;quot;latitude&amp;quot; ;&lt;br /&gt;
                 lat:units = &amp;quot;degrees_north&amp;quot; ;&lt;br /&gt;
         float prate(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 prate:long_name = &amp;quot;Surface Precipitation Rate&amp;quot; ;&lt;br /&gt;
                 prate:standard_name = &amp;quot;precipitation_flux&amp;quot; ;&lt;br /&gt;
                 prate:units = &amp;quot;kg/m^2/s&amp;quot; ;&lt;br /&gt;
 &lt;br /&gt;
 // global attributes:&lt;br /&gt;
                 :Conventions = &amp;quot;CF-1.0&amp;quot; ;&lt;br /&gt;
 }&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jan</name></author>
		
	</entry>
	<entry>
		<id>http://ccrm.vims.edu/w/index.php?title=Atmospheric_forcing&amp;diff=598</id>
		<title>Atmospheric forcing</title>
		<link rel="alternate" type="text/html" href="http://ccrm.vims.edu/w/index.php?title=Atmospheric_forcing&amp;diff=598"/>
		<updated>2013-01-31T13:27:26Z</updated>

		<summary type="html">&lt;p&gt;Jan: /* prc-files */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Theory==&lt;br /&gt;
&lt;br /&gt;
[http://ccrm.vims.edu/yinglong/wiki_files/HeatExchange-Theory.pdf Here] is some info about the heat exchange module inside SELFE, based on Dr. Mike Zuluaf's slides. &lt;br /&gt;
&lt;br /&gt;
==File description==&lt;br /&gt;
In SELFE, atmoserpic forcings include wind, air pressure and temperature, precipitation, humidity and longwave and shortwave fluxes. These are specified in the netcdf files inside sflux/ dir, and conform to the [http://cf-pcmdi.llnl.gov/documents/cf-conventions/1.0/cf-conventions.html NetCDF Climate and Forecast (CF) Metadata Convention 1.0].&lt;br /&gt;
&lt;br /&gt;
There are 4 types of files in sflux/dir; see [http://www.stccmop.org/CORIE/modeling/selfe/NARR/narr.html this site] for sample files.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;OL&amp;gt;&lt;br /&gt;
  &amp;lt;LI&amp;gt;sflux_inputs.txt: &amp;lt;br/&amp;gt;&lt;br /&gt;
$cat sflux_inputs.txt &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;amp;sflux_inputs   ! file name &amp;lt;br/&amp;gt;&lt;br /&gt;
start_year  = 1998, ! start year &amp;lt;br/&amp;gt;&lt;br /&gt;
start_month = 09, ! start month &amp;lt;br/&amp;gt;&lt;br /&gt;
start_day   = 01, ! start day &amp;lt;br/&amp;gt;&lt;br /&gt;
start_hour  = 0.0, ! start hour &amp;lt;br/&amp;gt;&lt;br /&gt;
utc_start   = 0.0, ! offset from UTC in hours, with positive numbers for western hemishpere &amp;lt;br/&amp;gt;&lt;br /&gt;
/ &amp;lt;br/&amp;gt;&lt;br /&gt;
  &amp;lt;LI&amp;gt;sflux_air_1.0*.nc: netcdf files that have time, wind speed, air temperature and pressure and specific humidity;&lt;br /&gt;
  &amp;lt;LI&amp;gt;sflux_prc_1.0*.nc: netcdf files that have precipitation data; &lt;br /&gt;
  &amp;lt;LI&amp;gt;sflux_rad_1.0*.nc: netcdf files that have downward long and short (solar) wave radiation fluxes.&lt;br /&gt;
&amp;lt;/OL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Using NARR files for your simulation (North America only)==&lt;br /&gt;
&lt;br /&gt;
 First, make sure the  [http://ccrm.vims.edu/yinglong/wiki_files/narr.ll NARR grid] covers your hgrid.ll. &lt;br /&gt;
&lt;br /&gt;
In your run directory, mkdir sflux and inside it, create symbolic links to the NARR files. e.g., if you run starts from June 10, 2004 and ends June 20, 2004, then&lt;br /&gt;
&lt;br /&gt;
sflux_air_1.001.nc --&amp;gt; narr_air.2004_06_10.nc&amp;lt;br/&amp;gt;&lt;br /&gt;
sflux_air_1.002.nc --&amp;gt; narr_air.2004_06_11.nc&amp;lt;br/&amp;gt;&lt;br /&gt;
...&amp;lt;br/&amp;gt;&lt;br /&gt;
sflux_air_1.011.nc --&amp;gt; narr_air.2004_06_20.nc&amp;lt;br/&amp;gt;&lt;br /&gt;
sflux_air_1.012.nc --&amp;gt; narr_air.2004_06_21.nc (extra day to account for time zone difference)&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Similarly for sflux_rad_*.nc and sflux_prc_*.nc. The number &amp;quot;1&amp;quot; after &amp;quot;air_&amp;quot; denotes first data set used; you can use up to 2 sets in SELFE (which combines them with some given weights set in sflux_subs.F90); here you only use 1 set.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Don't forget to update sflux_inputs.txt also.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Preparing your own sflux inputs==&lt;br /&gt;
&lt;br /&gt;
After familiarize yourself with the NARR files and their format, you may embark on creating your own nc files. The best way is to modify existing matlab scripts (src/Utility/Sflux_nc/readnc*.m) included in the source code bundle, which have extensively in-line comments to guide you along the way.&lt;br /&gt;
&lt;br /&gt;
'''Conventions for .nc-files in sflux directory and additional files needed for sflux run:'''&lt;br /&gt;
&lt;br /&gt;
'''wind:''' u-component is eastward, v-comp. is northward (normal math convention, not compass convention)&lt;br /&gt;
&lt;br /&gt;
'''windrot_geo2proj.gr3:''' rotates winds in case they do not align with coordinate axes,&lt;br /&gt;
i.e. lat/lon&lt;br /&gt;
&lt;br /&gt;
'''watertype.gr3:''' 6 is clear water, 7 is muddiest. Search in selfe_init.F90 for watertype.&lt;br /&gt;
===air-files (displayed using the ncdump utility)===&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 netcdf sflux_air_1.001 {&lt;br /&gt;
 dimensions:&lt;br /&gt;
         nx_grid = 349 ;&lt;br /&gt;
         ny_grid = 277 ;&lt;br /&gt;
         time = UNLIMITED ; // (8 currently)&lt;br /&gt;
 variables:&lt;br /&gt;
         float time(time) ;&lt;br /&gt;
                 time:long_name = &amp;quot;Time&amp;quot; ;&lt;br /&gt;
                 time:standard_name = &amp;quot;time&amp;quot; ;&lt;br /&gt;
                 time:units = &amp;quot;days since 2001-01-01&amp;quot; ;&lt;br /&gt;
                 time:base_date = 2001, 1, 1, 0 ;&lt;br /&gt;
         float lon(ny_grid, nx_grid) ;&lt;br /&gt;
                 lon:long_name = &amp;quot;Longitude&amp;quot; ;&lt;br /&gt;
                 lon:standard_name = &amp;quot;longitude&amp;quot; ;&lt;br /&gt;
                 lon:units = &amp;quot;degrees_east&amp;quot; ;&lt;br /&gt;
         float lat(ny_grid, nx_grid) ;&lt;br /&gt;
                 lat:long_name = &amp;quot;Latitude&amp;quot; ;&lt;br /&gt;
                 lat:standard_name = &amp;quot;latitude&amp;quot; ;&lt;br /&gt;
                 lat:units = &amp;quot;degrees_north&amp;quot; ;&lt;br /&gt;
         float uwind(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 uwind:long_name = &amp;quot;Surface Eastward Air Velocity (10m AGL)&amp;quot; ;&lt;br /&gt;
                 uwind:standard_name = &amp;quot;eastward_wind&amp;quot; ;&lt;br /&gt;
                 uwind:units = &amp;quot;m/s&amp;quot; ;&lt;br /&gt;
         float vwind(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 vwind:long_name = &amp;quot;Surface Northward Air Velocity (10m AGL)&amp;quot; ;&lt;br /&gt;
                 vwind:standard_name = &amp;quot;northward_wind&amp;quot; ;&lt;br /&gt;
                 vwind:units = &amp;quot;m/s&amp;quot; ;&lt;br /&gt;
         float prmsl(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 prmsl:long_name = &amp;quot;Pressure reduced to MSL&amp;quot; ;&lt;br /&gt;
                 prmsl:standard_name = &amp;quot;air_pressure_at_sea_level&amp;quot; ;&lt;br /&gt;
                 prmsl:units = &amp;quot;Pa&amp;quot; ;&lt;br /&gt;
         float stmp(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 stmp:long_name = &amp;quot;Surface Air Temperature (2m AGL)&amp;quot; ;&lt;br /&gt;
                 stmp:standard_name = &amp;quot;air_temperature&amp;quot; ;&lt;br /&gt;
                 stmp:units = &amp;quot;K&amp;quot; ;&lt;br /&gt;
         float spfh(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 spfh:long_name = &amp;quot;Surface Specific Humidity (2m AGL)&amp;quot; ;&lt;br /&gt;
                 spfh:standard_name = &amp;quot;specific_humidity&amp;quot; ;&lt;br /&gt;
                 spfh:units = &amp;quot;1&amp;quot; ;&lt;br /&gt;
 &lt;br /&gt;
 // global attributes:&lt;br /&gt;
                 :Conventions = &amp;quot;CF-1.0&amp;quot; ;&lt;br /&gt;
 }&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===rad-files (displayed using the ncdump utility)===&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 netcdf sflux_rad_1.001 {&lt;br /&gt;
 dimensions:&lt;br /&gt;
         nx_grid = 349 ;&lt;br /&gt;
         ny_grid = 277 ;&lt;br /&gt;
         time = UNLIMITED ; // (8 currently)&lt;br /&gt;
 variables:&lt;br /&gt;
         float time(time) ;&lt;br /&gt;
                 time:long_name = &amp;quot;Time&amp;quot; ;&lt;br /&gt;
                 time:standard_name = &amp;quot;time&amp;quot; ;&lt;br /&gt;
                 time:units = &amp;quot;days since 2001-01-01&amp;quot; ;&lt;br /&gt;
                 time:base_date = 2001, 1, 1, 0 ;&lt;br /&gt;
         float lon(ny_grid, nx_grid) ;&lt;br /&gt;
                 lon:long_name = &amp;quot;Longitude&amp;quot; ;&lt;br /&gt;
                 lon:standard_name = &amp;quot;longitude&amp;quot; ;&lt;br /&gt;
                 lon:units = &amp;quot;degrees_east&amp;quot; ;&lt;br /&gt;
         float lat(ny_grid, nx_grid) ;&lt;br /&gt;
                 lat:long_name = &amp;quot;Latitude&amp;quot; ;&lt;br /&gt;
                 lat:standard_name = &amp;quot;latitude&amp;quot; ;&lt;br /&gt;
                 lat:units = &amp;quot;degrees_north&amp;quot; ;&lt;br /&gt;
         float dlwrf(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 dlwrf:long_name = &amp;quot;Downward Long Wave Radiation Flux&amp;quot; ;&lt;br /&gt;
                 dlwrf:standard_name = &amp;quot;surface_downwelling_longwave_flux_in_air&amp;quot; ;&lt;br /&gt;
                 dlwrf:units = &amp;quot;W/m^2&amp;quot; ;&lt;br /&gt;
         float dswrf(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 dswrf:long_name = &amp;quot;Downward Short Wave Radiation Flux&amp;quot; ;&lt;br /&gt;
                 dswrf:standard_name = &amp;quot;surface_downwelling_shortwave_flux_in_air&amp;quot; ;&lt;br /&gt;
                 dswrf:units = &amp;quot;W/m^2&amp;quot; ;&lt;br /&gt;
 &lt;br /&gt;
 // global attributes:&lt;br /&gt;
                 :Conventions = &amp;quot;CF-1.0&amp;quot; ;&lt;br /&gt;
 }&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===prc-files (displayed using the ncdump utility)===&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 netcdf sflux_prc_1.001 {&lt;br /&gt;
 dimensions:&lt;br /&gt;
         nx_grid = 349 ;&lt;br /&gt;
         ny_grid = 277 ;&lt;br /&gt;
         time = UNLIMITED ; // (8 currently)&lt;br /&gt;
 variables:&lt;br /&gt;
         float time(time) ;&lt;br /&gt;
                 time:long_name = &amp;quot;Time&amp;quot; ;&lt;br /&gt;
                 time:standard_name = &amp;quot;time&amp;quot; ;&lt;br /&gt;
                 time:units = &amp;quot;days since 2001-01-01&amp;quot; ;&lt;br /&gt;
                 time:base_date = 2001, 1, 1, 0 ;&lt;br /&gt;
         float lon(ny_grid, nx_grid) ;&lt;br /&gt;
                 lon:long_name = &amp;quot;Longitude&amp;quot; ;&lt;br /&gt;
                 lon:standard_name = &amp;quot;longitude&amp;quot; ;&lt;br /&gt;
                 lon:units = &amp;quot;degrees_east&amp;quot; ;&lt;br /&gt;
         float lat(ny_grid, nx_grid) ;&lt;br /&gt;
                 lat:long_name = &amp;quot;Latitude&amp;quot; ;&lt;br /&gt;
                 lat:standard_name = &amp;quot;latitude&amp;quot; ;&lt;br /&gt;
                 lat:units = &amp;quot;degrees_north&amp;quot; ;&lt;br /&gt;
         float prate(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 prate:long_name = &amp;quot;Surface Precipitation Rate&amp;quot; ;&lt;br /&gt;
                 prate:standard_name = &amp;quot;precipitation_flux&amp;quot; ;&lt;br /&gt;
                 prate:units = &amp;quot;kg/m^2/s&amp;quot; ;&lt;br /&gt;
 &lt;br /&gt;
 // global attributes:&lt;br /&gt;
                 :Conventions = &amp;quot;CF-1.0&amp;quot; ;&lt;br /&gt;
 }&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jan</name></author>
		
	</entry>
	<entry>
		<id>http://ccrm.vims.edu/w/index.php?title=Atmospheric_forcing&amp;diff=597</id>
		<title>Atmospheric forcing</title>
		<link rel="alternate" type="text/html" href="http://ccrm.vims.edu/w/index.php?title=Atmospheric_forcing&amp;diff=597"/>
		<updated>2013-01-31T13:27:17Z</updated>

		<summary type="html">&lt;p&gt;Jan: /* rad-files */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Theory==&lt;br /&gt;
&lt;br /&gt;
[http://ccrm.vims.edu/yinglong/wiki_files/HeatExchange-Theory.pdf Here] is some info about the heat exchange module inside SELFE, based on Dr. Mike Zuluaf's slides. &lt;br /&gt;
&lt;br /&gt;
==File description==&lt;br /&gt;
In SELFE, atmoserpic forcings include wind, air pressure and temperature, precipitation, humidity and longwave and shortwave fluxes. These are specified in the netcdf files inside sflux/ dir, and conform to the [http://cf-pcmdi.llnl.gov/documents/cf-conventions/1.0/cf-conventions.html NetCDF Climate and Forecast (CF) Metadata Convention 1.0].&lt;br /&gt;
&lt;br /&gt;
There are 4 types of files in sflux/dir; see [http://www.stccmop.org/CORIE/modeling/selfe/NARR/narr.html this site] for sample files.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;OL&amp;gt;&lt;br /&gt;
  &amp;lt;LI&amp;gt;sflux_inputs.txt: &amp;lt;br/&amp;gt;&lt;br /&gt;
$cat sflux_inputs.txt &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;amp;sflux_inputs   ! file name &amp;lt;br/&amp;gt;&lt;br /&gt;
start_year  = 1998, ! start year &amp;lt;br/&amp;gt;&lt;br /&gt;
start_month = 09, ! start month &amp;lt;br/&amp;gt;&lt;br /&gt;
start_day   = 01, ! start day &amp;lt;br/&amp;gt;&lt;br /&gt;
start_hour  = 0.0, ! start hour &amp;lt;br/&amp;gt;&lt;br /&gt;
utc_start   = 0.0, ! offset from UTC in hours, with positive numbers for western hemishpere &amp;lt;br/&amp;gt;&lt;br /&gt;
/ &amp;lt;br/&amp;gt;&lt;br /&gt;
  &amp;lt;LI&amp;gt;sflux_air_1.0*.nc: netcdf files that have time, wind speed, air temperature and pressure and specific humidity;&lt;br /&gt;
  &amp;lt;LI&amp;gt;sflux_prc_1.0*.nc: netcdf files that have precipitation data; &lt;br /&gt;
  &amp;lt;LI&amp;gt;sflux_rad_1.0*.nc: netcdf files that have downward long and short (solar) wave radiation fluxes.&lt;br /&gt;
&amp;lt;/OL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Using NARR files for your simulation (North America only)==&lt;br /&gt;
&lt;br /&gt;
 First, make sure the  [http://ccrm.vims.edu/yinglong/wiki_files/narr.ll NARR grid] covers your hgrid.ll. &lt;br /&gt;
&lt;br /&gt;
In your run directory, mkdir sflux and inside it, create symbolic links to the NARR files. e.g., if you run starts from June 10, 2004 and ends June 20, 2004, then&lt;br /&gt;
&lt;br /&gt;
sflux_air_1.001.nc --&amp;gt; narr_air.2004_06_10.nc&amp;lt;br/&amp;gt;&lt;br /&gt;
sflux_air_1.002.nc --&amp;gt; narr_air.2004_06_11.nc&amp;lt;br/&amp;gt;&lt;br /&gt;
...&amp;lt;br/&amp;gt;&lt;br /&gt;
sflux_air_1.011.nc --&amp;gt; narr_air.2004_06_20.nc&amp;lt;br/&amp;gt;&lt;br /&gt;
sflux_air_1.012.nc --&amp;gt; narr_air.2004_06_21.nc (extra day to account for time zone difference)&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Similarly for sflux_rad_*.nc and sflux_prc_*.nc. The number &amp;quot;1&amp;quot; after &amp;quot;air_&amp;quot; denotes first data set used; you can use up to 2 sets in SELFE (which combines them with some given weights set in sflux_subs.F90); here you only use 1 set.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Don't forget to update sflux_inputs.txt also.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Preparing your own sflux inputs==&lt;br /&gt;
&lt;br /&gt;
After familiarize yourself with the NARR files and their format, you may embark on creating your own nc files. The best way is to modify existing matlab scripts (src/Utility/Sflux_nc/readnc*.m) included in the source code bundle, which have extensively in-line comments to guide you along the way.&lt;br /&gt;
&lt;br /&gt;
'''Conventions for .nc-files in sflux directory and additional files needed for sflux run:'''&lt;br /&gt;
&lt;br /&gt;
'''wind:''' u-component is eastward, v-comp. is northward (normal math convention, not compass convention)&lt;br /&gt;
&lt;br /&gt;
'''windrot_geo2proj.gr3:''' rotates winds in case they do not align with coordinate axes,&lt;br /&gt;
i.e. lat/lon&lt;br /&gt;
&lt;br /&gt;
'''watertype.gr3:''' 6 is clear water, 7 is muddiest. Search in selfe_init.F90 for watertype.&lt;br /&gt;
===air-files (displayed using the ncdump utility)===&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 netcdf sflux_air_1.001 {&lt;br /&gt;
 dimensions:&lt;br /&gt;
         nx_grid = 349 ;&lt;br /&gt;
         ny_grid = 277 ;&lt;br /&gt;
         time = UNLIMITED ; // (8 currently)&lt;br /&gt;
 variables:&lt;br /&gt;
         float time(time) ;&lt;br /&gt;
                 time:long_name = &amp;quot;Time&amp;quot; ;&lt;br /&gt;
                 time:standard_name = &amp;quot;time&amp;quot; ;&lt;br /&gt;
                 time:units = &amp;quot;days since 2001-01-01&amp;quot; ;&lt;br /&gt;
                 time:base_date = 2001, 1, 1, 0 ;&lt;br /&gt;
         float lon(ny_grid, nx_grid) ;&lt;br /&gt;
                 lon:long_name = &amp;quot;Longitude&amp;quot; ;&lt;br /&gt;
                 lon:standard_name = &amp;quot;longitude&amp;quot; ;&lt;br /&gt;
                 lon:units = &amp;quot;degrees_east&amp;quot; ;&lt;br /&gt;
         float lat(ny_grid, nx_grid) ;&lt;br /&gt;
                 lat:long_name = &amp;quot;Latitude&amp;quot; ;&lt;br /&gt;
                 lat:standard_name = &amp;quot;latitude&amp;quot; ;&lt;br /&gt;
                 lat:units = &amp;quot;degrees_north&amp;quot; ;&lt;br /&gt;
         float uwind(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 uwind:long_name = &amp;quot;Surface Eastward Air Velocity (10m AGL)&amp;quot; ;&lt;br /&gt;
                 uwind:standard_name = &amp;quot;eastward_wind&amp;quot; ;&lt;br /&gt;
                 uwind:units = &amp;quot;m/s&amp;quot; ;&lt;br /&gt;
         float vwind(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 vwind:long_name = &amp;quot;Surface Northward Air Velocity (10m AGL)&amp;quot; ;&lt;br /&gt;
                 vwind:standard_name = &amp;quot;northward_wind&amp;quot; ;&lt;br /&gt;
                 vwind:units = &amp;quot;m/s&amp;quot; ;&lt;br /&gt;
         float prmsl(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 prmsl:long_name = &amp;quot;Pressure reduced to MSL&amp;quot; ;&lt;br /&gt;
                 prmsl:standard_name = &amp;quot;air_pressure_at_sea_level&amp;quot; ;&lt;br /&gt;
                 prmsl:units = &amp;quot;Pa&amp;quot; ;&lt;br /&gt;
         float stmp(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 stmp:long_name = &amp;quot;Surface Air Temperature (2m AGL)&amp;quot; ;&lt;br /&gt;
                 stmp:standard_name = &amp;quot;air_temperature&amp;quot; ;&lt;br /&gt;
                 stmp:units = &amp;quot;K&amp;quot; ;&lt;br /&gt;
         float spfh(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 spfh:long_name = &amp;quot;Surface Specific Humidity (2m AGL)&amp;quot; ;&lt;br /&gt;
                 spfh:standard_name = &amp;quot;specific_humidity&amp;quot; ;&lt;br /&gt;
                 spfh:units = &amp;quot;1&amp;quot; ;&lt;br /&gt;
 &lt;br /&gt;
 // global attributes:&lt;br /&gt;
                 :Conventions = &amp;quot;CF-1.0&amp;quot; ;&lt;br /&gt;
 }&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===rad-files (displayed using the ncdump utility)===&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 netcdf sflux_rad_1.001 {&lt;br /&gt;
 dimensions:&lt;br /&gt;
         nx_grid = 349 ;&lt;br /&gt;
         ny_grid = 277 ;&lt;br /&gt;
         time = UNLIMITED ; // (8 currently)&lt;br /&gt;
 variables:&lt;br /&gt;
         float time(time) ;&lt;br /&gt;
                 time:long_name = &amp;quot;Time&amp;quot; ;&lt;br /&gt;
                 time:standard_name = &amp;quot;time&amp;quot; ;&lt;br /&gt;
                 time:units = &amp;quot;days since 2001-01-01&amp;quot; ;&lt;br /&gt;
                 time:base_date = 2001, 1, 1, 0 ;&lt;br /&gt;
         float lon(ny_grid, nx_grid) ;&lt;br /&gt;
                 lon:long_name = &amp;quot;Longitude&amp;quot; ;&lt;br /&gt;
                 lon:standard_name = &amp;quot;longitude&amp;quot; ;&lt;br /&gt;
                 lon:units = &amp;quot;degrees_east&amp;quot; ;&lt;br /&gt;
         float lat(ny_grid, nx_grid) ;&lt;br /&gt;
                 lat:long_name = &amp;quot;Latitude&amp;quot; ;&lt;br /&gt;
                 lat:standard_name = &amp;quot;latitude&amp;quot; ;&lt;br /&gt;
                 lat:units = &amp;quot;degrees_north&amp;quot; ;&lt;br /&gt;
         float dlwrf(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 dlwrf:long_name = &amp;quot;Downward Long Wave Radiation Flux&amp;quot; ;&lt;br /&gt;
                 dlwrf:standard_name = &amp;quot;surface_downwelling_longwave_flux_in_air&amp;quot; ;&lt;br /&gt;
                 dlwrf:units = &amp;quot;W/m^2&amp;quot; ;&lt;br /&gt;
         float dswrf(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 dswrf:long_name = &amp;quot;Downward Short Wave Radiation Flux&amp;quot; ;&lt;br /&gt;
                 dswrf:standard_name = &amp;quot;surface_downwelling_shortwave_flux_in_air&amp;quot; ;&lt;br /&gt;
                 dswrf:units = &amp;quot;W/m^2&amp;quot; ;&lt;br /&gt;
 &lt;br /&gt;
 // global attributes:&lt;br /&gt;
                 :Conventions = &amp;quot;CF-1.0&amp;quot; ;&lt;br /&gt;
 }&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===prc-files===&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 netcdf sflux_prc_1.001 {&lt;br /&gt;
 dimensions:&lt;br /&gt;
         nx_grid = 349 ;&lt;br /&gt;
         ny_grid = 277 ;&lt;br /&gt;
         time = UNLIMITED ; // (8 currently)&lt;br /&gt;
 variables:&lt;br /&gt;
         float time(time) ;&lt;br /&gt;
                 time:long_name = &amp;quot;Time&amp;quot; ;&lt;br /&gt;
                 time:standard_name = &amp;quot;time&amp;quot; ;&lt;br /&gt;
                 time:units = &amp;quot;days since 2001-01-01&amp;quot; ;&lt;br /&gt;
                 time:base_date = 2001, 1, 1, 0 ;&lt;br /&gt;
         float lon(ny_grid, nx_grid) ;&lt;br /&gt;
                 lon:long_name = &amp;quot;Longitude&amp;quot; ;&lt;br /&gt;
                 lon:standard_name = &amp;quot;longitude&amp;quot; ;&lt;br /&gt;
                 lon:units = &amp;quot;degrees_east&amp;quot; ;&lt;br /&gt;
         float lat(ny_grid, nx_grid) ;&lt;br /&gt;
                 lat:long_name = &amp;quot;Latitude&amp;quot; ;&lt;br /&gt;
                 lat:standard_name = &amp;quot;latitude&amp;quot; ;&lt;br /&gt;
                 lat:units = &amp;quot;degrees_north&amp;quot; ;&lt;br /&gt;
         float prate(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 prate:long_name = &amp;quot;Surface Precipitation Rate&amp;quot; ;&lt;br /&gt;
                 prate:standard_name = &amp;quot;precipitation_flux&amp;quot; ;&lt;br /&gt;
                 prate:units = &amp;quot;kg/m^2/s&amp;quot; ;&lt;br /&gt;
 &lt;br /&gt;
 // global attributes:&lt;br /&gt;
                 :Conventions = &amp;quot;CF-1.0&amp;quot; ;&lt;br /&gt;
 }&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jan</name></author>
		
	</entry>
	<entry>
		<id>http://ccrm.vims.edu/w/index.php?title=Atmospheric_forcing&amp;diff=596</id>
		<title>Atmospheric forcing</title>
		<link rel="alternate" type="text/html" href="http://ccrm.vims.edu/w/index.php?title=Atmospheric_forcing&amp;diff=596"/>
		<updated>2013-01-31T13:27:09Z</updated>

		<summary type="html">&lt;p&gt;Jan: /* air-files */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Theory==&lt;br /&gt;
&lt;br /&gt;
[http://ccrm.vims.edu/yinglong/wiki_files/HeatExchange-Theory.pdf Here] is some info about the heat exchange module inside SELFE, based on Dr. Mike Zuluaf's slides. &lt;br /&gt;
&lt;br /&gt;
==File description==&lt;br /&gt;
In SELFE, atmoserpic forcings include wind, air pressure and temperature, precipitation, humidity and longwave and shortwave fluxes. These are specified in the netcdf files inside sflux/ dir, and conform to the [http://cf-pcmdi.llnl.gov/documents/cf-conventions/1.0/cf-conventions.html NetCDF Climate and Forecast (CF) Metadata Convention 1.0].&lt;br /&gt;
&lt;br /&gt;
There are 4 types of files in sflux/dir; see [http://www.stccmop.org/CORIE/modeling/selfe/NARR/narr.html this site] for sample files.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;OL&amp;gt;&lt;br /&gt;
  &amp;lt;LI&amp;gt;sflux_inputs.txt: &amp;lt;br/&amp;gt;&lt;br /&gt;
$cat sflux_inputs.txt &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;amp;sflux_inputs   ! file name &amp;lt;br/&amp;gt;&lt;br /&gt;
start_year  = 1998, ! start year &amp;lt;br/&amp;gt;&lt;br /&gt;
start_month = 09, ! start month &amp;lt;br/&amp;gt;&lt;br /&gt;
start_day   = 01, ! start day &amp;lt;br/&amp;gt;&lt;br /&gt;
start_hour  = 0.0, ! start hour &amp;lt;br/&amp;gt;&lt;br /&gt;
utc_start   = 0.0, ! offset from UTC in hours, with positive numbers for western hemishpere &amp;lt;br/&amp;gt;&lt;br /&gt;
/ &amp;lt;br/&amp;gt;&lt;br /&gt;
  &amp;lt;LI&amp;gt;sflux_air_1.0*.nc: netcdf files that have time, wind speed, air temperature and pressure and specific humidity;&lt;br /&gt;
  &amp;lt;LI&amp;gt;sflux_prc_1.0*.nc: netcdf files that have precipitation data; &lt;br /&gt;
  &amp;lt;LI&amp;gt;sflux_rad_1.0*.nc: netcdf files that have downward long and short (solar) wave radiation fluxes.&lt;br /&gt;
&amp;lt;/OL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Using NARR files for your simulation (North America only)==&lt;br /&gt;
&lt;br /&gt;
 First, make sure the  [http://ccrm.vims.edu/yinglong/wiki_files/narr.ll NARR grid] covers your hgrid.ll. &lt;br /&gt;
&lt;br /&gt;
In your run directory, mkdir sflux and inside it, create symbolic links to the NARR files. e.g., if you run starts from June 10, 2004 and ends June 20, 2004, then&lt;br /&gt;
&lt;br /&gt;
sflux_air_1.001.nc --&amp;gt; narr_air.2004_06_10.nc&amp;lt;br/&amp;gt;&lt;br /&gt;
sflux_air_1.002.nc --&amp;gt; narr_air.2004_06_11.nc&amp;lt;br/&amp;gt;&lt;br /&gt;
...&amp;lt;br/&amp;gt;&lt;br /&gt;
sflux_air_1.011.nc --&amp;gt; narr_air.2004_06_20.nc&amp;lt;br/&amp;gt;&lt;br /&gt;
sflux_air_1.012.nc --&amp;gt; narr_air.2004_06_21.nc (extra day to account for time zone difference)&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Similarly for sflux_rad_*.nc and sflux_prc_*.nc. The number &amp;quot;1&amp;quot; after &amp;quot;air_&amp;quot; denotes first data set used; you can use up to 2 sets in SELFE (which combines them with some given weights set in sflux_subs.F90); here you only use 1 set.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Don't forget to update sflux_inputs.txt also.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Preparing your own sflux inputs==&lt;br /&gt;
&lt;br /&gt;
After familiarize yourself with the NARR files and their format, you may embark on creating your own nc files. The best way is to modify existing matlab scripts (src/Utility/Sflux_nc/readnc*.m) included in the source code bundle, which have extensively in-line comments to guide you along the way.&lt;br /&gt;
&lt;br /&gt;
'''Conventions for .nc-files in sflux directory and additional files needed for sflux run:'''&lt;br /&gt;
&lt;br /&gt;
'''wind:''' u-component is eastward, v-comp. is northward (normal math convention, not compass convention)&lt;br /&gt;
&lt;br /&gt;
'''windrot_geo2proj.gr3:''' rotates winds in case they do not align with coordinate axes,&lt;br /&gt;
i.e. lat/lon&lt;br /&gt;
&lt;br /&gt;
'''watertype.gr3:''' 6 is clear water, 7 is muddiest. Search in selfe_init.F90 for watertype.&lt;br /&gt;
===air-files (displayed using the ncdump utility)===&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 netcdf sflux_air_1.001 {&lt;br /&gt;
 dimensions:&lt;br /&gt;
         nx_grid = 349 ;&lt;br /&gt;
         ny_grid = 277 ;&lt;br /&gt;
         time = UNLIMITED ; // (8 currently)&lt;br /&gt;
 variables:&lt;br /&gt;
         float time(time) ;&lt;br /&gt;
                 time:long_name = &amp;quot;Time&amp;quot; ;&lt;br /&gt;
                 time:standard_name = &amp;quot;time&amp;quot; ;&lt;br /&gt;
                 time:units = &amp;quot;days since 2001-01-01&amp;quot; ;&lt;br /&gt;
                 time:base_date = 2001, 1, 1, 0 ;&lt;br /&gt;
         float lon(ny_grid, nx_grid) ;&lt;br /&gt;
                 lon:long_name = &amp;quot;Longitude&amp;quot; ;&lt;br /&gt;
                 lon:standard_name = &amp;quot;longitude&amp;quot; ;&lt;br /&gt;
                 lon:units = &amp;quot;degrees_east&amp;quot; ;&lt;br /&gt;
         float lat(ny_grid, nx_grid) ;&lt;br /&gt;
                 lat:long_name = &amp;quot;Latitude&amp;quot; ;&lt;br /&gt;
                 lat:standard_name = &amp;quot;latitude&amp;quot; ;&lt;br /&gt;
                 lat:units = &amp;quot;degrees_north&amp;quot; ;&lt;br /&gt;
         float uwind(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 uwind:long_name = &amp;quot;Surface Eastward Air Velocity (10m AGL)&amp;quot; ;&lt;br /&gt;
                 uwind:standard_name = &amp;quot;eastward_wind&amp;quot; ;&lt;br /&gt;
                 uwind:units = &amp;quot;m/s&amp;quot; ;&lt;br /&gt;
         float vwind(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 vwind:long_name = &amp;quot;Surface Northward Air Velocity (10m AGL)&amp;quot; ;&lt;br /&gt;
                 vwind:standard_name = &amp;quot;northward_wind&amp;quot; ;&lt;br /&gt;
                 vwind:units = &amp;quot;m/s&amp;quot; ;&lt;br /&gt;
         float prmsl(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 prmsl:long_name = &amp;quot;Pressure reduced to MSL&amp;quot; ;&lt;br /&gt;
                 prmsl:standard_name = &amp;quot;air_pressure_at_sea_level&amp;quot; ;&lt;br /&gt;
                 prmsl:units = &amp;quot;Pa&amp;quot; ;&lt;br /&gt;
         float stmp(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 stmp:long_name = &amp;quot;Surface Air Temperature (2m AGL)&amp;quot; ;&lt;br /&gt;
                 stmp:standard_name = &amp;quot;air_temperature&amp;quot; ;&lt;br /&gt;
                 stmp:units = &amp;quot;K&amp;quot; ;&lt;br /&gt;
         float spfh(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 spfh:long_name = &amp;quot;Surface Specific Humidity (2m AGL)&amp;quot; ;&lt;br /&gt;
                 spfh:standard_name = &amp;quot;specific_humidity&amp;quot; ;&lt;br /&gt;
                 spfh:units = &amp;quot;1&amp;quot; ;&lt;br /&gt;
 &lt;br /&gt;
 // global attributes:&lt;br /&gt;
                 :Conventions = &amp;quot;CF-1.0&amp;quot; ;&lt;br /&gt;
 }&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===rad-files===&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 netcdf sflux_rad_1.001 {&lt;br /&gt;
 dimensions:&lt;br /&gt;
         nx_grid = 349 ;&lt;br /&gt;
         ny_grid = 277 ;&lt;br /&gt;
         time = UNLIMITED ; // (8 currently)&lt;br /&gt;
 variables:&lt;br /&gt;
         float time(time) ;&lt;br /&gt;
                 time:long_name = &amp;quot;Time&amp;quot; ;&lt;br /&gt;
                 time:standard_name = &amp;quot;time&amp;quot; ;&lt;br /&gt;
                 time:units = &amp;quot;days since 2001-01-01&amp;quot; ;&lt;br /&gt;
                 time:base_date = 2001, 1, 1, 0 ;&lt;br /&gt;
         float lon(ny_grid, nx_grid) ;&lt;br /&gt;
                 lon:long_name = &amp;quot;Longitude&amp;quot; ;&lt;br /&gt;
                 lon:standard_name = &amp;quot;longitude&amp;quot; ;&lt;br /&gt;
                 lon:units = &amp;quot;degrees_east&amp;quot; ;&lt;br /&gt;
         float lat(ny_grid, nx_grid) ;&lt;br /&gt;
                 lat:long_name = &amp;quot;Latitude&amp;quot; ;&lt;br /&gt;
                 lat:standard_name = &amp;quot;latitude&amp;quot; ;&lt;br /&gt;
                 lat:units = &amp;quot;degrees_north&amp;quot; ;&lt;br /&gt;
         float dlwrf(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 dlwrf:long_name = &amp;quot;Downward Long Wave Radiation Flux&amp;quot; ;&lt;br /&gt;
                 dlwrf:standard_name = &amp;quot;surface_downwelling_longwave_flux_in_air&amp;quot; ;&lt;br /&gt;
                 dlwrf:units = &amp;quot;W/m^2&amp;quot; ;&lt;br /&gt;
         float dswrf(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 dswrf:long_name = &amp;quot;Downward Short Wave Radiation Flux&amp;quot; ;&lt;br /&gt;
                 dswrf:standard_name = &amp;quot;surface_downwelling_shortwave_flux_in_air&amp;quot; ;&lt;br /&gt;
                 dswrf:units = &amp;quot;W/m^2&amp;quot; ;&lt;br /&gt;
 &lt;br /&gt;
 // global attributes:&lt;br /&gt;
                 :Conventions = &amp;quot;CF-1.0&amp;quot; ;&lt;br /&gt;
 }&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
===prc-files===&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 netcdf sflux_prc_1.001 {&lt;br /&gt;
 dimensions:&lt;br /&gt;
         nx_grid = 349 ;&lt;br /&gt;
         ny_grid = 277 ;&lt;br /&gt;
         time = UNLIMITED ; // (8 currently)&lt;br /&gt;
 variables:&lt;br /&gt;
         float time(time) ;&lt;br /&gt;
                 time:long_name = &amp;quot;Time&amp;quot; ;&lt;br /&gt;
                 time:standard_name = &amp;quot;time&amp;quot; ;&lt;br /&gt;
                 time:units = &amp;quot;days since 2001-01-01&amp;quot; ;&lt;br /&gt;
                 time:base_date = 2001, 1, 1, 0 ;&lt;br /&gt;
         float lon(ny_grid, nx_grid) ;&lt;br /&gt;
                 lon:long_name = &amp;quot;Longitude&amp;quot; ;&lt;br /&gt;
                 lon:standard_name = &amp;quot;longitude&amp;quot; ;&lt;br /&gt;
                 lon:units = &amp;quot;degrees_east&amp;quot; ;&lt;br /&gt;
         float lat(ny_grid, nx_grid) ;&lt;br /&gt;
                 lat:long_name = &amp;quot;Latitude&amp;quot; ;&lt;br /&gt;
                 lat:standard_name = &amp;quot;latitude&amp;quot; ;&lt;br /&gt;
                 lat:units = &amp;quot;degrees_north&amp;quot; ;&lt;br /&gt;
         float prate(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 prate:long_name = &amp;quot;Surface Precipitation Rate&amp;quot; ;&lt;br /&gt;
                 prate:standard_name = &amp;quot;precipitation_flux&amp;quot; ;&lt;br /&gt;
                 prate:units = &amp;quot;kg/m^2/s&amp;quot; ;&lt;br /&gt;
 &lt;br /&gt;
 // global attributes:&lt;br /&gt;
                 :Conventions = &amp;quot;CF-1.0&amp;quot; ;&lt;br /&gt;
 }&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jan</name></author>
		
	</entry>
	<entry>
		<id>http://ccrm.vims.edu/w/index.php?title=Atmospheric_forcing&amp;diff=595</id>
		<title>Atmospheric forcing</title>
		<link rel="alternate" type="text/html" href="http://ccrm.vims.edu/w/index.php?title=Atmospheric_forcing&amp;diff=595"/>
		<updated>2013-01-31T13:26:28Z</updated>

		<summary type="html">&lt;p&gt;Jan: /* rad-files */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Theory==&lt;br /&gt;
&lt;br /&gt;
[http://ccrm.vims.edu/yinglong/wiki_files/HeatExchange-Theory.pdf Here] is some info about the heat exchange module inside SELFE, based on Dr. Mike Zuluaf's slides. &lt;br /&gt;
&lt;br /&gt;
==File description==&lt;br /&gt;
In SELFE, atmoserpic forcings include wind, air pressure and temperature, precipitation, humidity and longwave and shortwave fluxes. These are specified in the netcdf files inside sflux/ dir, and conform to the [http://cf-pcmdi.llnl.gov/documents/cf-conventions/1.0/cf-conventions.html NetCDF Climate and Forecast (CF) Metadata Convention 1.0].&lt;br /&gt;
&lt;br /&gt;
There are 4 types of files in sflux/dir; see [http://www.stccmop.org/CORIE/modeling/selfe/NARR/narr.html this site] for sample files.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;OL&amp;gt;&lt;br /&gt;
  &amp;lt;LI&amp;gt;sflux_inputs.txt: &amp;lt;br/&amp;gt;&lt;br /&gt;
$cat sflux_inputs.txt &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;amp;sflux_inputs   ! file name &amp;lt;br/&amp;gt;&lt;br /&gt;
start_year  = 1998, ! start year &amp;lt;br/&amp;gt;&lt;br /&gt;
start_month = 09, ! start month &amp;lt;br/&amp;gt;&lt;br /&gt;
start_day   = 01, ! start day &amp;lt;br/&amp;gt;&lt;br /&gt;
start_hour  = 0.0, ! start hour &amp;lt;br/&amp;gt;&lt;br /&gt;
utc_start   = 0.0, ! offset from UTC in hours, with positive numbers for western hemishpere &amp;lt;br/&amp;gt;&lt;br /&gt;
/ &amp;lt;br/&amp;gt;&lt;br /&gt;
  &amp;lt;LI&amp;gt;sflux_air_1.0*.nc: netcdf files that have time, wind speed, air temperature and pressure and specific humidity;&lt;br /&gt;
  &amp;lt;LI&amp;gt;sflux_prc_1.0*.nc: netcdf files that have precipitation data; &lt;br /&gt;
  &amp;lt;LI&amp;gt;sflux_rad_1.0*.nc: netcdf files that have downward long and short (solar) wave radiation fluxes.&lt;br /&gt;
&amp;lt;/OL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Using NARR files for your simulation (North America only)==&lt;br /&gt;
&lt;br /&gt;
 First, make sure the  [http://ccrm.vims.edu/yinglong/wiki_files/narr.ll NARR grid] covers your hgrid.ll. &lt;br /&gt;
&lt;br /&gt;
In your run directory, mkdir sflux and inside it, create symbolic links to the NARR files. e.g., if you run starts from June 10, 2004 and ends June 20, 2004, then&lt;br /&gt;
&lt;br /&gt;
sflux_air_1.001.nc --&amp;gt; narr_air.2004_06_10.nc&amp;lt;br/&amp;gt;&lt;br /&gt;
sflux_air_1.002.nc --&amp;gt; narr_air.2004_06_11.nc&amp;lt;br/&amp;gt;&lt;br /&gt;
...&amp;lt;br/&amp;gt;&lt;br /&gt;
sflux_air_1.011.nc --&amp;gt; narr_air.2004_06_20.nc&amp;lt;br/&amp;gt;&lt;br /&gt;
sflux_air_1.012.nc --&amp;gt; narr_air.2004_06_21.nc (extra day to account for time zone difference)&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Similarly for sflux_rad_*.nc and sflux_prc_*.nc. The number &amp;quot;1&amp;quot; after &amp;quot;air_&amp;quot; denotes first data set used; you can use up to 2 sets in SELFE (which combines them with some given weights set in sflux_subs.F90); here you only use 1 set.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Don't forget to update sflux_inputs.txt also.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Preparing your own sflux inputs==&lt;br /&gt;
&lt;br /&gt;
After familiarize yourself with the NARR files and their format, you may embark on creating your own nc files. The best way is to modify existing matlab scripts (src/Utility/Sflux_nc/readnc*.m) included in the source code bundle, which have extensively in-line comments to guide you along the way.&lt;br /&gt;
&lt;br /&gt;
'''Conventions for .nc-files in sflux directory and additional files needed for sflux run:'''&lt;br /&gt;
&lt;br /&gt;
'''wind:''' u-component is eastward, v-comp. is northward (normal math convention, not compass convention)&lt;br /&gt;
&lt;br /&gt;
'''windrot_geo2proj.gr3:''' rotates winds in case they do not align with coordinate axes,&lt;br /&gt;
i.e. lat/lon&lt;br /&gt;
&lt;br /&gt;
'''watertype.gr3:''' 6 is clear water, 7 is muddiest. Search in selfe_init.F90 for watertype.&lt;br /&gt;
===air-files===&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 these lines (displayed using the ncdump utility):&lt;br /&gt;
 netcdf sflux_air_1.001 {&lt;br /&gt;
 dimensions:&lt;br /&gt;
         nx_grid = 349 ;&lt;br /&gt;
         ny_grid = 277 ;&lt;br /&gt;
         time = UNLIMITED ; // (8 currently)&lt;br /&gt;
 variables:&lt;br /&gt;
         float time(time) ;&lt;br /&gt;
                 time:long_name = &amp;quot;Time&amp;quot; ;&lt;br /&gt;
                 time:standard_name = &amp;quot;time&amp;quot; ;&lt;br /&gt;
                 time:units = &amp;quot;days since 2001-01-01&amp;quot; ;&lt;br /&gt;
                 time:base_date = 2001, 1, 1, 0 ;&lt;br /&gt;
         float lon(ny_grid, nx_grid) ;&lt;br /&gt;
                 lon:long_name = &amp;quot;Longitude&amp;quot; ;&lt;br /&gt;
                 lon:standard_name = &amp;quot;longitude&amp;quot; ;&lt;br /&gt;
                 lon:units = &amp;quot;degrees_east&amp;quot; ;&lt;br /&gt;
         float lat(ny_grid, nx_grid) ;&lt;br /&gt;
                 lat:long_name = &amp;quot;Latitude&amp;quot; ;&lt;br /&gt;
                 lat:standard_name = &amp;quot;latitude&amp;quot; ;&lt;br /&gt;
                 lat:units = &amp;quot;degrees_north&amp;quot; ;&lt;br /&gt;
         float uwind(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 uwind:long_name = &amp;quot;Surface Eastward Air Velocity (10m AGL)&amp;quot; ;&lt;br /&gt;
                 uwind:standard_name = &amp;quot;eastward_wind&amp;quot; ;&lt;br /&gt;
                 uwind:units = &amp;quot;m/s&amp;quot; ;&lt;br /&gt;
         float vwind(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 vwind:long_name = &amp;quot;Surface Northward Air Velocity (10m AGL)&amp;quot; ;&lt;br /&gt;
                 vwind:standard_name = &amp;quot;northward_wind&amp;quot; ;&lt;br /&gt;
                 vwind:units = &amp;quot;m/s&amp;quot; ;&lt;br /&gt;
         float prmsl(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 prmsl:long_name = &amp;quot;Pressure reduced to MSL&amp;quot; ;&lt;br /&gt;
                 prmsl:standard_name = &amp;quot;air_pressure_at_sea_level&amp;quot; ;&lt;br /&gt;
                 prmsl:units = &amp;quot;Pa&amp;quot; ;&lt;br /&gt;
         float stmp(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 stmp:long_name = &amp;quot;Surface Air Temperature (2m AGL)&amp;quot; ;&lt;br /&gt;
                 stmp:standard_name = &amp;quot;air_temperature&amp;quot; ;&lt;br /&gt;
                 stmp:units = &amp;quot;K&amp;quot; ;&lt;br /&gt;
         float spfh(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 spfh:long_name = &amp;quot;Surface Specific Humidity (2m AGL)&amp;quot; ;&lt;br /&gt;
                 spfh:standard_name = &amp;quot;specific_humidity&amp;quot; ;&lt;br /&gt;
                 spfh:units = &amp;quot;1&amp;quot; ;&lt;br /&gt;
 &lt;br /&gt;
 // global attributes:&lt;br /&gt;
                 :Conventions = &amp;quot;CF-1.0&amp;quot; ;&lt;br /&gt;
 }&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===rad-files===&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 netcdf sflux_rad_1.001 {&lt;br /&gt;
 dimensions:&lt;br /&gt;
         nx_grid = 349 ;&lt;br /&gt;
         ny_grid = 277 ;&lt;br /&gt;
         time = UNLIMITED ; // (8 currently)&lt;br /&gt;
 variables:&lt;br /&gt;
         float time(time) ;&lt;br /&gt;
                 time:long_name = &amp;quot;Time&amp;quot; ;&lt;br /&gt;
                 time:standard_name = &amp;quot;time&amp;quot; ;&lt;br /&gt;
                 time:units = &amp;quot;days since 2001-01-01&amp;quot; ;&lt;br /&gt;
                 time:base_date = 2001, 1, 1, 0 ;&lt;br /&gt;
         float lon(ny_grid, nx_grid) ;&lt;br /&gt;
                 lon:long_name = &amp;quot;Longitude&amp;quot; ;&lt;br /&gt;
                 lon:standard_name = &amp;quot;longitude&amp;quot; ;&lt;br /&gt;
                 lon:units = &amp;quot;degrees_east&amp;quot; ;&lt;br /&gt;
         float lat(ny_grid, nx_grid) ;&lt;br /&gt;
                 lat:long_name = &amp;quot;Latitude&amp;quot; ;&lt;br /&gt;
                 lat:standard_name = &amp;quot;latitude&amp;quot; ;&lt;br /&gt;
                 lat:units = &amp;quot;degrees_north&amp;quot; ;&lt;br /&gt;
         float dlwrf(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 dlwrf:long_name = &amp;quot;Downward Long Wave Radiation Flux&amp;quot; ;&lt;br /&gt;
                 dlwrf:standard_name = &amp;quot;surface_downwelling_longwave_flux_in_air&amp;quot; ;&lt;br /&gt;
                 dlwrf:units = &amp;quot;W/m^2&amp;quot; ;&lt;br /&gt;
         float dswrf(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 dswrf:long_name = &amp;quot;Downward Short Wave Radiation Flux&amp;quot; ;&lt;br /&gt;
                 dswrf:standard_name = &amp;quot;surface_downwelling_shortwave_flux_in_air&amp;quot; ;&lt;br /&gt;
                 dswrf:units = &amp;quot;W/m^2&amp;quot; ;&lt;br /&gt;
 &lt;br /&gt;
 // global attributes:&lt;br /&gt;
                 :Conventions = &amp;quot;CF-1.0&amp;quot; ;&lt;br /&gt;
 }&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
===prc-files===&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 netcdf sflux_prc_1.001 {&lt;br /&gt;
 dimensions:&lt;br /&gt;
         nx_grid = 349 ;&lt;br /&gt;
         ny_grid = 277 ;&lt;br /&gt;
         time = UNLIMITED ; // (8 currently)&lt;br /&gt;
 variables:&lt;br /&gt;
         float time(time) ;&lt;br /&gt;
                 time:long_name = &amp;quot;Time&amp;quot; ;&lt;br /&gt;
                 time:standard_name = &amp;quot;time&amp;quot; ;&lt;br /&gt;
                 time:units = &amp;quot;days since 2001-01-01&amp;quot; ;&lt;br /&gt;
                 time:base_date = 2001, 1, 1, 0 ;&lt;br /&gt;
         float lon(ny_grid, nx_grid) ;&lt;br /&gt;
                 lon:long_name = &amp;quot;Longitude&amp;quot; ;&lt;br /&gt;
                 lon:standard_name = &amp;quot;longitude&amp;quot; ;&lt;br /&gt;
                 lon:units = &amp;quot;degrees_east&amp;quot; ;&lt;br /&gt;
         float lat(ny_grid, nx_grid) ;&lt;br /&gt;
                 lat:long_name = &amp;quot;Latitude&amp;quot; ;&lt;br /&gt;
                 lat:standard_name = &amp;quot;latitude&amp;quot; ;&lt;br /&gt;
                 lat:units = &amp;quot;degrees_north&amp;quot; ;&lt;br /&gt;
         float prate(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 prate:long_name = &amp;quot;Surface Precipitation Rate&amp;quot; ;&lt;br /&gt;
                 prate:standard_name = &amp;quot;precipitation_flux&amp;quot; ;&lt;br /&gt;
                 prate:units = &amp;quot;kg/m^2/s&amp;quot; ;&lt;br /&gt;
 &lt;br /&gt;
 // global attributes:&lt;br /&gt;
                 :Conventions = &amp;quot;CF-1.0&amp;quot; ;&lt;br /&gt;
 }&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jan</name></author>
		
	</entry>
	<entry>
		<id>http://ccrm.vims.edu/w/index.php?title=Atmospheric_forcing&amp;diff=594</id>
		<title>Atmospheric forcing</title>
		<link rel="alternate" type="text/html" href="http://ccrm.vims.edu/w/index.php?title=Atmospheric_forcing&amp;diff=594"/>
		<updated>2013-01-31T13:26:06Z</updated>

		<summary type="html">&lt;p&gt;Jan: /* Preparing your own sflux inputs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Theory==&lt;br /&gt;
&lt;br /&gt;
[http://ccrm.vims.edu/yinglong/wiki_files/HeatExchange-Theory.pdf Here] is some info about the heat exchange module inside SELFE, based on Dr. Mike Zuluaf's slides. &lt;br /&gt;
&lt;br /&gt;
==File description==&lt;br /&gt;
In SELFE, atmoserpic forcings include wind, air pressure and temperature, precipitation, humidity and longwave and shortwave fluxes. These are specified in the netcdf files inside sflux/ dir, and conform to the [http://cf-pcmdi.llnl.gov/documents/cf-conventions/1.0/cf-conventions.html NetCDF Climate and Forecast (CF) Metadata Convention 1.0].&lt;br /&gt;
&lt;br /&gt;
There are 4 types of files in sflux/dir; see [http://www.stccmop.org/CORIE/modeling/selfe/NARR/narr.html this site] for sample files.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;OL&amp;gt;&lt;br /&gt;
  &amp;lt;LI&amp;gt;sflux_inputs.txt: &amp;lt;br/&amp;gt;&lt;br /&gt;
$cat sflux_inputs.txt &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;amp;sflux_inputs   ! file name &amp;lt;br/&amp;gt;&lt;br /&gt;
start_year  = 1998, ! start year &amp;lt;br/&amp;gt;&lt;br /&gt;
start_month = 09, ! start month &amp;lt;br/&amp;gt;&lt;br /&gt;
start_day   = 01, ! start day &amp;lt;br/&amp;gt;&lt;br /&gt;
start_hour  = 0.0, ! start hour &amp;lt;br/&amp;gt;&lt;br /&gt;
utc_start   = 0.0, ! offset from UTC in hours, with positive numbers for western hemishpere &amp;lt;br/&amp;gt;&lt;br /&gt;
/ &amp;lt;br/&amp;gt;&lt;br /&gt;
  &amp;lt;LI&amp;gt;sflux_air_1.0*.nc: netcdf files that have time, wind speed, air temperature and pressure and specific humidity;&lt;br /&gt;
  &amp;lt;LI&amp;gt;sflux_prc_1.0*.nc: netcdf files that have precipitation data; &lt;br /&gt;
  &amp;lt;LI&amp;gt;sflux_rad_1.0*.nc: netcdf files that have downward long and short (solar) wave radiation fluxes.&lt;br /&gt;
&amp;lt;/OL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Using NARR files for your simulation (North America only)==&lt;br /&gt;
&lt;br /&gt;
 First, make sure the  [http://ccrm.vims.edu/yinglong/wiki_files/narr.ll NARR grid] covers your hgrid.ll. &lt;br /&gt;
&lt;br /&gt;
In your run directory, mkdir sflux and inside it, create symbolic links to the NARR files. e.g., if you run starts from June 10, 2004 and ends June 20, 2004, then&lt;br /&gt;
&lt;br /&gt;
sflux_air_1.001.nc --&amp;gt; narr_air.2004_06_10.nc&amp;lt;br/&amp;gt;&lt;br /&gt;
sflux_air_1.002.nc --&amp;gt; narr_air.2004_06_11.nc&amp;lt;br/&amp;gt;&lt;br /&gt;
...&amp;lt;br/&amp;gt;&lt;br /&gt;
sflux_air_1.011.nc --&amp;gt; narr_air.2004_06_20.nc&amp;lt;br/&amp;gt;&lt;br /&gt;
sflux_air_1.012.nc --&amp;gt; narr_air.2004_06_21.nc (extra day to account for time zone difference)&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Similarly for sflux_rad_*.nc and sflux_prc_*.nc. The number &amp;quot;1&amp;quot; after &amp;quot;air_&amp;quot; denotes first data set used; you can use up to 2 sets in SELFE (which combines them with some given weights set in sflux_subs.F90); here you only use 1 set.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Don't forget to update sflux_inputs.txt also.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Preparing your own sflux inputs==&lt;br /&gt;
&lt;br /&gt;
After familiarize yourself with the NARR files and their format, you may embark on creating your own nc files. The best way is to modify existing matlab scripts (src/Utility/Sflux_nc/readnc*.m) included in the source code bundle, which have extensively in-line comments to guide you along the way.&lt;br /&gt;
&lt;br /&gt;
'''Conventions for .nc-files in sflux directory and additional files needed for sflux run:'''&lt;br /&gt;
&lt;br /&gt;
'''wind:''' u-component is eastward, v-comp. is northward (normal math convention, not compass convention)&lt;br /&gt;
&lt;br /&gt;
'''windrot_geo2proj.gr3:''' rotates winds in case they do not align with coordinate axes,&lt;br /&gt;
i.e. lat/lon&lt;br /&gt;
&lt;br /&gt;
'''watertype.gr3:''' 6 is clear water, 7 is muddiest. Search in selfe_init.F90 for watertype.&lt;br /&gt;
===air-files===&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 these lines (displayed using the ncdump utility):&lt;br /&gt;
 netcdf sflux_air_1.001 {&lt;br /&gt;
 dimensions:&lt;br /&gt;
         nx_grid = 349 ;&lt;br /&gt;
         ny_grid = 277 ;&lt;br /&gt;
         time = UNLIMITED ; // (8 currently)&lt;br /&gt;
 variables:&lt;br /&gt;
         float time(time) ;&lt;br /&gt;
                 time:long_name = &amp;quot;Time&amp;quot; ;&lt;br /&gt;
                 time:standard_name = &amp;quot;time&amp;quot; ;&lt;br /&gt;
                 time:units = &amp;quot;days since 2001-01-01&amp;quot; ;&lt;br /&gt;
                 time:base_date = 2001, 1, 1, 0 ;&lt;br /&gt;
         float lon(ny_grid, nx_grid) ;&lt;br /&gt;
                 lon:long_name = &amp;quot;Longitude&amp;quot; ;&lt;br /&gt;
                 lon:standard_name = &amp;quot;longitude&amp;quot; ;&lt;br /&gt;
                 lon:units = &amp;quot;degrees_east&amp;quot; ;&lt;br /&gt;
         float lat(ny_grid, nx_grid) ;&lt;br /&gt;
                 lat:long_name = &amp;quot;Latitude&amp;quot; ;&lt;br /&gt;
                 lat:standard_name = &amp;quot;latitude&amp;quot; ;&lt;br /&gt;
                 lat:units = &amp;quot;degrees_north&amp;quot; ;&lt;br /&gt;
         float uwind(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 uwind:long_name = &amp;quot;Surface Eastward Air Velocity (10m AGL)&amp;quot; ;&lt;br /&gt;
                 uwind:standard_name = &amp;quot;eastward_wind&amp;quot; ;&lt;br /&gt;
                 uwind:units = &amp;quot;m/s&amp;quot; ;&lt;br /&gt;
         float vwind(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 vwind:long_name = &amp;quot;Surface Northward Air Velocity (10m AGL)&amp;quot; ;&lt;br /&gt;
                 vwind:standard_name = &amp;quot;northward_wind&amp;quot; ;&lt;br /&gt;
                 vwind:units = &amp;quot;m/s&amp;quot; ;&lt;br /&gt;
         float prmsl(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 prmsl:long_name = &amp;quot;Pressure reduced to MSL&amp;quot; ;&lt;br /&gt;
                 prmsl:standard_name = &amp;quot;air_pressure_at_sea_level&amp;quot; ;&lt;br /&gt;
                 prmsl:units = &amp;quot;Pa&amp;quot; ;&lt;br /&gt;
         float stmp(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 stmp:long_name = &amp;quot;Surface Air Temperature (2m AGL)&amp;quot; ;&lt;br /&gt;
                 stmp:standard_name = &amp;quot;air_temperature&amp;quot; ;&lt;br /&gt;
                 stmp:units = &amp;quot;K&amp;quot; ;&lt;br /&gt;
         float spfh(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 spfh:long_name = &amp;quot;Surface Specific Humidity (2m AGL)&amp;quot; ;&lt;br /&gt;
                 spfh:standard_name = &amp;quot;specific_humidity&amp;quot; ;&lt;br /&gt;
                 spfh:units = &amp;quot;1&amp;quot; ;&lt;br /&gt;
 &lt;br /&gt;
 // global attributes:&lt;br /&gt;
                 :Conventions = &amp;quot;CF-1.0&amp;quot; ;&lt;br /&gt;
 }&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===rad-files===&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 netcdf sflux_rad_1.001 {&lt;br /&gt;
 dimensions:&lt;br /&gt;
         nx_grid = 349 ;&lt;br /&gt;
         ny_grid = 277 ;&lt;br /&gt;
         time = UNLIMITED ; // (8 currently)&lt;br /&gt;
 variables:&lt;br /&gt;
         float time(time) ;&lt;br /&gt;
                 time:long_name = &amp;quot;Time&amp;quot; ;&lt;br /&gt;
                 time:standard_name = &amp;quot;time&amp;quot; ;&lt;br /&gt;
                 time:units = &amp;quot;days since 2001-01-01&amp;quot; ;&lt;br /&gt;
                 time:base_date = 2001, 1, 1, 0 ;&lt;br /&gt;
         float lon(ny_grid, nx_grid) ;&lt;br /&gt;
                 lon:long_name = &amp;quot;Longitude&amp;quot; ;&lt;br /&gt;
                 lon:standard_name = &amp;quot;longitude&amp;quot; ;&lt;br /&gt;
                 lon:units = &amp;quot;degrees_east&amp;quot; ;&lt;br /&gt;
         float lat(ny_grid, nx_grid) ;&lt;br /&gt;
                 lat:long_name = &amp;quot;Latitude&amp;quot; ;&lt;br /&gt;
                 lat:standard_name = &amp;quot;latitude&amp;quot; ;&lt;br /&gt;
                 lat:units = &amp;quot;degrees_north&amp;quot; ;&lt;br /&gt;
         float dlwrf(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 dlwrf:long_name = &amp;quot;Downward Long Wave Radiation Flux&amp;quot; ;&lt;br /&gt;
                 dlwrf:standard_name = &amp;quot;surface_downwelling_longwave_flux_in_air&amp;quot; ;&lt;br /&gt;
                 dlwrf:units = &amp;quot;W/m^2&amp;quot; ;&lt;br /&gt;
         float dswrf(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 dswrf:long_name = &amp;quot;Downward Short Wave Radiation Flux&amp;quot; ;&lt;br /&gt;
                 dswrf:standard_name = &amp;quot;surface_downwelling_shortwave_flux_in_air&amp;quot; ;&lt;br /&gt;
                 dswrf:units = &amp;quot;W/m^2&amp;quot; ;&lt;br /&gt;
 &lt;br /&gt;
 // global attributes:&lt;br /&gt;
                 :Conventions = &amp;quot;CF-1.0&amp;quot; ;&lt;br /&gt;
 }&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
prc-files&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 netcdf sflux_prc_1.001 {&lt;br /&gt;
 dimensions:&lt;br /&gt;
         nx_grid = 349 ;&lt;br /&gt;
         ny_grid = 277 ;&lt;br /&gt;
         time = UNLIMITED ; // (8 currently)&lt;br /&gt;
 variables:&lt;br /&gt;
         float time(time) ;&lt;br /&gt;
                 time:long_name = &amp;quot;Time&amp;quot; ;&lt;br /&gt;
                 time:standard_name = &amp;quot;time&amp;quot; ;&lt;br /&gt;
                 time:units = &amp;quot;days since 2001-01-01&amp;quot; ;&lt;br /&gt;
                 time:base_date = 2001, 1, 1, 0 ;&lt;br /&gt;
         float lon(ny_grid, nx_grid) ;&lt;br /&gt;
                 lon:long_name = &amp;quot;Longitude&amp;quot; ;&lt;br /&gt;
                 lon:standard_name = &amp;quot;longitude&amp;quot; ;&lt;br /&gt;
                 lon:units = &amp;quot;degrees_east&amp;quot; ;&lt;br /&gt;
         float lat(ny_grid, nx_grid) ;&lt;br /&gt;
                 lat:long_name = &amp;quot;Latitude&amp;quot; ;&lt;br /&gt;
                 lat:standard_name = &amp;quot;latitude&amp;quot; ;&lt;br /&gt;
                 lat:units = &amp;quot;degrees_north&amp;quot; ;&lt;br /&gt;
         float prate(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 prate:long_name = &amp;quot;Surface Precipitation Rate&amp;quot; ;&lt;br /&gt;
                 prate:standard_name = &amp;quot;precipitation_flux&amp;quot; ;&lt;br /&gt;
                 prate:units = &amp;quot;kg/m^2/s&amp;quot; ;&lt;br /&gt;
 &lt;br /&gt;
 // global attributes:&lt;br /&gt;
                 :Conventions = &amp;quot;CF-1.0&amp;quot; ;&lt;br /&gt;
 }&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jan</name></author>
		
	</entry>
	<entry>
		<id>http://ccrm.vims.edu/w/index.php?title=Atmospheric_forcing&amp;diff=593</id>
		<title>Atmospheric forcing</title>
		<link rel="alternate" type="text/html" href="http://ccrm.vims.edu/w/index.php?title=Atmospheric_forcing&amp;diff=593"/>
		<updated>2013-01-31T13:25:15Z</updated>

		<summary type="html">&lt;p&gt;Jan: /* air-files: */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Theory==&lt;br /&gt;
&lt;br /&gt;
[http://ccrm.vims.edu/yinglong/wiki_files/HeatExchange-Theory.pdf Here] is some info about the heat exchange module inside SELFE, based on Dr. Mike Zuluaf's slides. &lt;br /&gt;
&lt;br /&gt;
==File description==&lt;br /&gt;
In SELFE, atmoserpic forcings include wind, air pressure and temperature, precipitation, humidity and longwave and shortwave fluxes. These are specified in the netcdf files inside sflux/ dir, and conform to the [http://cf-pcmdi.llnl.gov/documents/cf-conventions/1.0/cf-conventions.html NetCDF Climate and Forecast (CF) Metadata Convention 1.0].&lt;br /&gt;
&lt;br /&gt;
There are 4 types of files in sflux/dir; see [http://www.stccmop.org/CORIE/modeling/selfe/NARR/narr.html this site] for sample files.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;OL&amp;gt;&lt;br /&gt;
  &amp;lt;LI&amp;gt;sflux_inputs.txt: &amp;lt;br/&amp;gt;&lt;br /&gt;
$cat sflux_inputs.txt &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;amp;sflux_inputs   ! file name &amp;lt;br/&amp;gt;&lt;br /&gt;
start_year  = 1998, ! start year &amp;lt;br/&amp;gt;&lt;br /&gt;
start_month = 09, ! start month &amp;lt;br/&amp;gt;&lt;br /&gt;
start_day   = 01, ! start day &amp;lt;br/&amp;gt;&lt;br /&gt;
start_hour  = 0.0, ! start hour &amp;lt;br/&amp;gt;&lt;br /&gt;
utc_start   = 0.0, ! offset from UTC in hours, with positive numbers for western hemishpere &amp;lt;br/&amp;gt;&lt;br /&gt;
/ &amp;lt;br/&amp;gt;&lt;br /&gt;
  &amp;lt;LI&amp;gt;sflux_air_1.0*.nc: netcdf files that have time, wind speed, air temperature and pressure and specific humidity;&lt;br /&gt;
  &amp;lt;LI&amp;gt;sflux_prc_1.0*.nc: netcdf files that have precipitation data; &lt;br /&gt;
  &amp;lt;LI&amp;gt;sflux_rad_1.0*.nc: netcdf files that have downward long and short (solar) wave radiation fluxes.&lt;br /&gt;
&amp;lt;/OL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Using NARR files for your simulation (North America only)==&lt;br /&gt;
&lt;br /&gt;
 First, make sure the  [http://ccrm.vims.edu/yinglong/wiki_files/narr.ll NARR grid] covers your hgrid.ll. &lt;br /&gt;
&lt;br /&gt;
In your run directory, mkdir sflux and inside it, create symbolic links to the NARR files. e.g., if you run starts from June 10, 2004 and ends June 20, 2004, then&lt;br /&gt;
&lt;br /&gt;
sflux_air_1.001.nc --&amp;gt; narr_air.2004_06_10.nc&amp;lt;br/&amp;gt;&lt;br /&gt;
sflux_air_1.002.nc --&amp;gt; narr_air.2004_06_11.nc&amp;lt;br/&amp;gt;&lt;br /&gt;
...&amp;lt;br/&amp;gt;&lt;br /&gt;
sflux_air_1.011.nc --&amp;gt; narr_air.2004_06_20.nc&amp;lt;br/&amp;gt;&lt;br /&gt;
sflux_air_1.012.nc --&amp;gt; narr_air.2004_06_21.nc (extra day to account for time zone difference)&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Similarly for sflux_rad_*.nc and sflux_prc_*.nc. The number &amp;quot;1&amp;quot; after &amp;quot;air_&amp;quot; denotes first data set used; you can use up to 2 sets in SELFE (which combines them with some given weights set in sflux_subs.F90); here you only use 1 set.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Don't forget to update sflux_inputs.txt also.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Preparing your own sflux inputs==&lt;br /&gt;
&lt;br /&gt;
After familiarize yourself with the NARR files and their format, you may embark on creating your own nc files. The best way is to modify existing matlab scripts (src/Utility/Sflux_nc/readnc*.m) included in the source code bundle, which have extensively in-line comments to guide you along the way.&lt;br /&gt;
&lt;br /&gt;
'''Conventions for .nc-files in sflux directory and additional files needed for sflux run:'''&lt;br /&gt;
&lt;br /&gt;
'''wind:''' u-component is eastward, v-comp. is northward (normal math convention, not compass convention)&lt;br /&gt;
&lt;br /&gt;
'''windrot_geo2proj.gr3:''' rotates winds in case they do not align with coordinate axes,&lt;br /&gt;
i.e. lat/lon&lt;br /&gt;
&lt;br /&gt;
'''watertype.gr3:''' 6 is clear water, 7 is muddiest. Search in selfe_init.F90 for watertype.&lt;br /&gt;
===air-files===&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 these lines (displayed using the ncdump utility):&lt;br /&gt;
 netcdf sflux_air_1.001 {&lt;br /&gt;
 dimensions:&lt;br /&gt;
         nx_grid = 349 ;&lt;br /&gt;
         ny_grid = 277 ;&lt;br /&gt;
         time = UNLIMITED ; // (8 currently)&lt;br /&gt;
 variables:&lt;br /&gt;
         float time(time) ;&lt;br /&gt;
                 time:long_name = &amp;quot;Time&amp;quot; ;&lt;br /&gt;
                 time:standard_name = &amp;quot;time&amp;quot; ;&lt;br /&gt;
                 time:units = &amp;quot;days since 2001-01-01&amp;quot; ;&lt;br /&gt;
                 time:base_date = 2001, 1, 1, 0 ;&lt;br /&gt;
         float lon(ny_grid, nx_grid) ;&lt;br /&gt;
                 lon:long_name = &amp;quot;Longitude&amp;quot; ;&lt;br /&gt;
                 lon:standard_name = &amp;quot;longitude&amp;quot; ;&lt;br /&gt;
                 lon:units = &amp;quot;degrees_east&amp;quot; ;&lt;br /&gt;
         float lat(ny_grid, nx_grid) ;&lt;br /&gt;
                 lat:long_name = &amp;quot;Latitude&amp;quot; ;&lt;br /&gt;
                 lat:standard_name = &amp;quot;latitude&amp;quot; ;&lt;br /&gt;
                 lat:units = &amp;quot;degrees_north&amp;quot; ;&lt;br /&gt;
         float uwind(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 uwind:long_name = &amp;quot;Surface Eastward Air Velocity (10m AGL)&amp;quot; ;&lt;br /&gt;
                 uwind:standard_name = &amp;quot;eastward_wind&amp;quot; ;&lt;br /&gt;
                 uwind:units = &amp;quot;m/s&amp;quot; ;&lt;br /&gt;
         float vwind(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 vwind:long_name = &amp;quot;Surface Northward Air Velocity (10m AGL)&amp;quot; ;&lt;br /&gt;
                 vwind:standard_name = &amp;quot;northward_wind&amp;quot; ;&lt;br /&gt;
                 vwind:units = &amp;quot;m/s&amp;quot; ;&lt;br /&gt;
         float prmsl(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 prmsl:long_name = &amp;quot;Pressure reduced to MSL&amp;quot; ;&lt;br /&gt;
                 prmsl:standard_name = &amp;quot;air_pressure_at_sea_level&amp;quot; ;&lt;br /&gt;
                 prmsl:units = &amp;quot;Pa&amp;quot; ;&lt;br /&gt;
         float stmp(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 stmp:long_name = &amp;quot;Surface Air Temperature (2m AGL)&amp;quot; ;&lt;br /&gt;
                 stmp:standard_name = &amp;quot;air_temperature&amp;quot; ;&lt;br /&gt;
                 stmp:units = &amp;quot;K&amp;quot; ;&lt;br /&gt;
         float spfh(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 spfh:long_name = &amp;quot;Surface Specific Humidity (2m AGL)&amp;quot; ;&lt;br /&gt;
                 spfh:standard_name = &amp;quot;specific_humidity&amp;quot; ;&lt;br /&gt;
                 spfh:units = &amp;quot;1&amp;quot; ;&lt;br /&gt;
 &lt;br /&gt;
 // global attributes:&lt;br /&gt;
                 :Conventions = &amp;quot;CF-1.0&amp;quot; ;&lt;br /&gt;
 }&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===rad-files===&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 netcdf sflux_rad_1.001 {&lt;br /&gt;
 dimensions:&lt;br /&gt;
         nx_grid = 349 ;&lt;br /&gt;
         ny_grid = 277 ;&lt;br /&gt;
         time = UNLIMITED ; // (8 currently)&lt;br /&gt;
 variables:&lt;br /&gt;
         float time(time) ;&lt;br /&gt;
                 time:long_name = &amp;quot;Time&amp;quot; ;&lt;br /&gt;
                 time:standard_name = &amp;quot;time&amp;quot; ;&lt;br /&gt;
                 time:units = &amp;quot;days since 2001-01-01&amp;quot; ;&lt;br /&gt;
                 time:base_date = 2001, 1, 1, 0 ;&lt;br /&gt;
         float lon(ny_grid, nx_grid) ;&lt;br /&gt;
                 lon:long_name = &amp;quot;Longitude&amp;quot; ;&lt;br /&gt;
                 lon:standard_name = &amp;quot;longitude&amp;quot; ;&lt;br /&gt;
                 lon:units = &amp;quot;degrees_east&amp;quot; ;&lt;br /&gt;
         float lat(ny_grid, nx_grid) ;&lt;br /&gt;
                 lat:long_name = &amp;quot;Latitude&amp;quot; ;&lt;br /&gt;
                 lat:standard_name = &amp;quot;latitude&amp;quot; ;&lt;br /&gt;
                 lat:units = &amp;quot;degrees_north&amp;quot; ;&lt;br /&gt;
         float dlwrf(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 dlwrf:long_name = &amp;quot;Downward Long Wave Radiation Flux&amp;quot; ;&lt;br /&gt;
                 dlwrf:standard_name = &amp;quot;surface_downwelling_longwave_flux_in_air&amp;quot; ;&lt;br /&gt;
                 dlwrf:units = &amp;quot;W/m^2&amp;quot; ;&lt;br /&gt;
         float dswrf(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 dswrf:long_name = &amp;quot;Downward Short Wave Radiation Flux&amp;quot; ;&lt;br /&gt;
                 dswrf:standard_name = &amp;quot;surface_downwelling_shortwave_flux_in_air&amp;quot; ;&lt;br /&gt;
                 dswrf:units = &amp;quot;W/m^2&amp;quot; ;&lt;br /&gt;
 &lt;br /&gt;
 // global attributes:&lt;br /&gt;
                 :Conventions = &amp;quot;CF-1.0&amp;quot; ;&lt;br /&gt;
 }&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jan</name></author>
		
	</entry>
	<entry>
		<id>http://ccrm.vims.edu/w/index.php?title=Atmospheric_forcing&amp;diff=592</id>
		<title>Atmospheric forcing</title>
		<link rel="alternate" type="text/html" href="http://ccrm.vims.edu/w/index.php?title=Atmospheric_forcing&amp;diff=592"/>
		<updated>2013-01-31T13:24:55Z</updated>

		<summary type="html">&lt;p&gt;Jan: /* air-files */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Theory==&lt;br /&gt;
&lt;br /&gt;
[http://ccrm.vims.edu/yinglong/wiki_files/HeatExchange-Theory.pdf Here] is some info about the heat exchange module inside SELFE, based on Dr. Mike Zuluaf's slides. &lt;br /&gt;
&lt;br /&gt;
==File description==&lt;br /&gt;
In SELFE, atmoserpic forcings include wind, air pressure and temperature, precipitation, humidity and longwave and shortwave fluxes. These are specified in the netcdf files inside sflux/ dir, and conform to the [http://cf-pcmdi.llnl.gov/documents/cf-conventions/1.0/cf-conventions.html NetCDF Climate and Forecast (CF) Metadata Convention 1.0].&lt;br /&gt;
&lt;br /&gt;
There are 4 types of files in sflux/dir; see [http://www.stccmop.org/CORIE/modeling/selfe/NARR/narr.html this site] for sample files.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;OL&amp;gt;&lt;br /&gt;
  &amp;lt;LI&amp;gt;sflux_inputs.txt: &amp;lt;br/&amp;gt;&lt;br /&gt;
$cat sflux_inputs.txt &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;amp;sflux_inputs   ! file name &amp;lt;br/&amp;gt;&lt;br /&gt;
start_year  = 1998, ! start year &amp;lt;br/&amp;gt;&lt;br /&gt;
start_month = 09, ! start month &amp;lt;br/&amp;gt;&lt;br /&gt;
start_day   = 01, ! start day &amp;lt;br/&amp;gt;&lt;br /&gt;
start_hour  = 0.0, ! start hour &amp;lt;br/&amp;gt;&lt;br /&gt;
utc_start   = 0.0, ! offset from UTC in hours, with positive numbers for western hemishpere &amp;lt;br/&amp;gt;&lt;br /&gt;
/ &amp;lt;br/&amp;gt;&lt;br /&gt;
  &amp;lt;LI&amp;gt;sflux_air_1.0*.nc: netcdf files that have time, wind speed, air temperature and pressure and specific humidity;&lt;br /&gt;
  &amp;lt;LI&amp;gt;sflux_prc_1.0*.nc: netcdf files that have precipitation data; &lt;br /&gt;
  &amp;lt;LI&amp;gt;sflux_rad_1.0*.nc: netcdf files that have downward long and short (solar) wave radiation fluxes.&lt;br /&gt;
&amp;lt;/OL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Using NARR files for your simulation (North America only)==&lt;br /&gt;
&lt;br /&gt;
 First, make sure the  [http://ccrm.vims.edu/yinglong/wiki_files/narr.ll NARR grid] covers your hgrid.ll. &lt;br /&gt;
&lt;br /&gt;
In your run directory, mkdir sflux and inside it, create symbolic links to the NARR files. e.g., if you run starts from June 10, 2004 and ends June 20, 2004, then&lt;br /&gt;
&lt;br /&gt;
sflux_air_1.001.nc --&amp;gt; narr_air.2004_06_10.nc&amp;lt;br/&amp;gt;&lt;br /&gt;
sflux_air_1.002.nc --&amp;gt; narr_air.2004_06_11.nc&amp;lt;br/&amp;gt;&lt;br /&gt;
...&amp;lt;br/&amp;gt;&lt;br /&gt;
sflux_air_1.011.nc --&amp;gt; narr_air.2004_06_20.nc&amp;lt;br/&amp;gt;&lt;br /&gt;
sflux_air_1.012.nc --&amp;gt; narr_air.2004_06_21.nc (extra day to account for time zone difference)&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Similarly for sflux_rad_*.nc and sflux_prc_*.nc. The number &amp;quot;1&amp;quot; after &amp;quot;air_&amp;quot; denotes first data set used; you can use up to 2 sets in SELFE (which combines them with some given weights set in sflux_subs.F90); here you only use 1 set.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Don't forget to update sflux_inputs.txt also.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Preparing your own sflux inputs==&lt;br /&gt;
&lt;br /&gt;
After familiarize yourself with the NARR files and their format, you may embark on creating your own nc files. The best way is to modify existing matlab scripts (src/Utility/Sflux_nc/readnc*.m) included in the source code bundle, which have extensively in-line comments to guide you along the way.&lt;br /&gt;
&lt;br /&gt;
'''Conventions for .nc-files in sflux directory and additional files needed for sflux run:'''&lt;br /&gt;
&lt;br /&gt;
'''wind:''' u-component is eastward, v-comp. is northward (normal math convention, not compass convention)&lt;br /&gt;
&lt;br /&gt;
'''windrot_geo2proj.gr3:''' rotates winds in case they do not align with coordinate axes,&lt;br /&gt;
i.e. lat/lon&lt;br /&gt;
&lt;br /&gt;
'''watertype.gr3:''' 6 is clear water, 7 is muddiest. Search in selfe_init.F90 for watertype.&lt;br /&gt;
===air-files:===&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 these lines (displayed using the ncdump utility):&lt;br /&gt;
 netcdf sflux_air_1.001 {&lt;br /&gt;
 dimensions:&lt;br /&gt;
         nx_grid = 349 ;&lt;br /&gt;
         ny_grid = 277 ;&lt;br /&gt;
         time = UNLIMITED ; // (8 currently)&lt;br /&gt;
 variables:&lt;br /&gt;
         float time(time) ;&lt;br /&gt;
                 time:long_name = &amp;quot;Time&amp;quot; ;&lt;br /&gt;
                 time:standard_name = &amp;quot;time&amp;quot; ;&lt;br /&gt;
                 time:units = &amp;quot;days since 2001-01-01&amp;quot; ;&lt;br /&gt;
                 time:base_date = 2001, 1, 1, 0 ;&lt;br /&gt;
         float lon(ny_grid, nx_grid) ;&lt;br /&gt;
                 lon:long_name = &amp;quot;Longitude&amp;quot; ;&lt;br /&gt;
                 lon:standard_name = &amp;quot;longitude&amp;quot; ;&lt;br /&gt;
                 lon:units = &amp;quot;degrees_east&amp;quot; ;&lt;br /&gt;
         float lat(ny_grid, nx_grid) ;&lt;br /&gt;
                 lat:long_name = &amp;quot;Latitude&amp;quot; ;&lt;br /&gt;
                 lat:standard_name = &amp;quot;latitude&amp;quot; ;&lt;br /&gt;
                 lat:units = &amp;quot;degrees_north&amp;quot; ;&lt;br /&gt;
         float uwind(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 uwind:long_name = &amp;quot;Surface Eastward Air Velocity (10m AGL)&amp;quot; ;&lt;br /&gt;
                 uwind:standard_name = &amp;quot;eastward_wind&amp;quot; ;&lt;br /&gt;
                 uwind:units = &amp;quot;m/s&amp;quot; ;&lt;br /&gt;
         float vwind(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 vwind:long_name = &amp;quot;Surface Northward Air Velocity (10m AGL)&amp;quot; ;&lt;br /&gt;
                 vwind:standard_name = &amp;quot;northward_wind&amp;quot; ;&lt;br /&gt;
                 vwind:units = &amp;quot;m/s&amp;quot; ;&lt;br /&gt;
         float prmsl(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 prmsl:long_name = &amp;quot;Pressure reduced to MSL&amp;quot; ;&lt;br /&gt;
                 prmsl:standard_name = &amp;quot;air_pressure_at_sea_level&amp;quot; ;&lt;br /&gt;
                 prmsl:units = &amp;quot;Pa&amp;quot; ;&lt;br /&gt;
         float stmp(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 stmp:long_name = &amp;quot;Surface Air Temperature (2m AGL)&amp;quot; ;&lt;br /&gt;
                 stmp:standard_name = &amp;quot;air_temperature&amp;quot; ;&lt;br /&gt;
                 stmp:units = &amp;quot;K&amp;quot; ;&lt;br /&gt;
         float spfh(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 spfh:long_name = &amp;quot;Surface Specific Humidity (2m AGL)&amp;quot; ;&lt;br /&gt;
                 spfh:standard_name = &amp;quot;specific_humidity&amp;quot; ;&lt;br /&gt;
                 spfh:units = &amp;quot;1&amp;quot; ;&lt;br /&gt;
 &lt;br /&gt;
 // global attributes:&lt;br /&gt;
                 :Conventions = &amp;quot;CF-1.0&amp;quot; ;&lt;br /&gt;
 }&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===rad-files===&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 netcdf sflux_rad_1.001 {&lt;br /&gt;
 dimensions:&lt;br /&gt;
         nx_grid = 349 ;&lt;br /&gt;
         ny_grid = 277 ;&lt;br /&gt;
         time = UNLIMITED ; // (8 currently)&lt;br /&gt;
 variables:&lt;br /&gt;
         float time(time) ;&lt;br /&gt;
                 time:long_name = &amp;quot;Time&amp;quot; ;&lt;br /&gt;
                 time:standard_name = &amp;quot;time&amp;quot; ;&lt;br /&gt;
                 time:units = &amp;quot;days since 2001-01-01&amp;quot; ;&lt;br /&gt;
                 time:base_date = 2001, 1, 1, 0 ;&lt;br /&gt;
         float lon(ny_grid, nx_grid) ;&lt;br /&gt;
                 lon:long_name = &amp;quot;Longitude&amp;quot; ;&lt;br /&gt;
                 lon:standard_name = &amp;quot;longitude&amp;quot; ;&lt;br /&gt;
                 lon:units = &amp;quot;degrees_east&amp;quot; ;&lt;br /&gt;
         float lat(ny_grid, nx_grid) ;&lt;br /&gt;
                 lat:long_name = &amp;quot;Latitude&amp;quot; ;&lt;br /&gt;
                 lat:standard_name = &amp;quot;latitude&amp;quot; ;&lt;br /&gt;
                 lat:units = &amp;quot;degrees_north&amp;quot; ;&lt;br /&gt;
         float dlwrf(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 dlwrf:long_name = &amp;quot;Downward Long Wave Radiation Flux&amp;quot; ;&lt;br /&gt;
                 dlwrf:standard_name = &amp;quot;surface_downwelling_longwave_flux_in_air&amp;quot; ;&lt;br /&gt;
                 dlwrf:units = &amp;quot;W/m^2&amp;quot; ;&lt;br /&gt;
         float dswrf(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 dswrf:long_name = &amp;quot;Downward Short Wave Radiation Flux&amp;quot; ;&lt;br /&gt;
                 dswrf:standard_name = &amp;quot;surface_downwelling_shortwave_flux_in_air&amp;quot; ;&lt;br /&gt;
                 dswrf:units = &amp;quot;W/m^2&amp;quot; ;&lt;br /&gt;
 &lt;br /&gt;
 // global attributes:&lt;br /&gt;
                 :Conventions = &amp;quot;CF-1.0&amp;quot; ;&lt;br /&gt;
 }&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jan</name></author>
		
	</entry>
	<entry>
		<id>http://ccrm.vims.edu/w/index.php?title=Atmospheric_forcing&amp;diff=591</id>
		<title>Atmospheric forcing</title>
		<link rel="alternate" type="text/html" href="http://ccrm.vims.edu/w/index.php?title=Atmospheric_forcing&amp;diff=591"/>
		<updated>2013-01-31T13:24:33Z</updated>

		<summary type="html">&lt;p&gt;Jan: /* Preparing your own sflux inputs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Theory==&lt;br /&gt;
&lt;br /&gt;
[http://ccrm.vims.edu/yinglong/wiki_files/HeatExchange-Theory.pdf Here] is some info about the heat exchange module inside SELFE, based on Dr. Mike Zuluaf's slides. &lt;br /&gt;
&lt;br /&gt;
==File description==&lt;br /&gt;
In SELFE, atmoserpic forcings include wind, air pressure and temperature, precipitation, humidity and longwave and shortwave fluxes. These are specified in the netcdf files inside sflux/ dir, and conform to the [http://cf-pcmdi.llnl.gov/documents/cf-conventions/1.0/cf-conventions.html NetCDF Climate and Forecast (CF) Metadata Convention 1.0].&lt;br /&gt;
&lt;br /&gt;
There are 4 types of files in sflux/dir; see [http://www.stccmop.org/CORIE/modeling/selfe/NARR/narr.html this site] for sample files.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;OL&amp;gt;&lt;br /&gt;
  &amp;lt;LI&amp;gt;sflux_inputs.txt: &amp;lt;br/&amp;gt;&lt;br /&gt;
$cat sflux_inputs.txt &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;amp;sflux_inputs   ! file name &amp;lt;br/&amp;gt;&lt;br /&gt;
start_year  = 1998, ! start year &amp;lt;br/&amp;gt;&lt;br /&gt;
start_month = 09, ! start month &amp;lt;br/&amp;gt;&lt;br /&gt;
start_day   = 01, ! start day &amp;lt;br/&amp;gt;&lt;br /&gt;
start_hour  = 0.0, ! start hour &amp;lt;br/&amp;gt;&lt;br /&gt;
utc_start   = 0.0, ! offset from UTC in hours, with positive numbers for western hemishpere &amp;lt;br/&amp;gt;&lt;br /&gt;
/ &amp;lt;br/&amp;gt;&lt;br /&gt;
  &amp;lt;LI&amp;gt;sflux_air_1.0*.nc: netcdf files that have time, wind speed, air temperature and pressure and specific humidity;&lt;br /&gt;
  &amp;lt;LI&amp;gt;sflux_prc_1.0*.nc: netcdf files that have precipitation data; &lt;br /&gt;
  &amp;lt;LI&amp;gt;sflux_rad_1.0*.nc: netcdf files that have downward long and short (solar) wave radiation fluxes.&lt;br /&gt;
&amp;lt;/OL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Using NARR files for your simulation (North America only)==&lt;br /&gt;
&lt;br /&gt;
 First, make sure the  [http://ccrm.vims.edu/yinglong/wiki_files/narr.ll NARR grid] covers your hgrid.ll. &lt;br /&gt;
&lt;br /&gt;
In your run directory, mkdir sflux and inside it, create symbolic links to the NARR files. e.g., if you run starts from June 10, 2004 and ends June 20, 2004, then&lt;br /&gt;
&lt;br /&gt;
sflux_air_1.001.nc --&amp;gt; narr_air.2004_06_10.nc&amp;lt;br/&amp;gt;&lt;br /&gt;
sflux_air_1.002.nc --&amp;gt; narr_air.2004_06_11.nc&amp;lt;br/&amp;gt;&lt;br /&gt;
...&amp;lt;br/&amp;gt;&lt;br /&gt;
sflux_air_1.011.nc --&amp;gt; narr_air.2004_06_20.nc&amp;lt;br/&amp;gt;&lt;br /&gt;
sflux_air_1.012.nc --&amp;gt; narr_air.2004_06_21.nc (extra day to account for time zone difference)&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Similarly for sflux_rad_*.nc and sflux_prc_*.nc. The number &amp;quot;1&amp;quot; after &amp;quot;air_&amp;quot; denotes first data set used; you can use up to 2 sets in SELFE (which combines them with some given weights set in sflux_subs.F90); here you only use 1 set.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Don't forget to update sflux_inputs.txt also.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Preparing your own sflux inputs==&lt;br /&gt;
&lt;br /&gt;
After familiarize yourself with the NARR files and their format, you may embark on creating your own nc files. The best way is to modify existing matlab scripts (src/Utility/Sflux_nc/readnc*.m) included in the source code bundle, which have extensively in-line comments to guide you along the way.&lt;br /&gt;
&lt;br /&gt;
'''Conventions for .nc-files in sflux directory and additional files needed for sflux run:'''&lt;br /&gt;
&lt;br /&gt;
'''wind:''' u-component is eastward, v-comp. is northward (normal math convention, not compass convention)&lt;br /&gt;
&lt;br /&gt;
'''windrot_geo2proj.gr3:''' rotates winds in case they do not align with coordinate axes,&lt;br /&gt;
i.e. lat/lon&lt;br /&gt;
&lt;br /&gt;
'''watertype.gr3:''' 6 is clear water, 7 is muddiest. Search in selfe_init.F90 for watertype.&lt;br /&gt;
===air-files===&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 these lines (displayed using the ncdump utility):&lt;br /&gt;
 netcdf sflux_air_1.001 {&lt;br /&gt;
 dimensions:&lt;br /&gt;
         nx_grid = 349 ;&lt;br /&gt;
         ny_grid = 277 ;&lt;br /&gt;
         time = UNLIMITED ; // (8 currently)&lt;br /&gt;
 variables:&lt;br /&gt;
         float time(time) ;&lt;br /&gt;
                 time:long_name = &amp;quot;Time&amp;quot; ;&lt;br /&gt;
                 time:standard_name = &amp;quot;time&amp;quot; ;&lt;br /&gt;
                 time:units = &amp;quot;days since 2001-01-01&amp;quot; ;&lt;br /&gt;
                 time:base_date = 2001, 1, 1, 0 ;&lt;br /&gt;
         float lon(ny_grid, nx_grid) ;&lt;br /&gt;
                 lon:long_name = &amp;quot;Longitude&amp;quot; ;&lt;br /&gt;
                 lon:standard_name = &amp;quot;longitude&amp;quot; ;&lt;br /&gt;
                 lon:units = &amp;quot;degrees_east&amp;quot; ;&lt;br /&gt;
         float lat(ny_grid, nx_grid) ;&lt;br /&gt;
                 lat:long_name = &amp;quot;Latitude&amp;quot; ;&lt;br /&gt;
                 lat:standard_name = &amp;quot;latitude&amp;quot; ;&lt;br /&gt;
                 lat:units = &amp;quot;degrees_north&amp;quot; ;&lt;br /&gt;
         float uwind(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 uwind:long_name = &amp;quot;Surface Eastward Air Velocity (10m AGL)&amp;quot; ;&lt;br /&gt;
                 uwind:standard_name = &amp;quot;eastward_wind&amp;quot; ;&lt;br /&gt;
                 uwind:units = &amp;quot;m/s&amp;quot; ;&lt;br /&gt;
         float vwind(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 vwind:long_name = &amp;quot;Surface Northward Air Velocity (10m AGL)&amp;quot; ;&lt;br /&gt;
                 vwind:standard_name = &amp;quot;northward_wind&amp;quot; ;&lt;br /&gt;
                 vwind:units = &amp;quot;m/s&amp;quot; ;&lt;br /&gt;
         float prmsl(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 prmsl:long_name = &amp;quot;Pressure reduced to MSL&amp;quot; ;&lt;br /&gt;
                 prmsl:standard_name = &amp;quot;air_pressure_at_sea_level&amp;quot; ;&lt;br /&gt;
                 prmsl:units = &amp;quot;Pa&amp;quot; ;&lt;br /&gt;
         float stmp(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 stmp:long_name = &amp;quot;Surface Air Temperature (2m AGL)&amp;quot; ;&lt;br /&gt;
                 stmp:standard_name = &amp;quot;air_temperature&amp;quot; ;&lt;br /&gt;
                 stmp:units = &amp;quot;K&amp;quot; ;&lt;br /&gt;
         float spfh(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 spfh:long_name = &amp;quot;Surface Specific Humidity (2m AGL)&amp;quot; ;&lt;br /&gt;
                 spfh:standard_name = &amp;quot;specific_humidity&amp;quot; ;&lt;br /&gt;
                 spfh:units = &amp;quot;1&amp;quot; ;&lt;br /&gt;
 &lt;br /&gt;
 // global attributes:&lt;br /&gt;
                 :Conventions = &amp;quot;CF-1.0&amp;quot; ;&lt;br /&gt;
 }&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
===rad-files===&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 netcdf sflux_rad_1.001 {&lt;br /&gt;
 dimensions:&lt;br /&gt;
         nx_grid = 349 ;&lt;br /&gt;
         ny_grid = 277 ;&lt;br /&gt;
         time = UNLIMITED ; // (8 currently)&lt;br /&gt;
 variables:&lt;br /&gt;
         float time(time) ;&lt;br /&gt;
                 time:long_name = &amp;quot;Time&amp;quot; ;&lt;br /&gt;
                 time:standard_name = &amp;quot;time&amp;quot; ;&lt;br /&gt;
                 time:units = &amp;quot;days since 2001-01-01&amp;quot; ;&lt;br /&gt;
                 time:base_date = 2001, 1, 1, 0 ;&lt;br /&gt;
         float lon(ny_grid, nx_grid) ;&lt;br /&gt;
                 lon:long_name = &amp;quot;Longitude&amp;quot; ;&lt;br /&gt;
                 lon:standard_name = &amp;quot;longitude&amp;quot; ;&lt;br /&gt;
                 lon:units = &amp;quot;degrees_east&amp;quot; ;&lt;br /&gt;
         float lat(ny_grid, nx_grid) ;&lt;br /&gt;
                 lat:long_name = &amp;quot;Latitude&amp;quot; ;&lt;br /&gt;
                 lat:standard_name = &amp;quot;latitude&amp;quot; ;&lt;br /&gt;
                 lat:units = &amp;quot;degrees_north&amp;quot; ;&lt;br /&gt;
         float dlwrf(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 dlwrf:long_name = &amp;quot;Downward Long Wave Radiation Flux&amp;quot; ;&lt;br /&gt;
                 dlwrf:standard_name = &amp;quot;surface_downwelling_longwave_flux_in_air&amp;quot; ;&lt;br /&gt;
                 dlwrf:units = &amp;quot;W/m^2&amp;quot; ;&lt;br /&gt;
         float dswrf(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 dswrf:long_name = &amp;quot;Downward Short Wave Radiation Flux&amp;quot; ;&lt;br /&gt;
                 dswrf:standard_name = &amp;quot;surface_downwelling_shortwave_flux_in_air&amp;quot; ;&lt;br /&gt;
                 dswrf:units = &amp;quot;W/m^2&amp;quot; ;&lt;br /&gt;
 &lt;br /&gt;
 // global attributes:&lt;br /&gt;
                 :Conventions = &amp;quot;CF-1.0&amp;quot; ;&lt;br /&gt;
 }&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jan</name></author>
		
	</entry>
	<entry>
		<id>http://ccrm.vims.edu/w/index.php?title=Atmospheric_forcing&amp;diff=590</id>
		<title>Atmospheric forcing</title>
		<link rel="alternate" type="text/html" href="http://ccrm.vims.edu/w/index.php?title=Atmospheric_forcing&amp;diff=590"/>
		<updated>2013-01-31T13:23:42Z</updated>

		<summary type="html">&lt;p&gt;Jan: /* Preparing your own sflux inputs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Theory==&lt;br /&gt;
&lt;br /&gt;
[http://ccrm.vims.edu/yinglong/wiki_files/HeatExchange-Theory.pdf Here] is some info about the heat exchange module inside SELFE, based on Dr. Mike Zuluaf's slides. &lt;br /&gt;
&lt;br /&gt;
==File description==&lt;br /&gt;
In SELFE, atmoserpic forcings include wind, air pressure and temperature, precipitation, humidity and longwave and shortwave fluxes. These are specified in the netcdf files inside sflux/ dir, and conform to the [http://cf-pcmdi.llnl.gov/documents/cf-conventions/1.0/cf-conventions.html NetCDF Climate and Forecast (CF) Metadata Convention 1.0].&lt;br /&gt;
&lt;br /&gt;
There are 4 types of files in sflux/dir; see [http://www.stccmop.org/CORIE/modeling/selfe/NARR/narr.html this site] for sample files.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;OL&amp;gt;&lt;br /&gt;
  &amp;lt;LI&amp;gt;sflux_inputs.txt: &amp;lt;br/&amp;gt;&lt;br /&gt;
$cat sflux_inputs.txt &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;amp;sflux_inputs   ! file name &amp;lt;br/&amp;gt;&lt;br /&gt;
start_year  = 1998, ! start year &amp;lt;br/&amp;gt;&lt;br /&gt;
start_month = 09, ! start month &amp;lt;br/&amp;gt;&lt;br /&gt;
start_day   = 01, ! start day &amp;lt;br/&amp;gt;&lt;br /&gt;
start_hour  = 0.0, ! start hour &amp;lt;br/&amp;gt;&lt;br /&gt;
utc_start   = 0.0, ! offset from UTC in hours, with positive numbers for western hemishpere &amp;lt;br/&amp;gt;&lt;br /&gt;
/ &amp;lt;br/&amp;gt;&lt;br /&gt;
  &amp;lt;LI&amp;gt;sflux_air_1.0*.nc: netcdf files that have time, wind speed, air temperature and pressure and specific humidity;&lt;br /&gt;
  &amp;lt;LI&amp;gt;sflux_prc_1.0*.nc: netcdf files that have precipitation data; &lt;br /&gt;
  &amp;lt;LI&amp;gt;sflux_rad_1.0*.nc: netcdf files that have downward long and short (solar) wave radiation fluxes.&lt;br /&gt;
&amp;lt;/OL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Using NARR files for your simulation (North America only)==&lt;br /&gt;
&lt;br /&gt;
 First, make sure the  [http://ccrm.vims.edu/yinglong/wiki_files/narr.ll NARR grid] covers your hgrid.ll. &lt;br /&gt;
&lt;br /&gt;
In your run directory, mkdir sflux and inside it, create symbolic links to the NARR files. e.g., if you run starts from June 10, 2004 and ends June 20, 2004, then&lt;br /&gt;
&lt;br /&gt;
sflux_air_1.001.nc --&amp;gt; narr_air.2004_06_10.nc&amp;lt;br/&amp;gt;&lt;br /&gt;
sflux_air_1.002.nc --&amp;gt; narr_air.2004_06_11.nc&amp;lt;br/&amp;gt;&lt;br /&gt;
...&amp;lt;br/&amp;gt;&lt;br /&gt;
sflux_air_1.011.nc --&amp;gt; narr_air.2004_06_20.nc&amp;lt;br/&amp;gt;&lt;br /&gt;
sflux_air_1.012.nc --&amp;gt; narr_air.2004_06_21.nc (extra day to account for time zone difference)&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Similarly for sflux_rad_*.nc and sflux_prc_*.nc. The number &amp;quot;1&amp;quot; after &amp;quot;air_&amp;quot; denotes first data set used; you can use up to 2 sets in SELFE (which combines them with some given weights set in sflux_subs.F90); here you only use 1 set.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Don't forget to update sflux_inputs.txt also.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Preparing your own sflux inputs==&lt;br /&gt;
&lt;br /&gt;
After familiarize yourself with the NARR files and their format, you may embark on creating your own nc files. The best way is to modify existing matlab scripts (src/Utility/Sflux_nc/readnc*.m) included in the source code bundle, which have extensively in-line comments to guide you along the way.&lt;br /&gt;
&lt;br /&gt;
'''Conventions for .nc-files in sflux directory and additional files needed for sflux run:'''&lt;br /&gt;
&lt;br /&gt;
'''wind:''' u-component is eastward, v-comp. is northward (normal math convention, not compass convention)&lt;br /&gt;
&lt;br /&gt;
'''windrot_geo2proj.gr3:''' rotates winds in case they do not align with coordinate axes,&lt;br /&gt;
i.e. lat/lon&lt;br /&gt;
&lt;br /&gt;
'''watertype.gr3:''' 6 is clear water, 7 is muddiest. Search in selfe_init.F90 for watertype.&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 these lines (displayed using the ncdump utility):&lt;br /&gt;
 netcdf sflux_air_1.001 {&lt;br /&gt;
 dimensions:&lt;br /&gt;
         nx_grid = 349 ;&lt;br /&gt;
         ny_grid = 277 ;&lt;br /&gt;
         time = UNLIMITED ; // (8 currently)&lt;br /&gt;
 variables:&lt;br /&gt;
         float time(time) ;&lt;br /&gt;
                 time:long_name = &amp;quot;Time&amp;quot; ;&lt;br /&gt;
                 time:standard_name = &amp;quot;time&amp;quot; ;&lt;br /&gt;
                 time:units = &amp;quot;days since 2001-01-01&amp;quot; ;&lt;br /&gt;
                 time:base_date = 2001, 1, 1, 0 ;&lt;br /&gt;
         float lon(ny_grid, nx_grid) ;&lt;br /&gt;
                 lon:long_name = &amp;quot;Longitude&amp;quot; ;&lt;br /&gt;
                 lon:standard_name = &amp;quot;longitude&amp;quot; ;&lt;br /&gt;
                 lon:units = &amp;quot;degrees_east&amp;quot; ;&lt;br /&gt;
         float lat(ny_grid, nx_grid) ;&lt;br /&gt;
                 lat:long_name = &amp;quot;Latitude&amp;quot; ;&lt;br /&gt;
                 lat:standard_name = &amp;quot;latitude&amp;quot; ;&lt;br /&gt;
                 lat:units = &amp;quot;degrees_north&amp;quot; ;&lt;br /&gt;
         float uwind(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 uwind:long_name = &amp;quot;Surface Eastward Air Velocity (10m AGL)&amp;quot; ;&lt;br /&gt;
                 uwind:standard_name = &amp;quot;eastward_wind&amp;quot; ;&lt;br /&gt;
                 uwind:units = &amp;quot;m/s&amp;quot; ;&lt;br /&gt;
         float vwind(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 vwind:long_name = &amp;quot;Surface Northward Air Velocity (10m AGL)&amp;quot; ;&lt;br /&gt;
                 vwind:standard_name = &amp;quot;northward_wind&amp;quot; ;&lt;br /&gt;
                 vwind:units = &amp;quot;m/s&amp;quot; ;&lt;br /&gt;
         float prmsl(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 prmsl:long_name = &amp;quot;Pressure reduced to MSL&amp;quot; ;&lt;br /&gt;
                 prmsl:standard_name = &amp;quot;air_pressure_at_sea_level&amp;quot; ;&lt;br /&gt;
                 prmsl:units = &amp;quot;Pa&amp;quot; ;&lt;br /&gt;
         float stmp(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 stmp:long_name = &amp;quot;Surface Air Temperature (2m AGL)&amp;quot; ;&lt;br /&gt;
                 stmp:standard_name = &amp;quot;air_temperature&amp;quot; ;&lt;br /&gt;
                 stmp:units = &amp;quot;K&amp;quot; ;&lt;br /&gt;
         float spfh(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 spfh:long_name = &amp;quot;Surface Specific Humidity (2m AGL)&amp;quot; ;&lt;br /&gt;
                 spfh:standard_name = &amp;quot;specific_humidity&amp;quot; ;&lt;br /&gt;
                 spfh:units = &amp;quot;1&amp;quot; ;&lt;br /&gt;
 &lt;br /&gt;
 // global attributes:&lt;br /&gt;
                 :Conventions = &amp;quot;CF-1.0&amp;quot; ;&lt;br /&gt;
 }&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 netcdf sflux_rad_1.001 {&lt;br /&gt;
 dimensions:&lt;br /&gt;
         nx_grid = 349 ;&lt;br /&gt;
         ny_grid = 277 ;&lt;br /&gt;
         time = UNLIMITED ; // (8 currently)&lt;br /&gt;
 variables:&lt;br /&gt;
         float time(time) ;&lt;br /&gt;
                 time:long_name = &amp;quot;Time&amp;quot; ;&lt;br /&gt;
                 time:standard_name = &amp;quot;time&amp;quot; ;&lt;br /&gt;
                 time:units = &amp;quot;days since 2001-01-01&amp;quot; ;&lt;br /&gt;
                 time:base_date = 2001, 1, 1, 0 ;&lt;br /&gt;
         float lon(ny_grid, nx_grid) ;&lt;br /&gt;
                 lon:long_name = &amp;quot;Longitude&amp;quot; ;&lt;br /&gt;
                 lon:standard_name = &amp;quot;longitude&amp;quot; ;&lt;br /&gt;
                 lon:units = &amp;quot;degrees_east&amp;quot; ;&lt;br /&gt;
         float lat(ny_grid, nx_grid) ;&lt;br /&gt;
                 lat:long_name = &amp;quot;Latitude&amp;quot; ;&lt;br /&gt;
                 lat:standard_name = &amp;quot;latitude&amp;quot; ;&lt;br /&gt;
                 lat:units = &amp;quot;degrees_north&amp;quot; ;&lt;br /&gt;
         float dlwrf(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 dlwrf:long_name = &amp;quot;Downward Long Wave Radiation Flux&amp;quot; ;&lt;br /&gt;
                 dlwrf:standard_name = &amp;quot;surface_downwelling_longwave_flux_in_air&amp;quot; ;&lt;br /&gt;
                 dlwrf:units = &amp;quot;W/m^2&amp;quot; ;&lt;br /&gt;
         float dswrf(time, ny_grid, nx_grid) ;&lt;br /&gt;
                 dswrf:long_name = &amp;quot;Downward Short Wave Radiation Flux&amp;quot; ;&lt;br /&gt;
                 dswrf:standard_name = &amp;quot;surface_downwelling_shortwave_flux_in_air&amp;quot; ;&lt;br /&gt;
                 dswrf:units = &amp;quot;W/m^2&amp;quot; ;&lt;br /&gt;
 &lt;br /&gt;
 // global attributes:&lt;br /&gt;
                 :Conventions = &amp;quot;CF-1.0&amp;quot; ;&lt;br /&gt;
 }&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jan</name></author>
		
	</entry>
	<entry>
		<id>http://ccrm.vims.edu/w/index.php?title=Atmospheric_forcing&amp;diff=589</id>
		<title>Atmospheric forcing</title>
		<link rel="alternate" type="text/html" href="http://ccrm.vims.edu/w/index.php?title=Atmospheric_forcing&amp;diff=589"/>
		<updated>2013-01-30T09:24:19Z</updated>

		<summary type="html">&lt;p&gt;Jan: /* Preparing your own sflux inputs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Theory==&lt;br /&gt;
&lt;br /&gt;
[http://ccrm.vims.edu/yinglong/wiki_files/HeatExchange-Theory.pdf Here] is some info about the heat exchange module inside SELFE, based on Dr. Mike Zuluaf's slides. &lt;br /&gt;
&lt;br /&gt;
==File description==&lt;br /&gt;
In SELFE, atmoserpic forcings include wind, air pressure and temperature, precipitation, humidity and longwave and shortwave fluxes. These are specified in the netcdf files inside sflux/ dir, and conform to the [http://cf-pcmdi.llnl.gov/documents/cf-conventions/1.0/cf-conventions.html NetCDF Climate and Forecast (CF) Metadata Convention 1.0].&lt;br /&gt;
&lt;br /&gt;
There are 4 types of files in sflux/dir; see [http://www.stccmop.org/CORIE/modeling/selfe/NARR/narr.html this site] for sample files.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;OL&amp;gt;&lt;br /&gt;
  &amp;lt;LI&amp;gt;sflux_inputs.txt: &amp;lt;br/&amp;gt;&lt;br /&gt;
$cat sflux_inputs.txt &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;amp;sflux_inputs   ! file name &amp;lt;br/&amp;gt;&lt;br /&gt;
start_year  = 1998, ! start year &amp;lt;br/&amp;gt;&lt;br /&gt;
start_month = 09, ! start month &amp;lt;br/&amp;gt;&lt;br /&gt;
start_day   = 01, ! start day &amp;lt;br/&amp;gt;&lt;br /&gt;
start_hour  = 0.0, ! start hour &amp;lt;br/&amp;gt;&lt;br /&gt;
utc_start   = 0.0, ! offset from UTC in hours, with positive numbers for western hemishpere &amp;lt;br/&amp;gt;&lt;br /&gt;
/ &amp;lt;br/&amp;gt;&lt;br /&gt;
  &amp;lt;LI&amp;gt;sflux_air_1.0*.nc: netcdf files that have time, wind speed, air temperature and pressure and specific humidity;&lt;br /&gt;
  &amp;lt;LI&amp;gt;sflux_prc_1.0*.nc: netcdf files that have precipitation data; &lt;br /&gt;
  &amp;lt;LI&amp;gt;sflux_rad_1.0*.nc: netcdf files that have downward long and short (solar) wave radiation fluxes.&lt;br /&gt;
&amp;lt;/OL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Using NARR files for your simulation (North America only)==&lt;br /&gt;
&lt;br /&gt;
 First, make sure the  [http://ccrm.vims.edu/yinglong/wiki_files/narr.ll NARR grid] covers your hgrid.ll. &lt;br /&gt;
&lt;br /&gt;
In your run directory, mkdir sflux and inside it, create symbolic links to the NARR files. e.g., if you run starts from June 10, 2004 and ends June 20, 2004, then&lt;br /&gt;
&lt;br /&gt;
sflux_air_1.001.nc --&amp;gt; narr_air.2004_06_10.nc&amp;lt;br/&amp;gt;&lt;br /&gt;
sflux_air_1.002.nc --&amp;gt; narr_air.2004_06_11.nc&amp;lt;br/&amp;gt;&lt;br /&gt;
...&amp;lt;br/&amp;gt;&lt;br /&gt;
sflux_air_1.011.nc --&amp;gt; narr_air.2004_06_20.nc&amp;lt;br/&amp;gt;&lt;br /&gt;
sflux_air_1.012.nc --&amp;gt; narr_air.2004_06_21.nc (extra day to account for time zone difference)&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Similarly for sflux_rad_*.nc and sflux_prc_*.nc. The number &amp;quot;1&amp;quot; after &amp;quot;air_&amp;quot; denotes first data set used; you can use up to 2 sets in SELFE (which combines them with some given weights set in sflux_subs.F90); here you only use 1 set.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Don't forget to update sflux_inputs.txt also.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Preparing your own sflux inputs==&lt;br /&gt;
&lt;br /&gt;
After familiarize yourself with the NARR files and their format, you may embark on creating your own nc files. The best way is to modify existing matlab scripts (src/Utility/Sflux_nc/readnc*.m) included in the source code bundle, which have extensively in-line comments to guide you along the way.&lt;br /&gt;
&lt;br /&gt;
'''Conventions for .nc-files in sflux directory and additional files needed for sflux run:'''&lt;br /&gt;
&lt;br /&gt;
'''wind:''' u-component is eastward, v-comp. is northward (normal math convention, not compass convention)&lt;br /&gt;
&lt;br /&gt;
'''windrot_geo2proj.gr3:''' rotates winds in case they do not align with coordinate axes,&lt;br /&gt;
i.e. lat/lon&lt;br /&gt;
&lt;br /&gt;
'''watertype.gr3:''' 6 is clear water, 7 is muddiest. Search in selfe_init.F90 for watertype.&lt;/div&gt;</summary>
		<author><name>Jan</name></author>
		
	</entry>
	<entry>
		<id>http://ccrm.vims.edu/w/index.php?title=Atmospheric_forcing&amp;diff=588</id>
		<title>Atmospheric forcing</title>
		<link rel="alternate" type="text/html" href="http://ccrm.vims.edu/w/index.php?title=Atmospheric_forcing&amp;diff=588"/>
		<updated>2013-01-30T09:23:00Z</updated>

		<summary type="html">&lt;p&gt;Jan: /* Preparing your own sflux inputs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Theory==&lt;br /&gt;
&lt;br /&gt;
[http://ccrm.vims.edu/yinglong/wiki_files/HeatExchange-Theory.pdf Here] is some info about the heat exchange module inside SELFE, based on Dr. Mike Zuluaf's slides. &lt;br /&gt;
&lt;br /&gt;
==File description==&lt;br /&gt;
In SELFE, atmoserpic forcings include wind, air pressure and temperature, precipitation, humidity and longwave and shortwave fluxes. These are specified in the netcdf files inside sflux/ dir, and conform to the [http://cf-pcmdi.llnl.gov/documents/cf-conventions/1.0/cf-conventions.html NetCDF Climate and Forecast (CF) Metadata Convention 1.0].&lt;br /&gt;
&lt;br /&gt;
There are 4 types of files in sflux/dir; see [http://www.stccmop.org/CORIE/modeling/selfe/NARR/narr.html this site] for sample files.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;OL&amp;gt;&lt;br /&gt;
  &amp;lt;LI&amp;gt;sflux_inputs.txt: &amp;lt;br/&amp;gt;&lt;br /&gt;
$cat sflux_inputs.txt &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;amp;sflux_inputs   ! file name &amp;lt;br/&amp;gt;&lt;br /&gt;
start_year  = 1998, ! start year &amp;lt;br/&amp;gt;&lt;br /&gt;
start_month = 09, ! start month &amp;lt;br/&amp;gt;&lt;br /&gt;
start_day   = 01, ! start day &amp;lt;br/&amp;gt;&lt;br /&gt;
start_hour  = 0.0, ! start hour &amp;lt;br/&amp;gt;&lt;br /&gt;
utc_start   = 0.0, ! offset from UTC in hours, with positive numbers for western hemishpere &amp;lt;br/&amp;gt;&lt;br /&gt;
/ &amp;lt;br/&amp;gt;&lt;br /&gt;
  &amp;lt;LI&amp;gt;sflux_air_1.0*.nc: netcdf files that have time, wind speed, air temperature and pressure and specific humidity;&lt;br /&gt;
  &amp;lt;LI&amp;gt;sflux_prc_1.0*.nc: netcdf files that have precipitation data; &lt;br /&gt;
  &amp;lt;LI&amp;gt;sflux_rad_1.0*.nc: netcdf files that have downward long and short (solar) wave radiation fluxes.&lt;br /&gt;
&amp;lt;/OL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Using NARR files for your simulation (North America only)==&lt;br /&gt;
&lt;br /&gt;
 First, make sure the  [http://ccrm.vims.edu/yinglong/wiki_files/narr.ll NARR grid] covers your hgrid.ll. &lt;br /&gt;
&lt;br /&gt;
In your run directory, mkdir sflux and inside it, create symbolic links to the NARR files. e.g., if you run starts from June 10, 2004 and ends June 20, 2004, then&lt;br /&gt;
&lt;br /&gt;
sflux_air_1.001.nc --&amp;gt; narr_air.2004_06_10.nc&amp;lt;br/&amp;gt;&lt;br /&gt;
sflux_air_1.002.nc --&amp;gt; narr_air.2004_06_11.nc&amp;lt;br/&amp;gt;&lt;br /&gt;
...&amp;lt;br/&amp;gt;&lt;br /&gt;
sflux_air_1.011.nc --&amp;gt; narr_air.2004_06_20.nc&amp;lt;br/&amp;gt;&lt;br /&gt;
sflux_air_1.012.nc --&amp;gt; narr_air.2004_06_21.nc (extra day to account for time zone difference)&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Similarly for sflux_rad_*.nc and sflux_prc_*.nc. The number &amp;quot;1&amp;quot; after &amp;quot;air_&amp;quot; denotes first data set used; you can use up to 2 sets in SELFE (which combines them with some given weights set in sflux_subs.F90); here you only use 1 set.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Don't forget to update sflux_inputs.txt also.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Preparing your own sflux inputs==&lt;br /&gt;
&lt;br /&gt;
After familiarize yourself with the NARR files and their format, you may embark on creating your own nc files. The best way is to modify existing matlab scripts (src/Utility/Sflux_nc/readnc*.m) included in the source code bundle, which have extensively in-line comments to guide you along the way.&lt;br /&gt;
&lt;br /&gt;
'''Conventions for .nc-files in sflux directory and additional files needed for sflux run:'''&lt;br /&gt;
&lt;br /&gt;
'''wind:''' u-component is eastward, v-comp. is northward (normal math convention, not compass convention)&lt;br /&gt;
&lt;br /&gt;
'''windrot_geo2proj.gr3:''' rotates winds in case they do not align with coordinate axes,&lt;br /&gt;
i.e. lat/lon&lt;/div&gt;</summary>
		<author><name>Jan</name></author>
		
	</entry>
	<entry>
		<id>http://ccrm.vims.edu/w/index.php?title=Atmospheric_forcing&amp;diff=587</id>
		<title>Atmospheric forcing</title>
		<link rel="alternate" type="text/html" href="http://ccrm.vims.edu/w/index.php?title=Atmospheric_forcing&amp;diff=587"/>
		<updated>2013-01-30T09:21:48Z</updated>

		<summary type="html">&lt;p&gt;Jan: /* Conventions for .nc-files in sflux directory: */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Theory==&lt;br /&gt;
&lt;br /&gt;
[http://ccrm.vims.edu/yinglong/wiki_files/HeatExchange-Theory.pdf Here] is some info about the heat exchange module inside SELFE, based on Dr. Mike Zuluaf's slides. &lt;br /&gt;
&lt;br /&gt;
==File description==&lt;br /&gt;
In SELFE, atmoserpic forcings include wind, air pressure and temperature, precipitation, humidity and longwave and shortwave fluxes. These are specified in the netcdf files inside sflux/ dir, and conform to the [http://cf-pcmdi.llnl.gov/documents/cf-conventions/1.0/cf-conventions.html NetCDF Climate and Forecast (CF) Metadata Convention 1.0].&lt;br /&gt;
&lt;br /&gt;
There are 4 types of files in sflux/dir; see [http://www.stccmop.org/CORIE/modeling/selfe/NARR/narr.html this site] for sample files.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;OL&amp;gt;&lt;br /&gt;
  &amp;lt;LI&amp;gt;sflux_inputs.txt: &amp;lt;br/&amp;gt;&lt;br /&gt;
$cat sflux_inputs.txt &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;amp;sflux_inputs   ! file name &amp;lt;br/&amp;gt;&lt;br /&gt;
start_year  = 1998, ! start year &amp;lt;br/&amp;gt;&lt;br /&gt;
start_month = 09, ! start month &amp;lt;br/&amp;gt;&lt;br /&gt;
start_day   = 01, ! start day &amp;lt;br/&amp;gt;&lt;br /&gt;
start_hour  = 0.0, ! start hour &amp;lt;br/&amp;gt;&lt;br /&gt;
utc_start   = 0.0, ! offset from UTC in hours, with positive numbers for western hemishpere &amp;lt;br/&amp;gt;&lt;br /&gt;
/ &amp;lt;br/&amp;gt;&lt;br /&gt;
  &amp;lt;LI&amp;gt;sflux_air_1.0*.nc: netcdf files that have time, wind speed, air temperature and pressure and specific humidity;&lt;br /&gt;
  &amp;lt;LI&amp;gt;sflux_prc_1.0*.nc: netcdf files that have precipitation data; &lt;br /&gt;
  &amp;lt;LI&amp;gt;sflux_rad_1.0*.nc: netcdf files that have downward long and short (solar) wave radiation fluxes.&lt;br /&gt;
&amp;lt;/OL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Using NARR files for your simulation (North America only)==&lt;br /&gt;
&lt;br /&gt;
 First, make sure the  [http://ccrm.vims.edu/yinglong/wiki_files/narr.ll NARR grid] covers your hgrid.ll. &lt;br /&gt;
&lt;br /&gt;
In your run directory, mkdir sflux and inside it, create symbolic links to the NARR files. e.g., if you run starts from June 10, 2004 and ends June 20, 2004, then&lt;br /&gt;
&lt;br /&gt;
sflux_air_1.001.nc --&amp;gt; narr_air.2004_06_10.nc&amp;lt;br/&amp;gt;&lt;br /&gt;
sflux_air_1.002.nc --&amp;gt; narr_air.2004_06_11.nc&amp;lt;br/&amp;gt;&lt;br /&gt;
...&amp;lt;br/&amp;gt;&lt;br /&gt;
sflux_air_1.011.nc --&amp;gt; narr_air.2004_06_20.nc&amp;lt;br/&amp;gt;&lt;br /&gt;
sflux_air_1.012.nc --&amp;gt; narr_air.2004_06_21.nc (extra day to account for time zone difference)&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Similarly for sflux_rad_*.nc and sflux_prc_*.nc. The number &amp;quot;1&amp;quot; after &amp;quot;air_&amp;quot; denotes first data set used; you can use up to 2 sets in SELFE (which combines them with some given weights set in sflux_subs.F90); here you only use 1 set.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Don't forget to update sflux_inputs.txt also.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Preparing your own sflux inputs==&lt;br /&gt;
&lt;br /&gt;
After familiarize yourself with the NARR files and their format, you may embark on creating your own nc files. The best way is to modify existing matlab scripts (src/Utility/Sflux_nc/readnc*.m) included in the source code bundle, which have extensively in-line comments to guide you along the way.&lt;br /&gt;
&lt;br /&gt;
'''Conventions for .nc-files in sflux directory:'''&lt;br /&gt;
&lt;br /&gt;
'''wind:''' u-component is eastward, v-comp. is northward (normal math convention, not compass convention)&lt;br /&gt;
&lt;br /&gt;
'''windrot_geo2proj.gr3:''' rotates winds in case they do not align with coordinate axes,&lt;br /&gt;
i.e. lat/lon&lt;/div&gt;</summary>
		<author><name>Jan</name></author>
		
	</entry>
	<entry>
		<id>http://ccrm.vims.edu/w/index.php?title=Atmospheric_forcing&amp;diff=586</id>
		<title>Atmospheric forcing</title>
		<link rel="alternate" type="text/html" href="http://ccrm.vims.edu/w/index.php?title=Atmospheric_forcing&amp;diff=586"/>
		<updated>2013-01-30T09:15:22Z</updated>

		<summary type="html">&lt;p&gt;Jan: /* Preparing your own sflux inputs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Theory==&lt;br /&gt;
&lt;br /&gt;
[http://ccrm.vims.edu/yinglong/wiki_files/HeatExchange-Theory.pdf Here] is some info about the heat exchange module inside SELFE, based on Dr. Mike Zuluaf's slides. &lt;br /&gt;
&lt;br /&gt;
==File description==&lt;br /&gt;
In SELFE, atmoserpic forcings include wind, air pressure and temperature, precipitation, humidity and longwave and shortwave fluxes. These are specified in the netcdf files inside sflux/ dir, and conform to the [http://cf-pcmdi.llnl.gov/documents/cf-conventions/1.0/cf-conventions.html NetCDF Climate and Forecast (CF) Metadata Convention 1.0].&lt;br /&gt;
&lt;br /&gt;
There are 4 types of files in sflux/dir; see [http://www.stccmop.org/CORIE/modeling/selfe/NARR/narr.html this site] for sample files.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;OL&amp;gt;&lt;br /&gt;
  &amp;lt;LI&amp;gt;sflux_inputs.txt: &amp;lt;br/&amp;gt;&lt;br /&gt;
$cat sflux_inputs.txt &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;amp;sflux_inputs   ! file name &amp;lt;br/&amp;gt;&lt;br /&gt;
start_year  = 1998, ! start year &amp;lt;br/&amp;gt;&lt;br /&gt;
start_month = 09, ! start month &amp;lt;br/&amp;gt;&lt;br /&gt;
start_day   = 01, ! start day &amp;lt;br/&amp;gt;&lt;br /&gt;
start_hour  = 0.0, ! start hour &amp;lt;br/&amp;gt;&lt;br /&gt;
utc_start   = 0.0, ! offset from UTC in hours, with positive numbers for western hemishpere &amp;lt;br/&amp;gt;&lt;br /&gt;
/ &amp;lt;br/&amp;gt;&lt;br /&gt;
  &amp;lt;LI&amp;gt;sflux_air_1.0*.nc: netcdf files that have time, wind speed, air temperature and pressure and specific humidity;&lt;br /&gt;
  &amp;lt;LI&amp;gt;sflux_prc_1.0*.nc: netcdf files that have precipitation data; &lt;br /&gt;
  &amp;lt;LI&amp;gt;sflux_rad_1.0*.nc: netcdf files that have downward long and short (solar) wave radiation fluxes.&lt;br /&gt;
&amp;lt;/OL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Using NARR files for your simulation (North America only)==&lt;br /&gt;
&lt;br /&gt;
 First, make sure the  [http://ccrm.vims.edu/yinglong/wiki_files/narr.ll NARR grid] covers your hgrid.ll. &lt;br /&gt;
&lt;br /&gt;
In your run directory, mkdir sflux and inside it, create symbolic links to the NARR files. e.g., if you run starts from June 10, 2004 and ends June 20, 2004, then&lt;br /&gt;
&lt;br /&gt;
sflux_air_1.001.nc --&amp;gt; narr_air.2004_06_10.nc&amp;lt;br/&amp;gt;&lt;br /&gt;
sflux_air_1.002.nc --&amp;gt; narr_air.2004_06_11.nc&amp;lt;br/&amp;gt;&lt;br /&gt;
...&amp;lt;br/&amp;gt;&lt;br /&gt;
sflux_air_1.011.nc --&amp;gt; narr_air.2004_06_20.nc&amp;lt;br/&amp;gt;&lt;br /&gt;
sflux_air_1.012.nc --&amp;gt; narr_air.2004_06_21.nc (extra day to account for time zone difference)&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Similarly for sflux_rad_*.nc and sflux_prc_*.nc. The number &amp;quot;1&amp;quot; after &amp;quot;air_&amp;quot; denotes first data set used; you can use up to 2 sets in SELFE (which combines them with some given weights set in sflux_subs.F90); here you only use 1 set.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Don't forget to update sflux_inputs.txt also.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Preparing your own sflux inputs==&lt;br /&gt;
&lt;br /&gt;
After familiarize yourself with the NARR files and their format, you may embark on creating your own nc files. The best way is to modify existing matlab scripts (src/Utility/Sflux_nc/readnc*.m) included in the source code bundle, which have extensively in-line comments to guide you along the way.&lt;br /&gt;
&lt;br /&gt;
===Conventions for .nc-files in sflux directory:===&lt;br /&gt;
'''wind''': u-component is eastward, v-comp. is northward (normal math convention, not compass convention)&lt;br /&gt;
&lt;br /&gt;
'''windrot_geo2proj.gr3''':rotates winds in case they do not align with coordinate axes,&lt;br /&gt;
i.e. lat/lon&lt;/div&gt;</summary>
		<author><name>Jan</name></author>
		
	</entry>
</feed>