<h1>tldr;</h1>

<p>On the official support page titled <a href="https://www.nrcs.usda.gov/wps/portal/nrcs/detailfull/national/water/manage/hydrology/?cid=stelprdb1043611" rel="nofollow noreferrer">AGNPS Climate Data -- agGEM &amp; preGEM</a> you find a download link to a <a href="http://www.wcc.nrcs.usda.gov/ftpref/wntsc/H&amp;H/GEM/AGNPSclimFileTemplate.txt" rel="nofollow noreferrer">climate data template file</a>. Your data files need to have this format. All meteorological variables are written into this file. The template file contains daily data. It is not clear if either the data has to have daily resolution or the data can be finer (hourly) or coarser (monthly) resolved.</p>

<h1>detailed answer</h1>

<p>Everything I write down below is described on one the official support pages for AGPNS: <a href="https://www.nrcs.usda.gov/wps/portal/nrcs/detailfull/national/water/manage/hydrology/?cid=stelprdb1043611" rel="nofollow noreferrer">http://go.usa.gov/KL0</a> (This is the <strong>official</strong> short link provided by the United States Department of Agriculture (USDA))</p>

<h3>Remarks</h3>

<ol>
<li>The meteorological input data files for AGNPS model (<strong>Ag</strong>ricultural <strong>n</strong>on-<strong>p</strong>oint <strong>S</strong>ource Pollution Model) are actually called <em>climate input data</em>, although the files contain short term meteorological data.</li>
<li>All the provided programs are Windows executables.</li>
</ol>

<h3>generate climate input data files for known locations</h3>

<p>Use the program <em>agGEM</em>. This program uses an existing <em>statistical parameter file</em> (maybe: == climatological data?) of meteorological data to generate a climate input data file for AGNPS. There are 233 stations in the US, for which such statistical parameter files exist. There is no information on the support page whether the data are measurement or model data. The program can be downloaded without registration from the support page linked above. The existing statistical parameter files can be also downloaded on that page. </p>

<h3>generate your own statistical parameter file</h3>

<p>The USDA provides a program called preGEM to generated statistical parameter files. preGEM needs an input data file with a long time series of meteorological data. What <em>long</em> means is to decide by the use.</p>

<p>The format of this particular input data file is not clear. According to the <a href="http://www.wcc.nrcs.usda.gov/ftpref/wntsc/H&amp;H/GEM/agGEMpreGEMdocumentation.pdf" rel="nofollow noreferrer">agGEM &amp; preGEM documentation file</a> one can choose between two types of text files: csv and <em>fixed format</em> (see the manual what the latter means) during the execution of preGEMs. However, a <a href="http://www.wcc.nrcs.usda.gov/ftpref/wntsc/H&amp;H/GEM/preGEM_input_template.xls" rel="nofollow noreferrer">preGEM input template</a> is provided on the support page, which is a xls file. Maybe one can also choose xls as format for the input data file.</p>

<p>Please be aware that there are a lot of options when you save a xls as csv via the spreadsheet software of your choice: delimiters for strings, delimiter between columns (comma, tab, semicolon, ...) etc.</p>

<h3>Build your own climate input data file</h3>

<p>There is a <a href="http://www.wcc.nrcs.usda.gov/ftpref/wntsc/H&amp;H/GEM/AGNPSclimFileTemplate.txt" rel="nofollow noreferrer">climate input data template</a> provided on the given support page. You can generate your own file without using arGEM and preGEM. There is a file header which nicely describes how the file has to be structured. The file looks as follows:</p>

<pre><code>*************************************************
*** a few words of explanation:
*** The Climate input data for AGNPS has the following fixed format.
*** The first line is required and must contain the current version ID
*** The second line may contain any info the user wishes.
***
*** The third line contains site latitude, longitude, elevation, 
*** temperature lapse rate with elevation, 
*** percentage N in the precip, and unit code.
*** The temperature lapse rate units are degrees F per foot or degrees C
*** per meter of elevation and can be left at zero.
*** The nitrogen percentage in the precip is currently not used in the
*** program, but units are percentage by weight.
*** The unit code is 1 for English and 0 for metric.
***
*** The fourth line contains the start date for the data.
*** The fifth line contains the end date for the data.
***
*** The sixth through eighth lines contain data column headings
*** 
******* climate file starts below this line:
Climate File Input Version ID:          5.00
   56  Princeville       
   22.0708  159.1234    345.00   -0.0036    0.0000         1
