Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
waterdataui
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Water Mission Area
Internet of Water
waterdataui
Commits
e40aed7e
Commit
e40aed7e
authored
6 years ago
by
Yan, Andrew N.
Browse files
Options
Downloads
Patches
Plain Diff
update constants to include field descriptions
parent
d9d3cc50
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
waterdata/constants.py
+196
-42
196 additions, 42 deletions
waterdata/constants.py
with
196 additions
and
42 deletions
waterdata/constants.py
+
196
−
42
View file @
e40aed7e
...
@@ -3,48 +3,202 @@ Constants
...
@@ -3,48 +3,202 @@ Constants
"""
"""
STATION_FIELDS_D
=
{
STATION_FIELDS_D
=
{
'
agency_cd
'
:
'
Agency
'
,
'
agency_cd
'
:
{
'
site_no
'
:
'
Site identification number
'
,
'
name
'
:
'
Agency
'
,
'
station_nm
'
:
'
Site name
'
,
'
description
'
:
'
The agency that is reporting the data.
'
'
site_tp_cd
'
:
'
Site type
'
,
},
'
lat_va
'
:
'
DMS latitude
'
,
'
site_no
'
:
{
'
long_va
'
:
'
DMS longitude
'
,
'
name
'
:
'
Site identification number
'
,
'
dec_lat_va
'
:
'
Decimal latitude
'
,
'
description
'
:
'
Each site in the USGS data base has a unique 8- to 15-digit identification number.
'
'
dec_long_va
'
:
'
Decimal longitude
'
,
},
'
coord_meth_cd
'
:
'
Latitude-longitude method
'
,
'
station_nm
'
:
{
'
coord_acy_cd
'
:
'
Latitude-longitude accuracy
'
,
'
name
'
:
'
Site name
'
,
'
coord_datum_cd
'
:
'
Latitude-longitude datum
'
,
'
description
'
:
(
'
dec_coord_datum_cd
'
:
'
Decimal Latitude-longitude datum
'
,
'
This is the official name of the site in the database.
'
'
district_cd
'
:
'
District
'
,
'
For well information this can be a district-assigned local number.
'
'
state_cd
'
:
'
State
'
,
)
'
county_cd
'
:
'
County
'
,
},
'
country_cd
'
:
'
Country
'
,
'
site_tp_cd
'
:
{
'
land_net_ds
'
:
'
Land net location description
'
,
'
name
'
:
'
Site type
'
,
'
map_nm
'
:
'
Name of location map
'
,
'
description
'
:
(
'
map_scale_fc
'
:
'
Scale of location map
'
,
'
A list of primary and secondary site types that can be associated with data collection sites.
'
'
alt_va
'
:
'
Altitude of Gage/land surface
'
,
'
A site type is a generalized location in the hydrologic cycle, or a man-made feature thought to
'
'
alt_meth_cd
'
:
'
Method altitude determined
'
,
'
affect the hydrologic conditions measured at a site. All sites are associated with a primary site type,
'
'
alt_acy_va
'
:
'
Altitude accuracy
'
,
'
and may additionally be associated with a secondary site type that further describes the location.
'
'
alt_datum_cd
'
:
'
Altitude datum
'
,
'
The exception to this rule is the Facility primary site type, which must always be associated with a
'
'
huc_cd
'
:
'
Subbasin hydrologic unit
'
,
'
secondary site type. The site type code incorporates these hierarchial distinctions.
'
'
basin_cd
'
:
'
Drainage basin
'
,
)
'
topo_cd
'
:
'
Topographic setting
'
,
},
'
instruments_cd
'
:
'
Flags for instruments at site
'
,
'
lat_va
'
:
{
'
construction_dt
'
:
'
Date of first construction
'
,
'
name
'
:
'
DMS latitude
'
,
'
inventory_dt
'
:
'
Date site established or inventoried
'
,
'
description
'
:
None
'
drain_area_va
'
:
'
Drainage area
'
,
},
'
contrib_drain_area_va
'
:
'
Contributing drainage area
'
,
'
long_va
'
:
{
'
tz_cd
'
:
'
Time Zone abbreviation
'
,
'
name
'
:
'
DMS longitude
'
,
'
local_time_fg
'
:
'
Site honors Daylight Savings Time
'
,
'
description
'
:
None
'
reliability_cd
'
:
'
Data reliability
'
,
},
'
gw_file_cd
'
:
'
Data-other GW files
'
,
'
dec_lat_va
'
:
{
'
nat_aqfr_cd
'
:
'
National aquifer
'
,
'
name
'
:
'
Decimal latitude
'
,
'
aqfr_cd
'
:
'
Local aquifer
'
,
'
description
'
:
None
'
aqfr_type_cd
'
:
'
Local aquifer type
'
,
},
'
well_depth_va
'
:
'
Well depth
'
,
'
dec_long_va
'
:
{
'
hole_depth_va
'
:
'
Hole depth
'
,
'
name
'
:
'
Decimal longitude
'
,
'
depth_src_cd
'
:
'
Source of depth data
'
,
'
description
'
:
None
'
project_no
'
:
'
Project number
'
,
},
'
coord_meth_cd
'
:
{
'
name
'
:
'
Latitude-longitude method
'
,
'
description
'
:
'
Indicates the method used to determine latitude longitude values.
'
},
'
coord_acy_cd
'
:
{
'
name
'
:
'
Latitude-longitude accuracy
'
,
'
description
'
:
'
Indicates the accuracy of the latitude longitude values.
'
},
'
coord_datum_cd
'
:
{
'
name
'
:
'
Latitude-longitude datum
'
,
'
description
'
:
'
Latitude/longitude (horizontal) coordinate datum.
'
},
'
dec_coord_datum_cd
'
:
{
'
name
'
:
'
Decimal Latitude-longitude datum
'
,
'
description
'
:
None
},
'
district_cd
'
:
{
'
name
'
:
'
District
'
,
'
description
'
:
(
'
The Water Science Centers (WSCs) across the United States use the FIPS state code as the district code.
'
'
In some case, sites and samples may be managed by a water science center that is adjacent to the state
'
'
in which the site actually resides.
'
)
},
'
state_cd
'
:
{
'
name
'
:
'
State
'
,
'
description
'
:
'
The name of the state or territory in which the site is located.
'
},
'
county_cd
'
:
{
'
name
'
:
'
County
'
,
'
description
'
:
(
'
The name of the county or county equivalent (parish, borough, etc.) in which the site is located.
'
)
},
'
country_cd
'
:
{
'
name
'
:
'
Country
'
,
'
description
'
:
None
},
'
land_net_ds
'
:
{
'
name
'
:
'
Land net location description
'
,
'
description
'
:
None
},
'
map_nm
'
:
{
'
name
'
:
'
Name of location map
'
,
'
description
'
:
None
},
'
map_scale_fc
'
:
{
'
name
'
:
'
Scale of location map
'
,
'
description
'
:
None
},
'
alt_va
'
:
{
'
name
'
:
'
Altitude of Gage/land surface
'
,
'
description
'
:
None
},
'
alt_meth_cd
'
:
{
'
name
'
:
'
Method altitude determined
'
,
'
description
'
:
None
},
'
alt_acy_va
'
:
{
'
name
'
:
'
Altitude accuracy
'
,
'
description
'
:
None
},
'
alt_datum_cd
'
:
{
'
name
'
:
'
Altitude datum
'
,
'
description
'
:
'
Altitude of the site referenced to the specified Vertical Datum.
'
},
'
huc_cd
'
:
{
'
name
'
:
'
Subbasin hydrologic unit
'
,
'
description
'
:
(
'
Hydrologic units are geographic areas representing part or all of a surface drainage basin or distinct
'
'
hydrologic feature and are delineated on the State Hydrologic Unit Maps.
'
)
},
'
basin_cd
'
:
{
'
name
'
:
'
Drainage basin
'
,
'
description
'
:
(
'
The Basin Code or
"
drainage basin code
"
is a two-digit code that
'
'
further subdivides the 8-digit hydrologic-unit code.
'
)
},
'
topo_cd
'
:
{
'
name
'
:
'
Topographic setting
'
,
'
description
'
:
'
Refers to the geomorphic features in the vicinity of the site.
'
},
'
instruments_cd
'
:
{
'
name
'
:
'
Flags for instruments at site
'
,
'
description
'
:
None
},
'
construction_dt
'
:
{
'
name
'
:
'
Date of first construction
'
,
'
description
'
:
'
Date the well was completed
'
},
'
inventory_dt
'
:
{
'
name
'
:
'
Date site established or inventoried
'
,
'
description
'
:
None
},
'
drain_area_va
'
:
{
'
name
'
:
'
Drainage area
'
,
'
description
'
:
(
'
The area enclosed by a topographic divide from which direct surface runoff from precipitation normally
'
'
drains by gravity into the stream above that point.
'
)
},
'
contrib_drain_area_va
'
:
{
'
name
'
:
'
Contributing drainage area
'
,
'
description
'
:
None
},
'
tz_cd
'
:
{
'
name
'
:
'
Time Zone abbreviation
'
,
'
description
'
:
None
},
'
local_time_fg
'
:
{
'
name
'
:
'
Site honors Daylight Savings Time
'
,
'
description
'
:
(
'
Y for yes or an N for no to indicate whether the site is in an area that switches to Local Standard
'
'
Time (Daylight Savings Time) for a part of the year.
'
)
},
'
reliability_cd
'
:
{
'
name
'
:
'
Data reliability
'
,
'
description
'
:
'
Data reliability code is mandatory for spring, groundwater, and aggregate groundwater sites.
'
},
'
gw_file_cd
'
:
{
'
name
'
:
'
Data-other GW files
'
,
'
description
'
:
None
},
'
nat_aqfr_cd
'
:
{
'
name
'
:
'
National aquifer
'
,
'
description
'
:
None
},
'
aqfr_cd
'
:
{
'
name
'
:
'
Local aquifer
'
,
'
description
'
:
None
},
'
aqfr_type_cd
'
:
{
'
name
'
:
'
Local aquifer type
'
,
'
description
'
:
'
Describes the type of aquifer(s) encountered by a site type of well (groundwater).
'
},
'
well_depth_va
'
:
{
'
name
'
:
'
Well depth
'
,
'
description
'
:
None
},
'
hole_depth_va
'
:
{
'
name
'
:
'
Hole depth
'
,
'
description
'
:
'
The total depth to which the hole is drilled, in feet below land surface datum.
'
},
'
depth_src_cd
'
:
{
'
name
'
:
'
Source of depth data
'
,
'
description
'
:
None
},
'
project_no
'
:
{
'
name
'
:
'
Project number
'
,
'
description
'
:
None
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment