Daily, Monthly, & yearly three variable data sets


Upload Daily Data to the Data Library.

This is the Ingrid script for adding daily data to the data library. Phrases in green color are comments. Start the script with “\begin{ingrid}” and End the script with “\end{ingrid}” and write all the other commands within continuedataset:” and “:dataset”.


\begin{ingrid}
continuedataset:

Insert station ID grid.
grid:
/name (IWMO) defvalues: 43404000    43413000    43415000    43418000    43421000   :values (Write station numbers)
/units /ids def
:grid
Insert time grid.
grid:
/name (T) def
/units (days since 2018-12-01 12:00:00) def (If it is a daily data set, write the starting date)
/defaultvalue { last } def
0 1
30 Nov 2019 julian_day     (End date of the data set) (julian_day is a key word)
01 Dec 2018 julian_day sub  (Starting date of the data set)

:grid

Add station names.
variable:
/name (Station_Name) def
/units (name) def
grids: IWMO :grids
values:  (JAFFNA)  (MANNAR) (VAVUNIYA) (TRINCOMALEE) (ANURADHAPURA)  :values (Write station names within the brackets.)
:variable                                                                                  


Read longitudes from a text file.
variable:
/name (lon) def
/units (degree_east) def
grids: IWMO :grids
file:
/name (/local/data/SL/FECT/SS/ClimateStationData/met_stations2(copy).txt) def  (file location path and file name with extension)
formatted                                    
/format ((/,(8X,F10.3))) def    ((/,((Spaces before starts the value in the data file)X,F(float size of the value))))
 :file  
:variable

Read latitudes from a text file.
variable:
/name (lat) def
/units (degree_north) def
grids: IWMO :grids
file:
/name (/local/data/SL/FECT/SS/ClimateStationData/met_stations2(copy).txt) def
formatted
/format ((/,(17X,F8.2))) def
:file
:variable

Read elevations from a text file.
variable:
/name (ele) def
/units (meters) def
grids: IWMO :grids
file:
/name (/local/data/SL/FECT/SS/ClimateStationData/met_stations2(copy).txt) def
formatted
/format ((/,(24X,F9.2))) def
 :file
:variable

"met_stations2(copy).txt" file: 


Read Rainfall data from a text file.
variable:
/name (prcp) def
/units (mm) def
/missing_value -9999 def
grids: IWMO | T :grids
file:
formatted
/name (/local/data/SL/FECT/SS/ClimateStationData/PRCPV1.csv) def  (file location path and file name with extension)
:file                                          
:variable

Read Maximum Temperature data from a text file.
variable:
/name (Tmax) def
/units (Celsius_scale) def
/missing_value -9999 def
grids: IWMO | T :grids
file:
formatted
/name (/local/data/SL/FECT/SS/ClimateStationData/Tmaxx(copy).tsv) def
:file
:variable

"Tmaxx(copy).tsv" file: 


Read Minimum Temperature data from a text file.
variable:
/name (Tmin) def
/units ((Celsius_scale)) def
/missing_value -9999 def
grids: IWMO | T :grids
file:
formatted
/name (/local/data/SL/FECT/SS/ClimateStationData/Tmin.csv) def
:file
:variable

Assign latitude and longitude to display the map you want.
lon /scale_min 79.399 def /scale_max 82.2 def name exch def
lat /scale_min 5.481 def /scale_max 10.013 def name exch def
:dataset
\end{ingrid}


Upload Monthly & Yearly Data to the Data Library.

This is the same as the way of adding daily data to the Data Library. You only have to change the Time grid as shown below. 

Insert time grid for monthly data sets.
grid:
/name (T) def
/units (monthtime) def
/defaultvalue { last } def
16 Jan 1996 ensotime   (If it is a monthly data set, start from date 16th of the starting month)
1                                     (Count months one by one)
16 Jun 2019 ensotime   (End month with the date 16th)
:grid

Insert time grid for yearly data sets.
grid:
/name (T) def
/units (annual) def
/defaultvalue {last} def
1 Jul 1996 ensotime (If it is an annual data set, start from July 1st)
12                             (Because there are twelve months per year.)
1 Jul 2019 ensotime (End with July 1st of the year you want to finish)
:grid

Comments

Popular posts from this blog

Set-Up Local data Library

Upload data to the Data Library through Ingrid scripts

Adding data to the Data library