01/01/0001
12/31/0100
     Daily   -Air Temperature-   Precip-     Dew        Sky      ----- Wind -----   Solar     Storm    Potent-
    Date     Maximum   Minimum   itation     Point     Cover     Speed  Direction Radiation  Type ID    ial ET
mm/dd/yyyy     [ºF]      [ºF]      [in]      [ºF]       [%]      [mph]       [º] [BTU/h/ft^2]    [-]      [in]
01/01/0001     73.08     67.10      0.00     59.46      75.4      3.67               87.30
01/02/0001     77.12     60.72      0.08     61.19      39.2      5.61              123.27
01/03/0001     78.22     58.41      0.28     60.80      80.9      3.85               79.23
01/04/0001     79.22     60.80      0.24     60.81      34.7      2.43              127.03
01/05/0001     80.62     69.15      1.84     67.06      79.8      6.96               79.44
01/06/0001     82.05     66.88      0.25     64.65      30.0      4.29              128.66
01/07/0001     80.89     62.94      0.07     60.28      52.7      3.59              114.29
01/08/0001     77.59     63.79      0.00     60.51      33.0      4.14              129.61
01/09/0001     75.78     61.29      0.00     57.00      53.0      3.69              115.94
01/10/0001     74.65     57.61      0.11     54.61      46.9      4.04              122.56
01/11/0001     78.17     60.47      0.52     61.41      38.5      5.44              126.81
01/12/0001     74.93     64.24      1.18     62.55      67.1      5.47               99.94
01/13/0001     74.97     62.35      0.63     66.70      84.6      3.82               73.72
******* This line and below are not in the input file.
*** In this template the data ends on 01/13/0001, but the actual file
*** must obviously continue to 12/31/0100 because of the specified
*** end date on line 5.
</code></pre>

CC BY-SA 3.0
2018-01-14T10:48:57.343Z
2018-01-14T10:48:57.343Z
daniel.heydebreck
<p>How to input climate data for AGNPS model? AGNPS model is developed USDA <a href="https://www.nrcs.usda.gov/wps/portal/nrcs/detailfull/null/?cid=stelprdb1042468" rel="nofollow noreferrer">https://www.nrcs.usda.gov/wps/portal/nrcs/detailfull/null/?cid=stelprdb1042468</a></p>

