Appendix 5: Database objects/GWSI E 16
From Agri4castWiki
Revision as of 14:15, 20 May 2016 by Wimdewinter (talk | contribs) (Created page with "{{expert}} __NOTOC__ {{TocTable|content= {{TocRow|#CROP-datasets|1. CROP-datasets}} {{TocRow|#GRID-datasets|2. GRID-datasets}} {{TocRow|#HW30S-datasets|3. HW30S-datasets}} {{T...")
content |
---|
1. CROP-datasets |
2. GRID-datasets |
3. HW30S-datasets |
4. SOILS-datasets |
5. other datasets |
CROP-datasets
content |
---|
1.1 CROP_COEFFICIENTS |
1.2 CROP_MASKS |
1.3 CROP_SEASONS |
CROP_COEFFICIENTS
- Description:
- Use:
- Type: Table
- Remarks:
Structure | |||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
CROP_MASKS
- Description:
- Use:
- Type: Table
- Remarks:
Structure | |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
CROP_SEASONS
- Description:
- Use:
- Type: Table
- Remarks:
Structure | |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
GRID-datasets
content |
---|
2.1 GRID_1KM |
2.2 GRID_25KM |
2.3 GRID_25KMPROCESS |
GRID_1KM
- Description:
- Use:
- Type: Table
- Remarks:
Structure | ||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
GRID_25KM
- Description:
- Use:
- Type: View
- Remarks:
Structure | |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
select "IDGRID" as idgrid_25km,"LATITUDE","LONGITUDE","HAS_LAND" from grid_his@cgms14glo_glodas |
GRID_25KMPROCESS
- Description:
- Use:
- Type: Table
- Remarks:
Structure | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
HW30S-datasets
content |
---|
3.1 HW30S_FULL |
3.2 HW30S_MAPUNIT |
HW30S_FULL
- Description:
- Use:
- Type: Table
- Remarks:
Structure | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
HW30S_MAPUNIT
- Description:
- Use:
- Type: Table
- Remarks:
Structure | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
SOILS-datasets
content |
---|
4.1 SOILS_SMU |
4.2 SOILS_SMU_TEMP |
4.3 SOILS_STU |
4.4 SOILS_STU_TEMP |
SOILS_SMU
- Description:
- Use:
- Type: Table
- Remarks:
Structure | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
SOILS_SMU_TEMP
- Description:
- Use:
- Type: View
- Remarks:
Structure | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
SELECT TO_NUMBER(SUBSTR(newsuid,4)) as IDSMU from HW30S_MAPUNIT |
SOILS_STU
- Description:
- Use:
- Type: Table
- Remarks:
Structure | |||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
SOILS_STU_TEMP
- Description:
- Use:
- Type: View
- Remarks:
Structure | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
select to_number(substr(newsuid,4)) idsmu , scid idstu , prop percentage , max(botdep) soil_rooting_depth , avg(tawcc*(botdep-topdep))/sum(botdep-topdep) available_water_capacity from (select newsuid newsuid -- soil map unit id , scid scid -- soil type id , prop prop -- proportion of soil type in map unit , topdep topdep -- top depth of layer , botdep botdep -- bottom depth of layer , (1-(cfrag/100))*tawc tawcc -- tawc corrected for coarse fragments > 2mm from hw30s_full where botdep <= 100 -- skip layers deeper than 1 meter and tawc >= 0 -- skip records with -1, -2, -3, -4, -5, -7, -9 and to_number(substr(newsuid,4)) not in (0,6997,6998) -- skip records with suid 0, 6997, 6998 -- and newsuid = 'WD30003473' ) group by to_number(substr(newsuid,4)), scid, prop order by to_number(substr(newsuid,4)), scid, prop |
other datasets
content |
---|
5.1 AREA |
5.2 CROPS |
5.3 PROCESS |
5.4 SEASONS |
5.5 SYSPARAMETERS |
5.6 SYSTABLES |
5.7 UNITS_CALC_INPUT |
5.8 WEATHER_HRES_GRID_10 |
AREA
- Description:
- Use:
- Type: Table
- Remarks:
Structure | |||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
CROPS
- Description:
- Use:
- Type: Table
- Remarks:
Structure | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
PROCESS
- Description:
- Use:
- Type: Table
- Remarks:
Structure | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
SEASONS
- Description:
- Use:
- Type: Table
- Remarks:
Structure | |||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
SYSPARAMETERS
- Description:
- Use:
- Type: Table
- Remarks:
Structure | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
SYSTABLES
- Description:
- Use:
- Type: Table
- Remarks:
Structure | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
UNITS_CALC_INPUT
- Description:
- Use:
- Type: Table
- Remarks:
Structure | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
WEATHER_HRES_GRID_10
- Description:
- Use:
- Type: View
- Remarks:
Structure | ||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
select w.weather_hres_grid_10_id , w.idgrid IDGRID_25KM , w.year , w.dekad_in_year , w.temperature_avg , w.temperature_max , w.temperature_min , w.precipitation , w.et0 from weather_hres_grid_10@cgms14glo_glodas w |