CC BY-SA 3.0
2018-01-12T11:52:43.527Z
Are you developing a model or just using one?
Communisty
CC BY-SA 3.0
2018-01-12T11:58:12.020Z
i am trying using it to asses the NPS for watershed, but donr know where to start with
Namitha
CC BY-SA 3.0
2018-01-12T12:00:56.113Z
You are referring to AGNPS like it is a specific model and that the community here is familiar with it.
Communisty
CC BY-SA 3.0
2018-01-12T12:03:08.213Z
Yes it is a specific model developed by US department of agriculture to asses NPS of pollution in agricultural watershed
Namitha
CC BY-SA 3.0
2018-01-12T12:29:57.527Z
Please put that into your question with a link.
Jan Doggen
CC BY-SA 3.0
2018-01-12T13:16:48.247Z
With "_climate data_" do you mean climate modeling data? Or do you mean climatological data (instead of climate data)? If climate model data: Do you have a particular data set in mind? Do you plan to use meteorological data or something else (e.g. changes in the land-use or land cover?
daniel.heydebreck
CC BY-SA 3.0
2018-01-12T17:59:28.793Z
AGNPS requires six primary  daily climate data such as minimum and maximum temperature, dewpoint, precipitation,wind speed, solar radiation. i am confused about how to give all this inputs and i am having hard time getting in this data
Namitha
CC BY-SA 3.0
2018-01-13T14:51:51.743Z
@Namitha: You mean that you don't know which format and structure the input data needs to have? Stuff like: text file or binary file; one file for all data or one file per parameter; if text: columns separated by tab or comma; which date format ...?
daniel.heydebreck
CC BY-SA 3.0
2018-01-13T14:57:24.770Z
@Namitha: using the expression '_climate data_' in this context is confusion for many people working in the field of Earth Science. The parameters you list are commonly denoted as '_meteorological data_'. You might also say '_atmospheric forcing_'. However, I don't like the usage of the latter because '_atmospheric ..._' is often used synonymously used for '_meteorological ..._' ignoring that there are particles and gases in the atmosphere.
daniel.heydebreck
CC BY-SA 3.0
2018-01-13T14:59:57.363Z
Yeah I do not know which format  to use
Namitha
<pollution><agriculture><watershed>
Agricultural non point source of pollution (AGNPS) model input data
Namitha
# Agricultural non point source of pollution (AGNPS) model input data

(Asked by: username_0 on 2018-01-12)

How to input climate data for AGNPS model? AGNPS model is developed USDA <https://www.nrcs.usda.gov/wps/portal/nrcs/detailfull/null/?cid=stelprdb1042468>

**Tags:** pollution, agriculture, watershed

> **Comments:**
> **username_1**: Are you developing a model or just using one?  
> **username_0**: i am trying using it to asses the NPS for watershed, but donr know where to start with  
> **username_1**: You are referring to AGNPS like it is a specific model and that the community here is familiar with it.  
> **username_0**: Yes it is a specific model developed by US department of agriculture to asses NPS of pollution in agricultural watershed  
> **username_2**: Please put that into your question with a link.  
> **username_3**: With "_climate data_" do you mean climate modeling data? Or do you mean climatological data (instead of climate data)? If climate model data: Do you have a particular data set in mind? Do you plan to use meteorological data or something else (e.g. changes in the land-use or land cover?  
> **username_0**: AGNPS requires six primary  daily climate data such as minimum and maximum temperature, dewpoint, precipitation,wind speed, solar radiation. i am confused about how to give all this inputs and i am having hard time getting in this data  
> **username_3**: @username_0: You mean that you don't know which format and structure the input data needs to have? Stuff like: text file or binary file; one file for all data or one file per parameter; if text: columns separated by tab or comma; which date format ...?  
> **username_3**: @username_0: using the expression '_climate data_' in this context is confusion for many people working in the field of Earth Science. The parameters you list are commonly denoted as '_meteorological data_'. You might also say '_atmospheric forcing_'. However, I don't like the usage of the latter because '_atmospheric ..._' is often used synonymously used for '_meteorological ..._' ignoring that there are particles and gases in the atmosphere.  
> **username_0**: Yeah I do not know which format  to use  

---

## 1 answers

### Answer by username_3 on 2018-01-14. Score: 1

# tldr;

On the official support page titled [AGNPS Climate Data -- agGEM & preGEM](https://www.nrcs.usda.gov/wps/portal/nrcs/detailfull/national/water/manage/hydrology/?cid=stelprdb1043611) you find a download link to a [climate data template file](http://www.wcc.nrcs.usda.gov/ftpref/wntsc/H&H/GEM/AGNPSclimFileTemplate.txt). Your data files need to have this format. All meteorological variables are written into this file. The template file contains daily data. It is not clear if either the data has to have daily resolution or the data can be finer (hourly) or coarser (monthly) resolved.

# detailed answer

Everything I write down below is described on one the official support pages for AGPNS: [http://go.usa.gov/KL0](https://www.nrcs.usda.gov/wps/portal/nrcs/detailfull/national/water/manage/hydrology/?cid=stelprdb1043611) (This is the **official** short link provided by the United States Department of Agriculture (USDA))

### Remarks

1. The meteorological input data files for AGNPS model (**Ag**ricultural **n**on-**p**oint **S**ource Pollution Model) are actually called *climate input data*, although the files contain short term meteorological data.
2. All the provided programs are Windows executables.

### generate climate input data files for known locations

Use the program *agGEM*. This program uses an existing *statistical parameter file* (maybe: == climatological data?) of meteorological data to generate a climate input data file for AGNPS. There are 233 stations in the US, for which such statistical parameter files exist. There is no information on the support page whether the data are measurement or model data. The program can be downloaded without registration from the support page linked above. The existing statistical parameter files can be also downloaded on that page.

### generate your own statistical parameter file

The USDA provides a program called preGEM to generated statistical parameter files. preGEM needs an input data file with a long time series of meteorological data. What *long* means is to decide by the use.

The format of this particular input data file is not clear. According to the [agGEM & preGEM documentation file](http://www.wcc.nrcs.usda.gov/ftpref/wntsc/H&H/GEM/agGEMpreGEMdocumentation.pdf) one can choose between two types of text files: csv and *fixed format* (see the manual what the latter means) during the execution of preGEMs. However, a [preGEM input template](http://www.wcc.nrcs.usda.gov/ftpref/wntsc/H&H/GEM/preGEM_input_template.xls) is provided on the support page, which is a xls file. Maybe one can also choose xls as format for the input data file.

Please be aware that there are a lot of options when you save a xls as csv via the spreadsheet software of your choice: delimiters for strings, delimiter between columns (comma, tab, semicolon, ...) etc.

### Build your own climate input data file

There is a [climate input data template](http://www.wcc.nrcs.usda.gov/ftpref/wntsc/H&H/GEM/AGNPSclimFileTemplate.txt) provided on the given support page. You can generate your own file without using arGEM and preGEM. There is a file header which nicely describes how the file has to be structured. The file looks as follows:

```
*************************************************
*** a few words of explanation:
*** The Climate input data for AGNPS has the following fixed format.
*** The first line is required and must contain the current version ID
*** The second line may contain any info the user wishes.
***
*** The third line contains site latitude, longitude, elevation, 
*** temperature lapse rate with elevation, 
*** percentage N in the precip, and unit code.
*** The temperature lapse rate units are degrees F per foot or degrees C
*** per meter of elevation and can be left at zero.
*** The nitrogen percentage in the precip is currently not used in the
*** program, but units are percentage by weight.
*** The unit code is 1 for English and 0 for metric.
***
*** The fourth line contains the start date for the data.
*** The fifth line contains the end date for the data.
***
*** The sixth through eighth lines contain data column headings
*** 
******* climate file starts below this line:
Climate File Input Version ID:          5.00
   56  Princeville       
   22.0708  159.1234    345.00   -0.0036    0.0000         1
01/01/0001
12/31/0100
     Daily   -Air Temperature-   Precip-     Dew        Sky      ----- Wind -----   Solar     Storm    Potent-
    Date     Maximum   Minimum   itation     Point     Cover     Speed  Direction Radiation  Type ID    ial ET
mm/dd/yyyy     [ºF]      [ºF]      [in]      [ºF]       [%]      [mph]       [º] [BTU/h/ft^2]    [-]      [in]
01/01/0001     73.08     67.10      0.00     59.46      75.4      3.67               87.30
01/02/0001     77.12     60.72      0.08     61.19      39.2      5.61              123.27
01/03/0001     78.22     58.41      0.28     60.80      80.9      3.85               79.23
01/04/0001     79.22     60.80      0.24     60.81      34.7      2.43              127.03
01/05/0001     80.62     69.15      1.84     67.06      79.8      6.96               79.44
01/06/0001     82.05     66.88      0.25     64.65      30.0      4.29              128.66
01/07/0001     80.89     62.94      0.07     60.28      52.7      3.59              114.29
01/08/0001     77.59     63.79      0.00     60.51      33.0      4.14              129.61
01/09/0001     75.78     61.29      0.00     57.00      53.0      3.69              115.94
01/10/0001     74.65     57.61      0.11     54.61      46.9      4.04              122.56
01/11/0001     78.17     60.47      0.52     61.41      38.5      5.44              126.81
01/12/0001     74.93     64.24      1.18     62.55      67.1      5.47               99.94
01/13/0001     74.97     62.35      0.63     66.70      84.6      3.82               73.72
******* This line and below are not in the input file.
*** In this template the data ends on 01/13/0001, but the actual file
*** must obviously continue to 12/31/0100 because of the specified
*** end date on line 5.

```


---

