From ea5a07bacb6fca62c280f2923d18cddca2711233 Mon Sep 17 00:00:00 2001 From: Jacob Brown Date: Wed, 10 Sep 2025 13:00:09 -0600 Subject: [PATCH 1/5] feat: add LU tables to transfers for mapping to lexicon --- .../data/lookup_tables/LU_AltitudeDatum.csv | 3 + .../data/lookup_tables/LU_AltitudeMethod.csv | 13 + .../lookup_tables/LU_CollectionMethod.csv | 8 + .../lookup_tables/LU_ConstructionMethod.csv | 9 + .../lookup_tables/LU_CoordinateAccuracy.csv | 11 + .../data/lookup_tables/LU_CoordinateDatum.csv | 3 + .../lookup_tables/LU_CoordinateMethod.csv | 9 + .../data/lookup_tables/LU_CurrentUse.csv | 15 + .../data/lookup_tables/LU_DataQuality.csv | 10 + .../data/lookup_tables/LU_DataSource.csv | 11 + .../LU_Depth_CompletionSource.csv | 11 + .../LU_Discharge_ChemistrySource.csv | 6 + .../data/lookup_tables/LU_FieldNoteTypes.csv | 4 + .../data/lookup_tables/LU_Formations.csv | 296 ++++++++++++++++++ .../data/lookup_tables/LU_LevelStatus.csv | 24 ++ transfers/data/lookup_tables/LU_Lithology.csv | 77 +++++ .../data/lookup_tables/LU_MajorAnalyte.csv | 23 ++ .../lookup_tables/LU_MeasurementMethod.csv | 25 ++ .../data/lookup_tables/LU_MeasuringAgency.csv | 19 ++ .../lookup_tables/LU_MinorTraceAnalyte.csv | 93 ++++++ .../lookup_tables/LU_MonitoringStatus.csv | 17 + .../data/lookup_tables/LU_SampleType.csv | 12 + transfers/data/lookup_tables/LU_SiteType.csv | 12 + transfers/data/lookup_tables/LU_Status.csv | 6 + 24 files changed, 717 insertions(+) create mode 100644 transfers/data/lookup_tables/LU_AltitudeDatum.csv create mode 100644 transfers/data/lookup_tables/LU_AltitudeMethod.csv create mode 100644 transfers/data/lookup_tables/LU_CollectionMethod.csv create mode 100644 transfers/data/lookup_tables/LU_ConstructionMethod.csv create mode 100644 transfers/data/lookup_tables/LU_CoordinateAccuracy.csv create mode 100644 transfers/data/lookup_tables/LU_CoordinateDatum.csv create mode 100644 transfers/data/lookup_tables/LU_CoordinateMethod.csv create mode 100644 transfers/data/lookup_tables/LU_CurrentUse.csv create mode 100644 transfers/data/lookup_tables/LU_DataQuality.csv create mode 100644 transfers/data/lookup_tables/LU_DataSource.csv create mode 100644 transfers/data/lookup_tables/LU_Depth_CompletionSource.csv create mode 100644 transfers/data/lookup_tables/LU_Discharge_ChemistrySource.csv create mode 100644 transfers/data/lookup_tables/LU_FieldNoteTypes.csv create mode 100644 transfers/data/lookup_tables/LU_Formations.csv create mode 100644 transfers/data/lookup_tables/LU_LevelStatus.csv create mode 100644 transfers/data/lookup_tables/LU_Lithology.csv create mode 100644 transfers/data/lookup_tables/LU_MajorAnalyte.csv create mode 100644 transfers/data/lookup_tables/LU_MeasurementMethod.csv create mode 100644 transfers/data/lookup_tables/LU_MeasuringAgency.csv create mode 100644 transfers/data/lookup_tables/LU_MinorTraceAnalyte.csv create mode 100644 transfers/data/lookup_tables/LU_MonitoringStatus.csv create mode 100644 transfers/data/lookup_tables/LU_SampleType.csv create mode 100644 transfers/data/lookup_tables/LU_SiteType.csv create mode 100644 transfers/data/lookup_tables/LU_Status.csv diff --git a/transfers/data/lookup_tables/LU_AltitudeDatum.csv b/transfers/data/lookup_tables/LU_AltitudeDatum.csv new file mode 100644 index 000000000..7a59cb1c1 --- /dev/null +++ b/transfers/data/lookup_tables/LU_AltitudeDatum.csv @@ -0,0 +1,3 @@ +CODE,id +NAVD88,1 +NGVD29,2 diff --git a/transfers/data/lookup_tables/LU_AltitudeMethod.csv b/transfers/data/lookup_tables/LU_AltitudeMethod.csv new file mode 100644 index 000000000..3e2c56d2c --- /dev/null +++ b/transfers/data/lookup_tables/LU_AltitudeMethod.csv @@ -0,0 +1,13 @@ +CODE,MEANING,id +A,Altimeter,1 +D,Differentially corrected GPS,2 +F,Survey-grade GPS,3 +G,Global positioning system (GPS),4 +I,LiDAR DEM,5 +L,Level or other survey method,6 +M,Interpolated from topographic map,7 +N,Interpolated from digital elevation model (DEM),8 +R,Reported,9 +U,Unknown,10 +W,"Survey-grade Global Navigation Satellite Sys, Lvl1",11 +E,USGS National Elevation Dataset (NED),12 diff --git a/transfers/data/lookup_tables/LU_CollectionMethod.csv b/transfers/data/lookup_tables/LU_CollectionMethod.csv new file mode 100644 index 000000000..7a8e17699 --- /dev/null +++ b/transfers/data/lookup_tables/LU_CollectionMethod.csv @@ -0,0 +1,8 @@ +CODE,MEANING,id +B,Bailer,1 +F,Faucet at well head,2 +G,Grab sample,3 +H,Faucet or outlet at house,4 +P,Pump,5 +T,Thief sampler,6 +U,Unknown,7 diff --git a/transfers/data/lookup_tables/LU_ConstructionMethod.csv b/transfers/data/lookup_tables/LU_ConstructionMethod.csv new file mode 100644 index 000000000..3b0979c20 --- /dev/null +++ b/transfers/data/lookup_tables/LU_ConstructionMethod.csv @@ -0,0 +1,9 @@ +CODE,MEANING,id +A,Air-Rotary,1 +B,Bored or augered,2 +C,Cable-tool,3 +H,Hydraulic rotary (mud or water),4 +P,Air percussion,5 +R,Reverse rotary,6 +V,Driven,7 +Z,Other (explain in notes),8 diff --git a/transfers/data/lookup_tables/LU_CoordinateAccuracy.csv b/transfers/data/lookup_tables/LU_CoordinateAccuracy.csv new file mode 100644 index 000000000..4c37aba73 --- /dev/null +++ b/transfers/data/lookup_tables/LU_CoordinateAccuracy.csv @@ -0,0 +1,11 @@ +CODE,MEANING,id +1,+/- 0.1 second (differentially corrected GPS),1 +5,+/- 0.5 second (precise handheld GPS),2 +F,+/- 5 seconds,3 +H,+/- 0.01 second (differentially corrected GPS),4 +M,+/- 1 minute,5 +R,+/- 3 seconds,6 +S,+/- 1 second,7 +T,+/- 10 seconds,8 +U,Unknown,9 +5m,5 meters,10 diff --git a/transfers/data/lookup_tables/LU_CoordinateDatum.csv b/transfers/data/lookup_tables/LU_CoordinateDatum.csv new file mode 100644 index 000000000..10cab51f3 --- /dev/null +++ b/transfers/data/lookup_tables/LU_CoordinateDatum.csv @@ -0,0 +1,3 @@ +DATUMCODE,id +NAD27,1 +NAD83,2 diff --git a/transfers/data/lookup_tables/LU_CoordinateMethod.csv b/transfers/data/lookup_tables/LU_CoordinateMethod.csv new file mode 100644 index 000000000..5eda6771f --- /dev/null +++ b/transfers/data/lookup_tables/LU_CoordinateMethod.csv @@ -0,0 +1,9 @@ +CODE,MEANING,id +D,Differentially corrected GPS,1 +F,Survey-grade global positioning system (SGPS),2 +G,"GPS, uncorrected",3 +M,Interpolated from map,4 +N,Interpolated from DEM,5 +R,Reported,6 +S,"Transit, theodolite, or other survey method",7 +U,Unknown,8 diff --git a/transfers/data/lookup_tables/LU_CurrentUse.csv b/transfers/data/lookup_tables/LU_CurrentUse.csv new file mode 100644 index 000000000..02041ff4f --- /dev/null +++ b/transfers/data/lookup_tables/LU_CurrentUse.csv @@ -0,0 +1,15 @@ +CODE,MEANING,id +A,"Open, unequipped well",1 +C,Commercial,2 +D,Domestic,3 +E,Power generation,4 +I,Irrigation,5 +L,Livestock,6 +M,Mining,7 +N,Industrial,8 +O,Observation,9 +P,Public supply,10 +S,Shared domestic,11 +T,Institutional,12 +U,Unknown,13 +X,Unused,14 diff --git a/transfers/data/lookup_tables/LU_DataQuality.csv b/transfers/data/lookup_tables/LU_DataQuality.csv new file mode 100644 index 000000000..8926c31a9 --- /dev/null +++ b/transfers/data/lookup_tables/LU_DataQuality.csv @@ -0,0 +1,10 @@ +CODE,MEANING,id,SHORT_MEANING,WebDataEntryVisible +1,Water level accurate to within two hundreths of a foot,1,Good,1 +2,Water level accurate to within one foot,2,Fair,1 +3,Water level accuracy not to nearest foot or water level not repeatable,3,Poor,1 +U0,Water level accurate to nearest foot (USGS accuracy level),4,,1 +U1,Water level accurate to nearest tenth of a foot (USGS accuracy level),5,,1 +U2,Water level accurate to nearest one-hundredth of a foot (USGS accuracy level),6,,1 +U9,Water level accuracy not to nearest foot (USGS accuracy level),7,,1 +UU,Water level accuracy unknown (USGS accuracy level),8,,1 +0,None,11,NA,1 diff --git a/transfers/data/lookup_tables/LU_DataSource.csv b/transfers/data/lookup_tables/LU_DataSource.csv new file mode 100644 index 000000000..c542870d7 --- /dev/null +++ b/transfers/data/lookup_tables/LU_DataSource.csv @@ -0,0 +1,11 @@ +CODE,MEANING,id +A,Reported by another agency,2 +D,From driller's log or well report,3 +G,"Private geologist, consultant or univ associate",4 +L,Depth interpreted fr geophys logs by source agency,5 +M,"Memory of owner, operator, driller",6 +O,Reported by owner of well,7 +R,Reported by person other than driller owner agency,8 +S,Measured by NMBGMR staff,9 +Z,Other,10 +P,Data Portal,11 diff --git a/transfers/data/lookup_tables/LU_Depth_CompletionSource.csv b/transfers/data/lookup_tables/LU_Depth_CompletionSource.csv new file mode 100644 index 000000000..1282d5ffe --- /dev/null +++ b/transfers/data/lookup_tables/LU_Depth_CompletionSource.csv @@ -0,0 +1,11 @@ +CODE,MEANING,id +A,Reported by another agency,1 +D,From driller's log or well report,2 +G,"Private geologist, consultant or univ associate",3 +L,Depth interpreted fr geophys logs by source agency,4 +M,"Memory of owner, operator, driller",5 +O,Reported by owner of well,6 +R,Reported by person other than driller owner agency,7 +S,Measured by NMBGMR staff,8 +Z,Other,9 +P,Data Portal,10 diff --git a/transfers/data/lookup_tables/LU_Discharge_ChemistrySource.csv b/transfers/data/lookup_tables/LU_Discharge_ChemistrySource.csv new file mode 100644 index 000000000..4f5a99684 --- /dev/null +++ b/transfers/data/lookup_tables/LU_Discharge_ChemistrySource.csv @@ -0,0 +1,6 @@ +CODE,MEANING,id +A,Reported by another agency,1 +G,"Private geologist, consultant, or university associate",2 +R,Information from a report,3 +S,Measured by Bureau scientist,4 +Z,Other (explain),5 diff --git a/transfers/data/lookup_tables/LU_FieldNoteTypes.csv b/transfers/data/lookup_tables/LU_FieldNoteTypes.csv new file mode 100644 index 000000000..80c5e9273 --- /dev/null +++ b/transfers/data/lookup_tables/LU_FieldNoteTypes.csv @@ -0,0 +1,4 @@ +NoteType_id,FieldNoteType +3,well inventory +4,water level +5,water chemistry diff --git a/transfers/data/lookup_tables/LU_Formations.csv b/transfers/data/lookup_tables/LU_Formations.csv new file mode 100644 index 000000000..fc8beb9f4 --- /dev/null +++ b/transfers/data/lookup_tables/LU_Formations.csv @@ -0,0 +1,296 @@ +Code,Meaning,id +000EXRV,Extrusive Rocks,1 +000IRSV,Intrusive Rocks,2 +050QUAL,Quaternary Alluvium in Valleys,3 +100QBAS,Quaternary basalt,4 +110ALVM,Quaternary Alluvium,5 +110AVMB,"Alluvium, Bolson Deposits and Other Surface Deposits",6 +110BLSN,Bolson Fill,7 +110NTGU,"Naha and Tsegi Alluvium Deposits, undifferentiated",8 +110PTODC,"Pediment, Terrace and Other Deposits of Gravel, Sand and Caliche",10 +111MCCR,McCathys Basalt Flow,11 +112ANCH,"Upper Santa Fe Group, Ancha Formation (QTa)",12 +112CURB,Cuerbio Basalt,13 +112LAMA,"Lama Formation (QTl, QTbh) and other mountain front alluvial fans",14 +112LAMAb,"Lama Fm (QTl, QTbh) between Servilleta Basalts",15 +112LGUN,Laguna Basalt Flow,16 +112QTBF,Quaternary-Tertiary basin fill (not in valleys),17 +112QTBFlac,"Quaternary-Tertiary basin fill, lacustrian-playa lithofacies",18 +112QTBFpd,"Quaternary-Tertiary basin fill, distal piedmont lithofacies",19 +112QTBFppm,"Quaternary-Tertiary basin fill, proximal and medial piedmont lithofacies",20 +112SNTF,"Santa Fe Group, undivided",21 +112SNTFA,"Upper Santa Fe Group, axial facies",22 +112SNTFOB,"Upper SantaFe Group, Loma Barbon member of Arroyo Ojito Formatin",23 +112SNTFP,"Upper Santa Fe Group, piedmont facies",24 +112TRTO,Tuerto Gravels (QTt),25 +120DTIL,Datil Formation,26 +120ELRT,El Rito Formation,27 +120IRSV,Tertiary Intrusives,28 +120SBLC,"Sierra Blanca Volcanics, undivided",29 +120SRVB,Tertiary Servilletta Basalts (Tsb),30 +120SRVBf,"Tertiary Servilletta Basalts, fractured (Tsbf)",31 +120TSBV_Lower,Tertiary Sierra Blanca area lower volcanic unit (Hog Pen Fm),32 +120TSBV_Upper,Tertiary Sierra Blanca area upper volcanic unit (above Hog Pen Fm),33 +121CHMT,Chamita Formation (Tc),34 +121CHMTv,"Chamita Fm, Vallito member (Tcv)",35 +121CHMTvs,"Chamita Fm, sandy Vallito member (Tcvs)",36 +121OGLL,Ogallala Formation,37 +121PUYEF,"Puye Conglomerate, Fanglomerate Member",38 +121TSUQ,"Tesuque Formation, undifferentiated unit",39 +121TSUQa,Tesuque Fm lithosome A (Tta),40 +121TSUQacu,"Tesuque Fm (upper), Cuarteles member lithosome A (Ttacu)",41 +121TSUQacuf,"Tesuque Fm (upper), fine-grained Cuarteles member lithosome A (Ttacuf)",42 +121TSUQaml,Tesuque Fm lower-middle lithosome A (Ttaml),43 +121TSUQb,Tesuque Fm lithosome B (Ttb),44 +121TSUQbfl,"Tesuque Fm lower lithosome B, basin-floor deposits (Ttbfl)",45 +121TSUQbfm,"Tesuque Fm middle lithosome B, basin-floor deposits (Ttbfm)",46 +121TSUQbp,"Tesuque Fm lithosome B, Pojoaque member (Ttbp)",47 +121TSUQce,"Tesuque Fm, Cejita member (Ttce)",48 +121TSUQe,Tesuque Fm lithosome E (Tte),49 +121TSUQs,Tesuque Fm lithosome S (Tts),50 +121TSUQsa,Tesuque Fm lateral gradation lithosomes S and A (Ttsag),51 +121TSUQsc,Tesuque Fm coarse-grained lithosome S (Ttsc),52 +121TSUQsf,"Tesuque Fm, fine-grained lithosome S (Ttsf)",53 +122CHOC,Chamita and Ojo Caliente interlayered (Ttoc),54 +122CRTO,"Chama El Rito Formation (Tesuque member, Ttc)",55 +122OJOC,"Ojo Caliente Formation (Tesuque member, Tto)",56 +122PICR,Picuris Tuff,57 +122PPTS,Popotosa Formation,58 +122SNTFP,"Lower Santa Fe Group, piedmont facies",59 +123DTILSPRS,"Datil Group ignimbrites and lavas and Spears Group, interbedded",60 +123DTMGandbas,"Datil and Mogollon Group andesite, basaltic andesite, and basalt flows",61 +123DTMGign,Datil and Mogollon Group ignimbrites,62 +123DTMGrhydac,Datil and Mogollon Group rhyolite and dacite flows,63 +123ESPN,T Espinaso Formation (Te),64 +123GLST,T Galisteo Formation,65 +123PICS,T Picuris Formation (Tp),66 +123PICSc,"T Picuris Formation, basal conglomerate (Tpc)",67 +123PICSl,T lower Picuris Formation (Tpl),68 +123SPRSDTMGlava,"Spears Group and Datil-Mogollon intermediate-mafic lavas, interbedded",69 +123SPRSlower,"Spears Group, lower part; tuffaceous, gravelly debris and mud flows",70 +123SPRSmid_uppe,"Spears Group, middle-upper part; excludes Dog Spring Formation",71 +124BACA,Baca Formation,72 +124CBMN,Cub Mountain Formation,73 +124LLVS,Llaves Member of San Jose Formation,74 +124PSCN,Poison Canyon Formation,75 +124RGIN,Regina Member of San Jose Formation,76 +124SNJS,San Jose Formation,77 +124TPCS,TapicitosMember of San Jose Formation,78 +125NCMN,Nacimiento Formation,79 +125NCMNS,"Nacimiento Formation, Sandy Shale Facies",80 +125RTON,Raton Formation,81 +130CALDFLOOR,Caldera Floor bedrock S. of San Agustin Plains. Mostly DTILSPRS & Paleo.,82 +180TKSCC_Upper,"Tertiary-Cretaceous, Sanders Canyon, Cub Mtn. and upper Crevasse Canyon Fm",83 +180TKTR,"Tertiary-Cretaceous-Triassic, Baca, Crevasse Cyn, Gallup, Mancos, Dakota, T",84 +210CRCS,"Cretaceous System, undivided",85 +210GLUPC_Lower,K Gallup Sandstone and lower Crevasse Canyon Fm,86 +210HOSTD,K Hosta Dalton,87 +210MCDK,K Mancos/Dakota undivided,88 +210MNCS,"Mancos Shale, undivided",89 +210MNCSL,K Lower Mancos,90 +210MNCSU,K Upper Mancos,91 +211CLFHV,"Cliff House Sandstone, includes La Ventana Tongues in NW Sandoval Co.",92 +211CRLL,Carlile Shale,93 +211CRVC,Crevasse Canyon Formation of Mesaverde Group,94 +211DKOT,Dakota Sandstone or Formation,95 +211DLCO,Dilco Coal Member of Crevasse Canyon Formation of Mesaverde Group,96 +211DLTN,Dalton Sandstone Member of Crevasse Canyon Formation of Mesaverde Group,97 +211FRHS,Fort Hays Limestone Member of Niobrara Formation,98 +211FRLD,Fruitland Formation,99 +211FRMG,Farmington Sandstone Member of Kirtland Shale,100 +211GBSNC,Gibson Coal Member of Crevasse Canyon Formation of Mesaverde Group,101 +211GLLG,Gallego Sandstone Member of Gallup Sandstone,102 +211GLLP,Gallup Sandstone,103 +211GRRG,Greenhorn and Graneros Formations,104 +211GRRS,Graneros Shale,105 +211HOST,Hosta Tongue of Point Lookout Sandstone of Mesaverde Group,106 +211KRLD,Kirtland Shale,107 +211LWIS,Lewis Shale,108 +211MENF,Menefee Formation,109 +211MENFU,K Upper Menefee (above Harmon Sandstone),111 +211MVRD,Mesaverde Group,112 +211OJAM,Ojo Alamo Sandstone,113 +211PCCF,Pictured Cliffs Sandstone,114 +211PIRR,Pierre Shale,115 +211PNLK,Point Lookout Sandstone,116 +211SMKH,Smoky Hill Marl Member,117 +211TLLS,Twowells Sandstone Lentil of Pike of Dakota Sandstone,118 +212KTRP,"K Dakota Sandstone, Moenkopi Fm, Artesia Group",119 +217PRGR,Purgatoire Formation,120 +220ENRD,Entrada Sandstone,121 +220JURC,Jurassic undivided,122 +220NAVJ,Navajo Sandstone,123 +221BLFF,Bluff Sandstone of Morrison Formation,124 +221CSPG,Cow Springs Sandstone of Morrison Formation,125 +221ERADU,"Entrada Sandstone of San Rafael Group, Upper",126 +221MRSN,Morrison Formation,127 +221MRSN/BBSN,Brushy Basin Member of Morrison,128 +221MRSN/JCKP,Jackpile Sandstone Member of Morrison,129 +221MRSN/RCAP,Recapture Shale Member of Morrison,130 +221MRSN/WWCN,Westwater Canyon Member of Morrison,131 +221SLWS,Salt Wash Sandstone Member of Morrison Formation,132 +221SMVL,Summerville Formation of San Rafael Group,133 +221TDLT,J Todilto,134 +221WSRC,Westwater Canyon Sandstone Member of Morrison Formation,135 +221ZUNIS,Zuni Sandstone,136 +231AGZC,Tr Agua Zarca,137 +231AGZCU,Tr Upper Agua Zarca,138 +231CHNL,Chinle Formation,139 +231CORR,Correo Sandstone Member of Chinle Formation,140 +231DCKM,Dockum Group,141 +231PFDF,Tr Petrified Forest,142 +231PFDFL,Tr Lower Petrified Forest (below middle sandstone),143 +231PFDFM,Tr Middle Petrified Forest sandstone,144 +231PFDFU,Tr Upper Petrified Forest (above middle sandstone),145 +231RCKP,Rock Point Member of Wingate Sandstone,146 +231SNRS,Santa Rosa Sandstone,147 +231SNSL,Sonsela Sandstone Bed of Petrified Forest Member of Chinle Formation,148 +231SRMP,Shinarump Member of Chinle Formation,149 +231WNGT,Wingate Sandstone,150 +260SNAN,P San Andres,151 +260SNAN_lower,Lower San Andres Formation,152 +261SNGL,P San Andres - Glorieta Sandstone in Rio Bonito member,153 +300YESO,P Yeso,154 +300YESO_lower,Lower Yeso Formation,155 +300YESO_upper,Upper Yeso Formation,156 +310ABO,P Abo,157 +310DCLL,De Chelly Sandstone Member of Cutler Formation,158 +310GLOR,Glorieta Sandstone Member of San Andres Formation (of Manzano Group),159 +310MBLC,Meseta Blanca Sandstone Member of Yeso Formation,160 +310TRRS,Torres Member of Yeso Formation,161 +310YESO,Yeso Formation,162 +310YESOG,"Yeso Formation, Manzono Group",163 +312CSTL,Castile Formation,164 +312RSLR,Rustler Formation,165 +313ARTS,Artesia Group,166 +313BLCN,Bell Canyon Formation,167 +313BRUC,Brushy Canyon Formation of Delaware Mountain Group,168 +313CKBF,Chalk Bluff Formation,169 +313CLBD,Carlsbad Limestone,170 +313CPTN,Capitan Limestone,171 +313GDLP,Guadalupian Series,172 +313GOSP,Goat Seep Dolomite,173 +313SADG,San Andres Limestone and Glorieta Sandstone,174 +313SADR,"San Andres Limestone, undivided",175 +313TNSL,Tansill Formation,176 +313YATS,"Yates Formation, Guadalupe Group",177 +315LABR,P Laborcita (Bursum),178 +315YESOABO,Alamosa Creek and San Agustin Plains area - Yeso and Abo Formations,179 +318ABO,P Abo,180 +318BSPG,Bone Spring Limestone,181 +318JOYT,Joyita Sandstone Member of Yeso Formation,182 +318YESO,Yeso Formation,183 +319BRSM,Bursum Formation and Equivalent Rocks,184 +320HLDR,Penn Holder,185 +320PENN,Pennsylvanian undivided,186 +320SNDI,Sandia Formation,187 +321SGDC,Sangre de Cristo Formation,188 +322BEMN,Penn Beeman,189 +325GBLR,Penn Gobbler,190 +325MDER,"Madera Limestone, undivided",191 +325MDERL,Penn Lower Madera,192 +325MDERU,Penn Upper Madera,193 +325SAND,Penn Sandia,194 +326MGDL,Magdalena Group,195 +340EPRS,Espiritu Santo Formation,196 +350PZBA,Alamosa Creek and San Agustin Plains area - Paleozoic strata beneath Abo Fm,197 +350PZBB,Tul Basin area - Paleozoic strata below Bursum Fm,198 +400EMBD,Embudo Granite (undifferentiated PreCambrian near Santa Fe),199 +400PCMB,Precambrian Erathem,200 +400PREC,undifferentiated PreCambrian crystalline rocks (X),201 +400PRECintr,PreCambrian crystalline rocks and local Tertiary intrusives,202 +400PRST,Priest Granite,203 +400TUSS,Tusas Granite,204 +410PRCG,PreCambrian granite (Xg),205 +410PRCGf,"PreCambrian granite, fractured (Xgf)",206 +410PRCQ,PreCambrian quartzite (Xq),207 +410PRCQf,"PreCambrian quartzite, fractured (Xqf)",208 +121GILA,Gila Conglomerate (group),209 +312DYLK,Dewey Lake Redbeds,210 +120WMVL,Wimsattville Formation,211 +313GRBG,Grayburg Formation of Artesia Group,212 +318ABOL,Abo Sandstone (Lower Tongue),213 +318ABOU,Abo Sandstone (Upper Tongue),214 +112SNTFU,"Santa Fe Group, Upper Part",215 +310FRNR,Forty-Niner Member of Rustler Formation,216 +312OCHO,Ochoan Series,217 +313AZOT,Azotea Tongue of Seven Rivers Formation,218 +313QUEN,Queen Formation,219 +319HUCO,Hueco Limestone,220 +313SVRV,Seven Rivers Formation,221 +313CABD,Carlsbad Group,222 +320GRMS,Gray Mesa Member of Madera Formation,223 +211CLRDH,Colorado Shale,224 +120BRLM,Bearwallow Mountain Andesite,225 +122RUBO,Rubio Peak Formation,226 +313SADRL,"San Andres Limestone, Lower Cherty Member",227 +313SADRU,"San Andres Limestone, Upper Clastic Member",228 +313BRNL,Bernal Formation of Artesia Group,229 +318CPDR,Chupadera Formation,230 +121BDHC,Bidahochi Formation,231 +313SADY,"San Andres Limestone and Yeso Formation, undivided",232 +221SRFLL,"San Rafael Group, Lower Part",233 +221BLUF,Bluff Sandstone of Morrison Formation,234 +221COSP,Cow Springs Sandstone of Morrison Formation,235 +317ABYS,"Abo and Yeso, undifferentiated",236 +221BRSB,Brushy Basin Shale Member of Morrison Formation,237 +310SYDR,San Ysidro Member of Yeso Formation,238 +400SDVL,Sandoval Granite,239 +221SRFL,San Rafael Group,240 +310SGRC,Sangre de Cristo Formation,241 +231TCVS,Tecovas Formation of Dockum Group,242 +211DCRS,D-Cross Tongue of Mancos Shale of Mesaverde Group,243 +211ALSN,Allison Member of Menefee Formation of Mesaverde Group,244 +211LVNN,La Ventana Tongue of Cliff House Sandstone,245 +211MORD,Madrid Formation,246 +210PRMD,Pyramid Shale,247 +124ANMS,Animas Formation,248 +211NBRR,Niobrara Formation,249 +111ALVM,Holocene Alluvium,250 +122SNTFL,"Santa Fe Group, Lower Part",251 +111CPLN,Capulin Basalts,252 +120CRSN,Carson Conflomerate,253 +111CRMS,Covered/Reclaimed Mine Spoil,254 +111CRMSA,Covered/Reclaimed Mine Spoil and Ash,255 +111SPOL,Spoil,256 +110TURT,Tuerto Gravel of Santa Fe Group,257 +221RCPR,Recapture Shale Member of Morrison Formation,258 +320BLNG,Bullington Member of Magdalena Formation,259 +112ANCHsr,"Upper Santa Fe Group, Ancha Formation & ancestral Santa Fe river deposits",260 +121TSUQae,Tesuque Fm Lithosomes A and E,261 +230TRSC,Triassic undifferentiated,262 +122TSUQdx,"Tesuque Fm, Dixon member (Ttd)",263 +123PICSu,T upper Picuris Formation (Tpu),264 +123PICSm,T middle Picuris Formation (Tpm),265 +123PICSmc,T middle conglomerate Picuris Formation (Tpmc),266 +120VBVC,Tertiary volcanic breccia/volcaniclastic conglomerate,267 +120VCSS,Tertiary volcaniclastic sandstone,268 +124DMDT,Diamond Tail Formation,269 +325ALMT,Penn Alamitos Formation,270 +400SAND,Sandia Granite,271 +318VCPK,Victorio Peak Limestone,272 +318BSVP,Bone Spring and Victorio Peak Limestones,273 +100ALVM,Alluvium,274 +310PRMN,Permian System,275 +110AVPS,Alluvium and Permian System,276 +313CRCX,Capitan Reef Complex and Associated Limestones,277 +112SLBL,Salt Bolson,278 +112SBCRC,Salt Bolson and Capitan Reef Complex,279 +313CRDM,Capitan Reef Complex - Delaware Mountain Group,280 +112SBDM,Salt Bolson and Delaware Mountain Group,281 +120BLSN,Bolson Deposits,282 +112SBCR,Salt Bolson and Cretaceous Rocks,283 +112HCBL,Hueco Bolson,284 +120IVIG,Intrusive Rocks,285 +112RLBL,Red Light Draw Bolson,286 +112EFBL,Eagle Flat Bolson,287 +112GRBL,Green River Bolson,288 +123SAND,Sanders Canyon Formation,289 +210MRNH,Moreno Hill Formation,291 +320ALMT,Alamito Shale,292 +313DLRM,Delaware Mountain Group,293 +300PLZC,Paleozoic Erathem,294 +122SPRS,Spears Member of Datil Formation,295 +110AVTV,Alluvium and Tertiary Volcanics,296 +313DMBS,Delaware Mountain Group - Bone Spring Limestone,297 +120ERSV,Tertiary extrusives,298 diff --git a/transfers/data/lookup_tables/LU_LevelStatus.csv b/transfers/data/lookup_tables/LU_LevelStatus.csv new file mode 100644 index 000000000..435083a4a --- /dev/null +++ b/transfers/data/lookup_tables/LU_LevelStatus.csv @@ -0,0 +1,24 @@ +CODE,MEANING,id,WebDataEntryVisible +A,Water level affected by atmospheric pressure,1,0 +C,Water level was frozen (no level recorded).,2,1 +D,Site was dry,3,1 +E,Site was flowing recently.,4,1 +F,Site was flowing. Water level or head couldn't be measured w/out additional equipment.,5,1 +G,Nearby site that taps the same aquifer was flowing.,6,1 +H,Nearby site that taps the same aquifer had been flowing recently.,7,1 +I,Recharge water was being injected into the aquifer at this site.,8,0 +J,Recharge water was being injected into nearby site that taps the same aquifer.,9,0 +K,Water was cascading down the inside of the well.,10,1 +L,Water level was affected by brackish or saline water.,11,0 +M,Well was not in hydraulic contact w/formation (from source other than defined in USGS C714 or C93).,12,0 +N,Measurement was discontinued (no level recorded).,13,0 +O,Obstruction was encountered in the well (no level recorded),14,1 +P,Site was being pumped,15,1 +R,Site was pumped recently,16,1 +S,Nearby site that taps the same aquifer was being pumped,17,1 +T,Nearby site that taps the same aquifer was pumped recently,18,1 +V,Foreign substance present on the water surface,19,1 +W,Well was destroyed (no subsequent water levels should be recorded),20,1 +X,Water level affected by stage in nearby surface-water site,21,1 +Z,Other conditions exist that would affect the level (remarks),22,1 +AA,Water level not affected by status,24,0 diff --git a/transfers/data/lookup_tables/LU_Lithology.csv b/transfers/data/lookup_tables/LU_Lithology.csv new file mode 100644 index 000000000..970c3dda7 --- /dev/null +++ b/transfers/data/lookup_tables/LU_Lithology.csv @@ -0,0 +1,77 @@ +TERM,ABBREVIATION,id +Alluvium,ALVM,1 +Anhydrite,ANDR,2 +Arkose,ARKS,3 +Boulders,BLDR,4 +"Boulders, silt and clay",BLSC,5 +Boulders and sand,BLSD,6 +Bentonite,BNTN,7 +Breccia,BRCC,8 +Basalt,BSLT,9 +Conglomerate,CGLM,10 +Chalk,CHLK,11 +Chert,CHRT,12 +Clay,CLAY,13 +Caliche,CLCH,14 +Calcite,CLCT,15 +"Clay, some sand",CLSD,16 +Claystone,CLSN,17 +Coal,COAL,18 +Cobbles,COBB,19 +"Cobbles, silt and clay",COSC,20 +Cobbles and sand,COSD,21 +Dolomite,DLMT,22 +Dolomite and shale,DLSH,23 +Evaporite,EVPR,24 +Gneiss,GNSS,25 +Gypsum,GPSM,26 +Graywacke,GRCK,27 +Gravel and clay,GRCL,28 +"Gravel, cemented",GRCM,29 +"Gravel, sand and silt",GRDS,30 +"Granite, gneiss",GRGN,31 +Granite,GRNT,32 +"Gravel, silt and clay",GRSC,33 +Gravel,GRVL,34 +Igneous undifferentiated,IGNS,35 +Lignite,LGNT,36 +Limestone and dolomite,LMDM,37 +Limestone and shale,LMSH,38 +Limestone,LMSN,39 +Marl,MARL,40 +Mudstone,MDSN,41 +Metamorphic undifferentiated,MMPC,42 +Marlstone,MRLS,43 +No Recovery,NR,44 +Peat,PEAT,45 +Quartzite,QRTZ,46 +Rhyolite,RYLT,47 +Sand,SAND,48 +Schist,SCST,49 +Sand and clay,SDCL,50 +Sand and gravel,SDGL,51 +Sandstone and shale,SDSL,52 +Sand and silt,SDST,53 +"Sand, gravel and clay",SGVC,54 +Shale,SHLE,55 +Silt,SILT,56 +Siltstone and shale,SLSH,57 +Siltstone,SLSN,58 +Slate,SLTE,59 +"Sand, some clay",SNCL,60 +Sandstone,SNDS,61 +Silt and clay,STCL,62 +Travertine,TRVR,63 +Tuff,TUFF,64 +Volcanic undifferentiated,VLCC,65 +"Clay, yellow",CLYE,66 +"Clay, red",CLRD,67 +Surficial sediment,SUSE,68 +"Limestone and sandstone, interbedded",LMSD,70 +Gravel and boulders,GRBL,71 +"Sand, silt and gravel",SSTG,72 +"Sand, gravel, silt and clay",SGSC,73 +Andesite,ANDS,74 +"Ignesous, intrusive, undifferentiated",IGIN,75 +"Limestone, sandstone and shale",LMSS,76 +"Sand, silt and clay",SDCS,77 diff --git a/transfers/data/lookup_tables/LU_MajorAnalyte.csv b/transfers/data/lookup_tables/LU_MajorAnalyte.csv new file mode 100644 index 000000000..f4ae20664 --- /dev/null +++ b/transfers/data/lookup_tables/LU_MajorAnalyte.csv @@ -0,0 +1,23 @@ +CODE,MEANING,id +ALK,"Alkalinity, Total",1 +Ca,Calcium,2 +Ca(total),"Calcium, total, unfiltered",3 +Cl,Chloride,4 +CO3,Carbonate,5 +CONDLAB,"Conductivity, laboratory (µS)",6 +HCO3,Bicarbonate,7 +HRD,Hardness (CaCO3),8 +IONBAL,Ion Balance,9 +K,Potassium,10 +K(total),"Potassium, total, unfiltered",11 +Mg,Magnesium,12 +Mg(total),"Magnesium, total, unfiltered",13 +Na,Sodium,14 +Na(total),"Sodium, total, unfiltered",15 +Na+K,Sodium and Potassium combined,16 +OH,Alkalinity as OH-,17 +pHL,"pH,laboratory",18 +SO4,Sulfate,19 +TAn,Total Anions,20 +TCat,Total Cations,21 +TDS,Total Dissolved Solids,22 diff --git a/transfers/data/lookup_tables/LU_MeasurementMethod.csv b/transfers/data/lookup_tables/LU_MeasurementMethod.csv new file mode 100644 index 000000000..981ece641 --- /dev/null +++ b/transfers/data/lookup_tables/LU_MeasurementMethod.csv @@ -0,0 +1,25 @@ +CODE,MEANING,id,WebDataEntryVisible +A,Airline measurement,1,1 +B,Analog or graphic recorder,2,0 +C,Calibrated airline measurement,3,0 +D,Differential GPS; especially applicable to surface expression of ground water,4,0 +E,Estimated,5,0 +F,Transducer,6,0 +G,Pressure-gage measurement,7,1 +H,Calibrated pressure-gage measurement,8,0 +L,Interpreted from geophysical logs,9,0 +M,Manometer,10,0 +N,Non-recording gage,11,0 +O,"Observed (required for F, N, and W water level status)",12,0 +P,Sonic water level meter (acoustic pulse),13,1 +R,"Reported, method not known",14,0 +S,Steel-tape measurement,15,1 +T,Electric tape measurement (E-probe),16,1 +U,Unknown (for legacy data only; not for new data entry),17,0 +V,Calibrated electric tape; accuracy of equipment has been checked,18,0 +W,Calibrated electric cable,19,0 +X,Uncalibrated electric cable,20,0 +Z,Other (explain in notes),21,0 +K,Continuous acoustic sounder,22,0 +ZZ,Measurement not attempted,23,1 +0,null placeholder,24,0 diff --git a/transfers/data/lookup_tables/LU_MeasuringAgency.csv b/transfers/data/lookup_tables/LU_MeasuringAgency.csv new file mode 100644 index 000000000..f142a02b1 --- /dev/null +++ b/transfers/data/lookup_tables/LU_MeasuringAgency.csv @@ -0,0 +1,19 @@ +Agency,Description,id +USGS,US Geological Survey,1 +NMOSE,New Mexico Office of the State Engineer,2 +NMBGMR,New Mexico Bureau of Geology & Mineral Resources,3 +Bernalillo Cty,Bernalillo County,4 +BLM,Bureau of Land Management,5 +SFC,Santa Fe County,6 +NESWCD,Northeast Soil & Water Conservation District,7 +NMED,New Mexico Environment Dept.,8 +NMISC,New Mexico Interstate Stream Commission,9 +PVACD,Pecos Valley Artesian Conservancy District,10 +TSWCD,Taos Soil & Water Conservation District,11 +Bayard,Bayard Municipal Water,12 +OSWCD,Otero Soil & Water Conservation District,13 +SNL,Sandia National Laboratories,14 +USFS,US Forest Service,15 +TWDB,Texas Water Development Board,16 +NMT,New Mexico Tech,17 +NPS,National Park Service,18 diff --git a/transfers/data/lookup_tables/LU_MinorTraceAnalyte.csv b/transfers/data/lookup_tables/LU_MinorTraceAnalyte.csv new file mode 100644 index 000000000..6fd3653e3 --- /dev/null +++ b/transfers/data/lookup_tables/LU_MinorTraceAnalyte.csv @@ -0,0 +1,93 @@ +CODE,MEANING,id +3H,Tritium ,1 +3H:3He Age,Age of Water using dissolved gases,2 +Ag,Silver,3 +Ag(total),"Silver, total, unfiltered",4 +Al,Aluminum,5 +Al(total),"Aluminum, total, unfiltered",6 +As,Arsenic,7 +As(total),"Arsenic, total, unfiltered",8 +B,Boron,9 +B(total),"Boron, total, unfiltered",10 +Ba,Barium,11 +Ba(total),"Barium, total, unfiltered",12 +Be,Beryllium,13 +Be(total),"Beryllium, total, unfiltered",14 +Br,Bromide,15 +C13r,13C:12C ratio ,16 +C14,"14C content, pmc",17 +C14_years,Uncorrected C14 age,18 +Cd,Cadmium,19 +Cd(total),"Cadmium, total, unfiltered",20 +CFC11,Chlorofluorocarbon-11 avg age,21 +CFC113,Chlorofluorocarbon-113 avg age,22 +CFC113_12,Chlorofluorocarbon-113/12 avg RATIO age,23 +CFC12,Chlorofluorocarbon-12 avg age,24 +Co,Cobalt,25 +Co(total),"Cobalt, total, unfiltered",26 +Cr,Chromium,27 +Cr(total),"Chromium, total, unfiltered",28 +Cu,Copper,29 +Cu(total),"Copper, total, unfiltered",30 +d18O-SO4,delta O18 sulfate,31 +d34S-SO4,Sulfate 34 isotope ratio,32 +F,Fluoride,33 +Fe,Iron,34 +Fe(total),"Iron, total, unfiltered",35 +H2r,Deuterium:Hydrogen ratio ,36 +Hg,Mercury,37 +Hg(total),"Mercury, total, unfiltered",38 +Li,Lithium,39 +Li(total),"Lithium, total, unfiltered",40 +Mn,Manganese,41 +Mn(total),"Manganese, total, unfiltered",42 +Mo,Molybdenum,43 +Mo(total),"Molybdenum, total, unfiltered",44 +Ni,Nickel,45 +Ni(total),"Nickel, total, unfiltered",46 +NO2,Nitrite (as NO2),47 +NO2(N),Nitrite (as N),48 +NO3,Nitrate (as NO3),49 +NO3(N),Nitrate (as N),50 +O18r,18O:16O ratio ,51 +Pb,Lead,52 +Pb(total),"Lead, total, unfiltered",53 +PO4,Phosphate,54 +Sb,Antimony,55 +Sb(total),"Antimony, total, unfiltered",56 +Se,Selenium,57 +Se(total),"Selenium, total, unfiltered",58 +Sf6,Sulfur hexafluoride,59 +Si,Silicon,60 +Si(total),"Silicon, total, unfiltered",61 +SiO2,Silica ,62 +Sn,Tin,63 +Sn(total),"Tin, total, unfiltered",64 +Sr,Strontium,65 +Sr(total),"Strontium, total, unfiltered",66 +Sr87:Sr86,Strontium 87:86 ratio,67 +Th,Thorium,68 +Th(total),"Thorium, total, unfiltered",69 +Ti,Titanium,70 +Ti(total),"Titanium, total, unfiltered",71 +Tl,Thallium,72 +Tl(total),"Thallium, total, unfiltered",73 +U,"Uranium (total, by ICP-MS)",74 +U(total),"Uranium, total, unfiltered",75 +V,Vanadium,76 +V(total),"Vanadium, total, unfiltered",77 +Zn,Zinc,78 +Zn(total),"Zinc, total, unfiltered",79 +C14_corrected,Corrected C14 in years,80 +AsIII,Arsenite (arsenic species),81 +AsV,Arsenate (arsenic species),82 +CN6,Cyanide,83 +ERT,Estimated recharge temperature,84 +H2S,Hydrogen sulfide,85 +NH3,Ammonia,86 +NH4,Ammonium,87 +TN,Total nitrogen,88 +TKN,Total Kjeldahl nitrogen,89 +DOC,Dissolved organic carbon,90 +TOC,Total organic carbon,91 +d13C-DIC,delta C13 of dissolved inorganic carbon,93 diff --git a/transfers/data/lookup_tables/LU_MonitoringStatus.csv b/transfers/data/lookup_tables/LU_MonitoringStatus.csv new file mode 100644 index 000000000..17c1206b2 --- /dev/null +++ b/transfers/data/lookup_tables/LU_MonitoringStatus.csv @@ -0,0 +1,17 @@ +CODE,MEANING,id +6,Monitor every six months,1 +A,Annual water level,2 +B,Monitoring bi-monthly,3 +C,Monitoring complete,4 +D,Datalogger installed,5 +L,Monitor every 10 years (long-term monitor),6 +M,Monitor monthly,7 +Q,Sampling complete,8 +R,Reported to NMBGMR bimonthly,9 +S,Sample well,10 +X,Water level cannot be measured,11 +P,Repeat sampling,12 +W,Wellntel device,13 +N,Bi-annual (every other year),14 +I,Inactive,15 +H,Data share,16 diff --git a/transfers/data/lookup_tables/LU_SampleType.csv b/transfers/data/lookup_tables/LU_SampleType.csv new file mode 100644 index 000000000..698988f9d --- /dev/null +++ b/transfers/data/lookup_tables/LU_SampleType.csv @@ -0,0 +1,12 @@ +CODE,MEANING,id +BA,Background,1 +EB,Equipment blank,2 +FB,Field blank,3 +FD,Field duplicate,4 +FP,Field parameters only,5 +PR,Precipitation,6 +RE,Repeat sample,7 +SD,Standard field sample,8 +SR,Soil or Rock sample,9 +TB,Trip blank,10 +SB,Source water blank,11 diff --git a/transfers/data/lookup_tables/LU_SiteType.csv b/transfers/data/lookup_tables/LU_SiteType.csv new file mode 100644 index 000000000..e70fc2b09 --- /dev/null +++ b/transfers/data/lookup_tables/LU_SiteType.csv @@ -0,0 +1,12 @@ +CODE,MEANING,id +D,"Diversion of surface water, etc",1 +ES,Ephemeral stream,2 +GW,Groundwater other than spring (well),3 +L,"Lake, pond or reservoir",4 +M,"Meteorological (rain, snow)",5 +O,Outfall of wastewater or return flow,6 +OT,Other,7 +PS,Perennial stream,8 +R,Rock sample location,9 +S,Soil gas sample location,10 +SP,Spring,11 diff --git a/transfers/data/lookup_tables/LU_Status.csv b/transfers/data/lookup_tables/LU_Status.csv new file mode 100644 index 000000000..f596a2476 --- /dev/null +++ b/transfers/data/lookup_tables/LU_Status.csv @@ -0,0 +1,6 @@ +CODE,MEANING,id +A,Abandoned,1 +C,"Active, pumping well",2 +D,"Destroyed, exists but not usable",3 +I,"Inactive, exists but not used",4 +U,Unknown,5 From cfd88ff208aff04bcb1eea89a4db3dd3a83eba63 Mon Sep 17 00:00:00 2001 From: Jacob Brown Date: Wed, 10 Sep 2025 16:47:00 -0600 Subject: [PATCH 2/5] feat: make LU to lexicon mapper for data transfer --- transfers/util.py | 49 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/transfers/util.py b/transfers/util.py index 4b4cec3bb..0ef2f611f 100644 --- a/transfers/util.py +++ b/transfers/util.py @@ -220,6 +220,55 @@ def make_location(row: pd.Series) -> Location: return location +def make_lu_to_lexicon_mapper(): + lu_tables = [ + # "LU_AltitudeDatum.csv", # the code is the value, so no need for mapping + "LU_AltitudeMethod.csv", # CODE/MEANING + "LU_CollectionMethod.csv", # CODE/MEANING + "LU_ConstructionMethod.csv", # CODE/MEANING + "LU_CoordinateAccuracy.csv", # CODE/MEANING + # "LU_CoordinateDatum.csv", # the code is the value, so no need for mapping + "LU_CoordinateMethod.csv", # CODE/MEANING + "LU_CurrentUse.csv", # CODE/MEANING + "LU_DataQuality.csv", # CODE/MEANING + "LU_DataSource.csv", # CODE/MEANING + "LU_Depth_CompletionSource.csv", # CODE/MEANING + "LU_Discharge_ChemistrySource.csv", # CODE/MEANING + # "LU_FieldNoteTypes.csv", # not being used in the transfers since there are no records + # "LU_Formations.csv", # needs to be cleaned before it can be used + "LU_LevelStatus.csv", # CODE/MEANING + # "LU_Lithology.csv", # needs to be cleaned before it can be used + "LU_MajorAnalyte.csv", # CODE/MEANING + "LU_MeasurementMethod.csv", # CODE/MEANING + # "LU_MeasuringAgency.csv", # the abreviation is what is used in the new schema + "LU_MinorTraceAnalyte.csv", # CODE/MEANING + "LU_MonitoringStatus.csv", # CODE/MEANING + "LU_SampleType.csv", # CODE/MEANING + "LU_SiteType.csv", # CODE/MEANING + "LU_Status.csv", # CODE/MEANING + ] + + mappers = {} + + for lu_table in lu_tables: + p = Path("lookup_tables") / lu_table + table = read_csv(p) + + for i, row in table.iterrows(): + if lu_table == "LU_Formations.csv": + code = row.Code + meaning = row.Meaning + else: + code = row.CODE + meaning = row.MEANING + + mappers.update({code: meaning}) + return mappers + + +lu_to_lexicon_map = make_lu_to_lexicon_mapper() +print(lu_to_lexicon_map) + if __name__ == "__main__": # quad = get_quad_name_from_point(-106.5, 34.2) # print(quad) From 948b17bba5dbd6096b02e52fefe918f0e3dd8f00 Mon Sep 17 00:00:00 2001 From: Jacob Brown Date: Fri, 12 Sep 2025 08:45:14 -0600 Subject: [PATCH 3/5] feat: map lu tables to lexicon for transfer --- transfers/util.py | 54 +++++++++++++++++++++++------------------------ 1 file changed, 26 insertions(+), 28 deletions(-) diff --git a/transfers/util.py b/transfers/util.py index cc2f37519..59c420b92 100644 --- a/transfers/util.py +++ b/transfers/util.py @@ -272,40 +272,39 @@ def make_location(row: pd.Series) -> Location: def make_lu_to_lexicon_mapper(): lu_tables = [ - # "LU_AltitudeDatum.csv", # the code is the value, so no need for mapping - "LU_AltitudeMethod.csv", # CODE/MEANING - "LU_CollectionMethod.csv", # CODE/MEANING - "LU_ConstructionMethod.csv", # CODE/MEANING - "LU_CoordinateAccuracy.csv", # CODE/MEANING - # "LU_CoordinateDatum.csv", # the code is the value, so no need for mapping - "LU_CoordinateMethod.csv", # CODE/MEANING - "LU_CurrentUse.csv", # CODE/MEANING - "LU_DataQuality.csv", # CODE/MEANING - "LU_DataSource.csv", # CODE/MEANING - "LU_Depth_CompletionSource.csv", # CODE/MEANING - "LU_Discharge_ChemistrySource.csv", # CODE/MEANING - # "LU_FieldNoteTypes.csv", # not being used in the transfers since there are no records - # "LU_Formations.csv", # needs to be cleaned before it can be used - "LU_LevelStatus.csv", # CODE/MEANING - # "LU_Lithology.csv", # needs to be cleaned before it can be used - "LU_MajorAnalyte.csv", # CODE/MEANING - "LU_MeasurementMethod.csv", # CODE/MEANING - # "LU_MeasuringAgency.csv", # the abreviation is what is used in the new schema - "LU_MinorTraceAnalyte.csv", # CODE/MEANING - "LU_MonitoringStatus.csv", # CODE/MEANING - "LU_SampleType.csv", # CODE/MEANING - "LU_SiteType.csv", # CODE/MEANING - "LU_Status.csv", # CODE/MEANING + # "LU_AltitudeDatum", # the code is the value, so no need for mapping + "LU_AltitudeMethod", # CODE/MEANING + "LU_CollectionMethod", # CODE/MEANING + "LU_ConstructionMethod", # CODE/MEANING + "LU_CoordinateAccuracy", # CODE/MEANING + # "LU_CoordinateDatum", # the code is the value, so no need for mapping + "LU_CoordinateMethod", # CODE/MEANING + "LU_CurrentUse", # CODE/MEANING + "LU_DataQuality", # CODE/MEANING + "LU_DataSource", # CODE/MEANING + "LU_Depth_CompletionSource", # CODE/MEANING + "LU_Discharge_ChemistrySource", # CODE/MEANING + # "LU_FieldNoteTypes", # not being used in the transfers since there are no records + # "LU_Formations", # needs to be cleaned before it can be used + "LU_LevelStatus", # CODE/MEANING + # "LU_Lithology", # needs to be cleaned before it can be used + "LU_MajorAnalyte", # CODE/MEANING + "LU_MeasurementMethod", # CODE/MEANING + # "LU_MeasuringAgency", # the abreviation is what is used in the new schema + "LU_MinorTraceAnalyte", # CODE/MEANING + "LU_MonitoringStatus", # CODE/MEANING + "LU_SampleType", # CODE/MEANING + "LU_SiteType", # CODE/MEANING + "LU_Status", # CODE/MEANING ] mappers = {} for lu_table in lu_tables: - p = Path("lookup_tables") / lu_table - table = read_csv(p) + table = read_csv(lu_table) for i, row in table.iterrows(): - if lu_table == "LU_Formations.csv": + if lu_table == "LU_Formations": code = row.Code meaning = row.Meaning else: @@ -317,7 +316,6 @@ def make_lu_to_lexicon_mapper(): lu_to_lexicon_map = make_lu_to_lexicon_mapper() -print(lu_to_lexicon_map) if __name__ == "__main__": # quad = get_quad_name_from_point(-106.5, 34.2) From db3a85784d7131fca10cfa10cebd8e0e1208472e Mon Sep 17 00:00:00 2001 From: Jacob Brown Date: Fri, 12 Sep 2025 08:47:31 -0600 Subject: [PATCH 4/5] fix: delete LU tables locally - get from cloud --- .../data/lookup_tables/LU_AltitudeDatum.csv | 3 - .../data/lookup_tables/LU_AltitudeMethod.csv | 13 - .../lookup_tables/LU_CollectionMethod.csv | 8 - .../lookup_tables/LU_ConstructionMethod.csv | 9 - .../lookup_tables/LU_CoordinateAccuracy.csv | 11 - .../data/lookup_tables/LU_CoordinateDatum.csv | 3 - .../lookup_tables/LU_CoordinateMethod.csv | 9 - .../data/lookup_tables/LU_CurrentUse.csv | 15 - .../data/lookup_tables/LU_DataQuality.csv | 10 - .../data/lookup_tables/LU_DataSource.csv | 11 - .../LU_Depth_CompletionSource.csv | 11 - .../LU_Discharge_ChemistrySource.csv | 6 - .../data/lookup_tables/LU_FieldNoteTypes.csv | 4 - .../data/lookup_tables/LU_Formations.csv | 296 ------------------ .../data/lookup_tables/LU_LevelStatus.csv | 24 -- transfers/data/lookup_tables/LU_Lithology.csv | 77 ----- .../data/lookup_tables/LU_MajorAnalyte.csv | 23 -- .../lookup_tables/LU_MeasurementMethod.csv | 25 -- .../data/lookup_tables/LU_MeasuringAgency.csv | 19 -- .../lookup_tables/LU_MinorTraceAnalyte.csv | 93 ------ .../lookup_tables/LU_MonitoringStatus.csv | 17 - .../data/lookup_tables/LU_SampleType.csv | 12 - transfers/data/lookup_tables/LU_SiteType.csv | 12 - transfers/data/lookup_tables/LU_Status.csv | 6 - 24 files changed, 717 deletions(-) delete mode 100644 transfers/data/lookup_tables/LU_AltitudeDatum.csv delete mode 100644 transfers/data/lookup_tables/LU_AltitudeMethod.csv delete mode 100644 transfers/data/lookup_tables/LU_CollectionMethod.csv delete mode 100644 transfers/data/lookup_tables/LU_ConstructionMethod.csv delete mode 100644 transfers/data/lookup_tables/LU_CoordinateAccuracy.csv delete mode 100644 transfers/data/lookup_tables/LU_CoordinateDatum.csv delete mode 100644 transfers/data/lookup_tables/LU_CoordinateMethod.csv delete mode 100644 transfers/data/lookup_tables/LU_CurrentUse.csv delete mode 100644 transfers/data/lookup_tables/LU_DataQuality.csv delete mode 100644 transfers/data/lookup_tables/LU_DataSource.csv delete mode 100644 transfers/data/lookup_tables/LU_Depth_CompletionSource.csv delete mode 100644 transfers/data/lookup_tables/LU_Discharge_ChemistrySource.csv delete mode 100644 transfers/data/lookup_tables/LU_FieldNoteTypes.csv delete mode 100644 transfers/data/lookup_tables/LU_Formations.csv delete mode 100644 transfers/data/lookup_tables/LU_LevelStatus.csv delete mode 100644 transfers/data/lookup_tables/LU_Lithology.csv delete mode 100644 transfers/data/lookup_tables/LU_MajorAnalyte.csv delete mode 100644 transfers/data/lookup_tables/LU_MeasurementMethod.csv delete mode 100644 transfers/data/lookup_tables/LU_MeasuringAgency.csv delete mode 100644 transfers/data/lookup_tables/LU_MinorTraceAnalyte.csv delete mode 100644 transfers/data/lookup_tables/LU_MonitoringStatus.csv delete mode 100644 transfers/data/lookup_tables/LU_SampleType.csv delete mode 100644 transfers/data/lookup_tables/LU_SiteType.csv delete mode 100644 transfers/data/lookup_tables/LU_Status.csv diff --git a/transfers/data/lookup_tables/LU_AltitudeDatum.csv b/transfers/data/lookup_tables/LU_AltitudeDatum.csv deleted file mode 100644 index 7a59cb1c1..000000000 --- a/transfers/data/lookup_tables/LU_AltitudeDatum.csv +++ /dev/null @@ -1,3 +0,0 @@ -CODE,id -NAVD88,1 -NGVD29,2 diff --git a/transfers/data/lookup_tables/LU_AltitudeMethod.csv b/transfers/data/lookup_tables/LU_AltitudeMethod.csv deleted file mode 100644 index 3e2c56d2c..000000000 --- a/transfers/data/lookup_tables/LU_AltitudeMethod.csv +++ /dev/null @@ -1,13 +0,0 @@ -CODE,MEANING,id -A,Altimeter,1 -D,Differentially corrected GPS,2 -F,Survey-grade GPS,3 -G,Global positioning system (GPS),4 -I,LiDAR DEM,5 -L,Level or other survey method,6 -M,Interpolated from topographic map,7 -N,Interpolated from digital elevation model (DEM),8 -R,Reported,9 -U,Unknown,10 -W,"Survey-grade Global Navigation Satellite Sys, Lvl1",11 -E,USGS National Elevation Dataset (NED),12 diff --git a/transfers/data/lookup_tables/LU_CollectionMethod.csv b/transfers/data/lookup_tables/LU_CollectionMethod.csv deleted file mode 100644 index 7a8e17699..000000000 --- a/transfers/data/lookup_tables/LU_CollectionMethod.csv +++ /dev/null @@ -1,8 +0,0 @@ -CODE,MEANING,id -B,Bailer,1 -F,Faucet at well head,2 -G,Grab sample,3 -H,Faucet or outlet at house,4 -P,Pump,5 -T,Thief sampler,6 -U,Unknown,7 diff --git a/transfers/data/lookup_tables/LU_ConstructionMethod.csv b/transfers/data/lookup_tables/LU_ConstructionMethod.csv deleted file mode 100644 index 3b0979c20..000000000 --- a/transfers/data/lookup_tables/LU_ConstructionMethod.csv +++ /dev/null @@ -1,9 +0,0 @@ -CODE,MEANING,id -A,Air-Rotary,1 -B,Bored or augered,2 -C,Cable-tool,3 -H,Hydraulic rotary (mud or water),4 -P,Air percussion,5 -R,Reverse rotary,6 -V,Driven,7 -Z,Other (explain in notes),8 diff --git a/transfers/data/lookup_tables/LU_CoordinateAccuracy.csv b/transfers/data/lookup_tables/LU_CoordinateAccuracy.csv deleted file mode 100644 index 4c37aba73..000000000 --- a/transfers/data/lookup_tables/LU_CoordinateAccuracy.csv +++ /dev/null @@ -1,11 +0,0 @@ -CODE,MEANING,id -1,+/- 0.1 second (differentially corrected GPS),1 -5,+/- 0.5 second (precise handheld GPS),2 -F,+/- 5 seconds,3 -H,+/- 0.01 second (differentially corrected GPS),4 -M,+/- 1 minute,5 -R,+/- 3 seconds,6 -S,+/- 1 second,7 -T,+/- 10 seconds,8 -U,Unknown,9 -5m,5 meters,10 diff --git a/transfers/data/lookup_tables/LU_CoordinateDatum.csv b/transfers/data/lookup_tables/LU_CoordinateDatum.csv deleted file mode 100644 index 10cab51f3..000000000 --- a/transfers/data/lookup_tables/LU_CoordinateDatum.csv +++ /dev/null @@ -1,3 +0,0 @@ -DATUMCODE,id -NAD27,1 -NAD83,2 diff --git a/transfers/data/lookup_tables/LU_CoordinateMethod.csv b/transfers/data/lookup_tables/LU_CoordinateMethod.csv deleted file mode 100644 index 5eda6771f..000000000 --- a/transfers/data/lookup_tables/LU_CoordinateMethod.csv +++ /dev/null @@ -1,9 +0,0 @@ -CODE,MEANING,id -D,Differentially corrected GPS,1 -F,Survey-grade global positioning system (SGPS),2 -G,"GPS, uncorrected",3 -M,Interpolated from map,4 -N,Interpolated from DEM,5 -R,Reported,6 -S,"Transit, theodolite, or other survey method",7 -U,Unknown,8 diff --git a/transfers/data/lookup_tables/LU_CurrentUse.csv b/transfers/data/lookup_tables/LU_CurrentUse.csv deleted file mode 100644 index 02041ff4f..000000000 --- a/transfers/data/lookup_tables/LU_CurrentUse.csv +++ /dev/null @@ -1,15 +0,0 @@ -CODE,MEANING,id -A,"Open, unequipped well",1 -C,Commercial,2 -D,Domestic,3 -E,Power generation,4 -I,Irrigation,5 -L,Livestock,6 -M,Mining,7 -N,Industrial,8 -O,Observation,9 -P,Public supply,10 -S,Shared domestic,11 -T,Institutional,12 -U,Unknown,13 -X,Unused,14 diff --git a/transfers/data/lookup_tables/LU_DataQuality.csv b/transfers/data/lookup_tables/LU_DataQuality.csv deleted file mode 100644 index 8926c31a9..000000000 --- a/transfers/data/lookup_tables/LU_DataQuality.csv +++ /dev/null @@ -1,10 +0,0 @@ -CODE,MEANING,id,SHORT_MEANING,WebDataEntryVisible -1,Water level accurate to within two hundreths of a foot,1,Good,1 -2,Water level accurate to within one foot,2,Fair,1 -3,Water level accuracy not to nearest foot or water level not repeatable,3,Poor,1 -U0,Water level accurate to nearest foot (USGS accuracy level),4,,1 -U1,Water level accurate to nearest tenth of a foot (USGS accuracy level),5,,1 -U2,Water level accurate to nearest one-hundredth of a foot (USGS accuracy level),6,,1 -U9,Water level accuracy not to nearest foot (USGS accuracy level),7,,1 -UU,Water level accuracy unknown (USGS accuracy level),8,,1 -0,None,11,NA,1 diff --git a/transfers/data/lookup_tables/LU_DataSource.csv b/transfers/data/lookup_tables/LU_DataSource.csv deleted file mode 100644 index c542870d7..000000000 --- a/transfers/data/lookup_tables/LU_DataSource.csv +++ /dev/null @@ -1,11 +0,0 @@ -CODE,MEANING,id -A,Reported by another agency,2 -D,From driller's log or well report,3 -G,"Private geologist, consultant or univ associate",4 -L,Depth interpreted fr geophys logs by source agency,5 -M,"Memory of owner, operator, driller",6 -O,Reported by owner of well,7 -R,Reported by person other than driller owner agency,8 -S,Measured by NMBGMR staff,9 -Z,Other,10 -P,Data Portal,11 diff --git a/transfers/data/lookup_tables/LU_Depth_CompletionSource.csv b/transfers/data/lookup_tables/LU_Depth_CompletionSource.csv deleted file mode 100644 index 1282d5ffe..000000000 --- a/transfers/data/lookup_tables/LU_Depth_CompletionSource.csv +++ /dev/null @@ -1,11 +0,0 @@ -CODE,MEANING,id -A,Reported by another agency,1 -D,From driller's log or well report,2 -G,"Private geologist, consultant or univ associate",3 -L,Depth interpreted fr geophys logs by source agency,4 -M,"Memory of owner, operator, driller",5 -O,Reported by owner of well,6 -R,Reported by person other than driller owner agency,7 -S,Measured by NMBGMR staff,8 -Z,Other,9 -P,Data Portal,10 diff --git a/transfers/data/lookup_tables/LU_Discharge_ChemistrySource.csv b/transfers/data/lookup_tables/LU_Discharge_ChemistrySource.csv deleted file mode 100644 index 4f5a99684..000000000 --- a/transfers/data/lookup_tables/LU_Discharge_ChemistrySource.csv +++ /dev/null @@ -1,6 +0,0 @@ -CODE,MEANING,id -A,Reported by another agency,1 -G,"Private geologist, consultant, or university associate",2 -R,Information from a report,3 -S,Measured by Bureau scientist,4 -Z,Other (explain),5 diff --git a/transfers/data/lookup_tables/LU_FieldNoteTypes.csv b/transfers/data/lookup_tables/LU_FieldNoteTypes.csv deleted file mode 100644 index 80c5e9273..000000000 --- a/transfers/data/lookup_tables/LU_FieldNoteTypes.csv +++ /dev/null @@ -1,4 +0,0 @@ -NoteType_id,FieldNoteType -3,well inventory -4,water level -5,water chemistry diff --git a/transfers/data/lookup_tables/LU_Formations.csv b/transfers/data/lookup_tables/LU_Formations.csv deleted file mode 100644 index fc8beb9f4..000000000 --- a/transfers/data/lookup_tables/LU_Formations.csv +++ /dev/null @@ -1,296 +0,0 @@ -Code,Meaning,id -000EXRV,Extrusive Rocks,1 -000IRSV,Intrusive Rocks,2 -050QUAL,Quaternary Alluvium in Valleys,3 -100QBAS,Quaternary basalt,4 -110ALVM,Quaternary Alluvium,5 -110AVMB,"Alluvium, Bolson Deposits and Other Surface Deposits",6 -110BLSN,Bolson Fill,7 -110NTGU,"Naha and Tsegi Alluvium Deposits, undifferentiated",8 -110PTODC,"Pediment, Terrace and Other Deposits of Gravel, Sand and Caliche",10 -111MCCR,McCathys Basalt Flow,11 -112ANCH,"Upper Santa Fe Group, Ancha Formation (QTa)",12 -112CURB,Cuerbio Basalt,13 -112LAMA,"Lama Formation (QTl, QTbh) and other mountain front alluvial fans",14 -112LAMAb,"Lama Fm (QTl, QTbh) between Servilleta Basalts",15 -112LGUN,Laguna Basalt Flow,16 -112QTBF,Quaternary-Tertiary basin fill (not in valleys),17 -112QTBFlac,"Quaternary-Tertiary basin fill, lacustrian-playa lithofacies",18 -112QTBFpd,"Quaternary-Tertiary basin fill, distal piedmont lithofacies",19 -112QTBFppm,"Quaternary-Tertiary basin fill, proximal and medial piedmont lithofacies",20 -112SNTF,"Santa Fe Group, undivided",21 -112SNTFA,"Upper Santa Fe Group, axial facies",22 -112SNTFOB,"Upper SantaFe Group, Loma Barbon member of Arroyo Ojito Formatin",23 -112SNTFP,"Upper Santa Fe Group, piedmont facies",24 -112TRTO,Tuerto Gravels (QTt),25 -120DTIL,Datil Formation,26 -120ELRT,El Rito Formation,27 -120IRSV,Tertiary Intrusives,28 -120SBLC,"Sierra Blanca Volcanics, undivided",29 -120SRVB,Tertiary Servilletta Basalts (Tsb),30 -120SRVBf,"Tertiary Servilletta Basalts, fractured (Tsbf)",31 -120TSBV_Lower,Tertiary Sierra Blanca area lower volcanic unit (Hog Pen Fm),32 -120TSBV_Upper,Tertiary Sierra Blanca area upper volcanic unit (above Hog Pen Fm),33 -121CHMT,Chamita Formation (Tc),34 -121CHMTv,"Chamita Fm, Vallito member (Tcv)",35 -121CHMTvs,"Chamita Fm, sandy Vallito member (Tcvs)",36 -121OGLL,Ogallala Formation,37 -121PUYEF,"Puye Conglomerate, Fanglomerate Member",38 -121TSUQ,"Tesuque Formation, undifferentiated unit",39 -121TSUQa,Tesuque Fm lithosome A (Tta),40 -121TSUQacu,"Tesuque Fm (upper), Cuarteles member lithosome A (Ttacu)",41 -121TSUQacuf,"Tesuque Fm (upper), fine-grained Cuarteles member lithosome A (Ttacuf)",42 -121TSUQaml,Tesuque Fm lower-middle lithosome A (Ttaml),43 -121TSUQb,Tesuque Fm lithosome B (Ttb),44 -121TSUQbfl,"Tesuque Fm lower lithosome B, basin-floor deposits (Ttbfl)",45 -121TSUQbfm,"Tesuque Fm middle lithosome B, basin-floor deposits (Ttbfm)",46 -121TSUQbp,"Tesuque Fm lithosome B, Pojoaque member (Ttbp)",47 -121TSUQce,"Tesuque Fm, Cejita member (Ttce)",48 -121TSUQe,Tesuque Fm lithosome E (Tte),49 -121TSUQs,Tesuque Fm lithosome S (Tts),50 -121TSUQsa,Tesuque Fm lateral gradation lithosomes S and A (Ttsag),51 -121TSUQsc,Tesuque Fm coarse-grained lithosome S (Ttsc),52 -121TSUQsf,"Tesuque Fm, fine-grained lithosome S (Ttsf)",53 -122CHOC,Chamita and Ojo Caliente interlayered (Ttoc),54 -122CRTO,"Chama El Rito Formation (Tesuque member, Ttc)",55 -122OJOC,"Ojo Caliente Formation (Tesuque member, Tto)",56 -122PICR,Picuris Tuff,57 -122PPTS,Popotosa Formation,58 -122SNTFP,"Lower Santa Fe Group, piedmont facies",59 -123DTILSPRS,"Datil Group ignimbrites and lavas and Spears Group, interbedded",60 -123DTMGandbas,"Datil and Mogollon Group andesite, basaltic andesite, and basalt flows",61 -123DTMGign,Datil and Mogollon Group ignimbrites,62 -123DTMGrhydac,Datil and Mogollon Group rhyolite and dacite flows,63 -123ESPN,T Espinaso Formation (Te),64 -123GLST,T Galisteo Formation,65 -123PICS,T Picuris Formation (Tp),66 -123PICSc,"T Picuris Formation, basal conglomerate (Tpc)",67 -123PICSl,T lower Picuris Formation (Tpl),68 -123SPRSDTMGlava,"Spears Group and Datil-Mogollon intermediate-mafic lavas, interbedded",69 -123SPRSlower,"Spears Group, lower part; tuffaceous, gravelly debris and mud flows",70 -123SPRSmid_uppe,"Spears Group, middle-upper part; excludes Dog Spring Formation",71 -124BACA,Baca Formation,72 -124CBMN,Cub Mountain Formation,73 -124LLVS,Llaves Member of San Jose Formation,74 -124PSCN,Poison Canyon Formation,75 -124RGIN,Regina Member of San Jose Formation,76 -124SNJS,San Jose Formation,77 -124TPCS,TapicitosMember of San Jose Formation,78 -125NCMN,Nacimiento Formation,79 -125NCMNS,"Nacimiento Formation, Sandy Shale Facies",80 -125RTON,Raton Formation,81 -130CALDFLOOR,Caldera Floor bedrock S. of San Agustin Plains. Mostly DTILSPRS & Paleo.,82 -180TKSCC_Upper,"Tertiary-Cretaceous, Sanders Canyon, Cub Mtn. and upper Crevasse Canyon Fm",83 -180TKTR,"Tertiary-Cretaceous-Triassic, Baca, Crevasse Cyn, Gallup, Mancos, Dakota, T",84 -210CRCS,"Cretaceous System, undivided",85 -210GLUPC_Lower,K Gallup Sandstone and lower Crevasse Canyon Fm,86 -210HOSTD,K Hosta Dalton,87 -210MCDK,K Mancos/Dakota undivided,88 -210MNCS,"Mancos Shale, undivided",89 -210MNCSL,K Lower Mancos,90 -210MNCSU,K Upper Mancos,91 -211CLFHV,"Cliff House Sandstone, includes La Ventana Tongues in NW Sandoval Co.",92 -211CRLL,Carlile Shale,93 -211CRVC,Crevasse Canyon Formation of Mesaverde Group,94 -211DKOT,Dakota Sandstone or Formation,95 -211DLCO,Dilco Coal Member of Crevasse Canyon Formation of Mesaverde Group,96 -211DLTN,Dalton Sandstone Member of Crevasse Canyon Formation of Mesaverde Group,97 -211FRHS,Fort Hays Limestone Member of Niobrara Formation,98 -211FRLD,Fruitland Formation,99 -211FRMG,Farmington Sandstone Member of Kirtland Shale,100 -211GBSNC,Gibson Coal Member of Crevasse Canyon Formation of Mesaverde Group,101 -211GLLG,Gallego Sandstone Member of Gallup Sandstone,102 -211GLLP,Gallup Sandstone,103 -211GRRG,Greenhorn and Graneros Formations,104 -211GRRS,Graneros Shale,105 -211HOST,Hosta Tongue of Point Lookout Sandstone of Mesaverde Group,106 -211KRLD,Kirtland Shale,107 -211LWIS,Lewis Shale,108 -211MENF,Menefee Formation,109 -211MENFU,K Upper Menefee (above Harmon Sandstone),111 -211MVRD,Mesaverde Group,112 -211OJAM,Ojo Alamo Sandstone,113 -211PCCF,Pictured Cliffs Sandstone,114 -211PIRR,Pierre Shale,115 -211PNLK,Point Lookout Sandstone,116 -211SMKH,Smoky Hill Marl Member,117 -211TLLS,Twowells Sandstone Lentil of Pike of Dakota Sandstone,118 -212KTRP,"K Dakota Sandstone, Moenkopi Fm, Artesia Group",119 -217PRGR,Purgatoire Formation,120 -220ENRD,Entrada Sandstone,121 -220JURC,Jurassic undivided,122 -220NAVJ,Navajo Sandstone,123 -221BLFF,Bluff Sandstone of Morrison Formation,124 -221CSPG,Cow Springs Sandstone of Morrison Formation,125 -221ERADU,"Entrada Sandstone of San Rafael Group, Upper",126 -221MRSN,Morrison Formation,127 -221MRSN/BBSN,Brushy Basin Member of Morrison,128 -221MRSN/JCKP,Jackpile Sandstone Member of Morrison,129 -221MRSN/RCAP,Recapture Shale Member of Morrison,130 -221MRSN/WWCN,Westwater Canyon Member of Morrison,131 -221SLWS,Salt Wash Sandstone Member of Morrison Formation,132 -221SMVL,Summerville Formation of San Rafael Group,133 -221TDLT,J Todilto,134 -221WSRC,Westwater Canyon Sandstone Member of Morrison Formation,135 -221ZUNIS,Zuni Sandstone,136 -231AGZC,Tr Agua Zarca,137 -231AGZCU,Tr Upper Agua Zarca,138 -231CHNL,Chinle Formation,139 -231CORR,Correo Sandstone Member of Chinle Formation,140 -231DCKM,Dockum Group,141 -231PFDF,Tr Petrified Forest,142 -231PFDFL,Tr Lower Petrified Forest (below middle sandstone),143 -231PFDFM,Tr Middle Petrified Forest sandstone,144 -231PFDFU,Tr Upper Petrified Forest (above middle sandstone),145 -231RCKP,Rock Point Member of Wingate Sandstone,146 -231SNRS,Santa Rosa Sandstone,147 -231SNSL,Sonsela Sandstone Bed of Petrified Forest Member of Chinle Formation,148 -231SRMP,Shinarump Member of Chinle Formation,149 -231WNGT,Wingate Sandstone,150 -260SNAN,P San Andres,151 -260SNAN_lower,Lower San Andres Formation,152 -261SNGL,P San Andres - Glorieta Sandstone in Rio Bonito member,153 -300YESO,P Yeso,154 -300YESO_lower,Lower Yeso Formation,155 -300YESO_upper,Upper Yeso Formation,156 -310ABO,P Abo,157 -310DCLL,De Chelly Sandstone Member of Cutler Formation,158 -310GLOR,Glorieta Sandstone Member of San Andres Formation (of Manzano Group),159 -310MBLC,Meseta Blanca Sandstone Member of Yeso Formation,160 -310TRRS,Torres Member of Yeso Formation,161 -310YESO,Yeso Formation,162 -310YESOG,"Yeso Formation, Manzono Group",163 -312CSTL,Castile Formation,164 -312RSLR,Rustler Formation,165 -313ARTS,Artesia Group,166 -313BLCN,Bell Canyon Formation,167 -313BRUC,Brushy Canyon Formation of Delaware Mountain Group,168 -313CKBF,Chalk Bluff Formation,169 -313CLBD,Carlsbad Limestone,170 -313CPTN,Capitan Limestone,171 -313GDLP,Guadalupian Series,172 -313GOSP,Goat Seep Dolomite,173 -313SADG,San Andres Limestone and Glorieta Sandstone,174 -313SADR,"San Andres Limestone, undivided",175 -313TNSL,Tansill Formation,176 -313YATS,"Yates Formation, Guadalupe Group",177 -315LABR,P Laborcita (Bursum),178 -315YESOABO,Alamosa Creek and San Agustin Plains area - Yeso and Abo Formations,179 -318ABO,P Abo,180 -318BSPG,Bone Spring Limestone,181 -318JOYT,Joyita Sandstone Member of Yeso Formation,182 -318YESO,Yeso Formation,183 -319BRSM,Bursum Formation and Equivalent Rocks,184 -320HLDR,Penn Holder,185 -320PENN,Pennsylvanian undivided,186 -320SNDI,Sandia Formation,187 -321SGDC,Sangre de Cristo Formation,188 -322BEMN,Penn Beeman,189 -325GBLR,Penn Gobbler,190 -325MDER,"Madera Limestone, undivided",191 -325MDERL,Penn Lower Madera,192 -325MDERU,Penn Upper Madera,193 -325SAND,Penn Sandia,194 -326MGDL,Magdalena Group,195 -340EPRS,Espiritu Santo Formation,196 -350PZBA,Alamosa Creek and San Agustin Plains area - Paleozoic strata beneath Abo Fm,197 -350PZBB,Tul Basin area - Paleozoic strata below Bursum Fm,198 -400EMBD,Embudo Granite (undifferentiated PreCambrian near Santa Fe),199 -400PCMB,Precambrian Erathem,200 -400PREC,undifferentiated PreCambrian crystalline rocks (X),201 -400PRECintr,PreCambrian crystalline rocks and local Tertiary intrusives,202 -400PRST,Priest Granite,203 -400TUSS,Tusas Granite,204 -410PRCG,PreCambrian granite (Xg),205 -410PRCGf,"PreCambrian granite, fractured (Xgf)",206 -410PRCQ,PreCambrian quartzite (Xq),207 -410PRCQf,"PreCambrian quartzite, fractured (Xqf)",208 -121GILA,Gila Conglomerate (group),209 -312DYLK,Dewey Lake Redbeds,210 -120WMVL,Wimsattville Formation,211 -313GRBG,Grayburg Formation of Artesia Group,212 -318ABOL,Abo Sandstone (Lower Tongue),213 -318ABOU,Abo Sandstone (Upper Tongue),214 -112SNTFU,"Santa Fe Group, Upper Part",215 -310FRNR,Forty-Niner Member of Rustler Formation,216 -312OCHO,Ochoan Series,217 -313AZOT,Azotea Tongue of Seven Rivers Formation,218 -313QUEN,Queen Formation,219 -319HUCO,Hueco Limestone,220 -313SVRV,Seven Rivers Formation,221 -313CABD,Carlsbad Group,222 -320GRMS,Gray Mesa Member of Madera Formation,223 -211CLRDH,Colorado Shale,224 -120BRLM,Bearwallow Mountain Andesite,225 -122RUBO,Rubio Peak Formation,226 -313SADRL,"San Andres Limestone, Lower Cherty Member",227 -313SADRU,"San Andres Limestone, Upper Clastic Member",228 -313BRNL,Bernal Formation of Artesia Group,229 -318CPDR,Chupadera Formation,230 -121BDHC,Bidahochi Formation,231 -313SADY,"San Andres Limestone and Yeso Formation, undivided",232 -221SRFLL,"San Rafael Group, Lower Part",233 -221BLUF,Bluff Sandstone of Morrison Formation,234 -221COSP,Cow Springs Sandstone of Morrison Formation,235 -317ABYS,"Abo and Yeso, undifferentiated",236 -221BRSB,Brushy Basin Shale Member of Morrison Formation,237 -310SYDR,San Ysidro Member of Yeso Formation,238 -400SDVL,Sandoval Granite,239 -221SRFL,San Rafael Group,240 -310SGRC,Sangre de Cristo Formation,241 -231TCVS,Tecovas Formation of Dockum Group,242 -211DCRS,D-Cross Tongue of Mancos Shale of Mesaverde Group,243 -211ALSN,Allison Member of Menefee Formation of Mesaverde Group,244 -211LVNN,La Ventana Tongue of Cliff House Sandstone,245 -211MORD,Madrid Formation,246 -210PRMD,Pyramid Shale,247 -124ANMS,Animas Formation,248 -211NBRR,Niobrara Formation,249 -111ALVM,Holocene Alluvium,250 -122SNTFL,"Santa Fe Group, Lower Part",251 -111CPLN,Capulin Basalts,252 -120CRSN,Carson Conflomerate,253 -111CRMS,Covered/Reclaimed Mine Spoil,254 -111CRMSA,Covered/Reclaimed Mine Spoil and Ash,255 -111SPOL,Spoil,256 -110TURT,Tuerto Gravel of Santa Fe Group,257 -221RCPR,Recapture Shale Member of Morrison Formation,258 -320BLNG,Bullington Member of Magdalena Formation,259 -112ANCHsr,"Upper Santa Fe Group, Ancha Formation & ancestral Santa Fe river deposits",260 -121TSUQae,Tesuque Fm Lithosomes A and E,261 -230TRSC,Triassic undifferentiated,262 -122TSUQdx,"Tesuque Fm, Dixon member (Ttd)",263 -123PICSu,T upper Picuris Formation (Tpu),264 -123PICSm,T middle Picuris Formation (Tpm),265 -123PICSmc,T middle conglomerate Picuris Formation (Tpmc),266 -120VBVC,Tertiary volcanic breccia/volcaniclastic conglomerate,267 -120VCSS,Tertiary volcaniclastic sandstone,268 -124DMDT,Diamond Tail Formation,269 -325ALMT,Penn Alamitos Formation,270 -400SAND,Sandia Granite,271 -318VCPK,Victorio Peak Limestone,272 -318BSVP,Bone Spring and Victorio Peak Limestones,273 -100ALVM,Alluvium,274 -310PRMN,Permian System,275 -110AVPS,Alluvium and Permian System,276 -313CRCX,Capitan Reef Complex and Associated Limestones,277 -112SLBL,Salt Bolson,278 -112SBCRC,Salt Bolson and Capitan Reef Complex,279 -313CRDM,Capitan Reef Complex - Delaware Mountain Group,280 -112SBDM,Salt Bolson and Delaware Mountain Group,281 -120BLSN,Bolson Deposits,282 -112SBCR,Salt Bolson and Cretaceous Rocks,283 -112HCBL,Hueco Bolson,284 -120IVIG,Intrusive Rocks,285 -112RLBL,Red Light Draw Bolson,286 -112EFBL,Eagle Flat Bolson,287 -112GRBL,Green River Bolson,288 -123SAND,Sanders Canyon Formation,289 -210MRNH,Moreno Hill Formation,291 -320ALMT,Alamito Shale,292 -313DLRM,Delaware Mountain Group,293 -300PLZC,Paleozoic Erathem,294 -122SPRS,Spears Member of Datil Formation,295 -110AVTV,Alluvium and Tertiary Volcanics,296 -313DMBS,Delaware Mountain Group - Bone Spring Limestone,297 -120ERSV,Tertiary extrusives,298 diff --git a/transfers/data/lookup_tables/LU_LevelStatus.csv b/transfers/data/lookup_tables/LU_LevelStatus.csv deleted file mode 100644 index 435083a4a..000000000 --- a/transfers/data/lookup_tables/LU_LevelStatus.csv +++ /dev/null @@ -1,24 +0,0 @@ -CODE,MEANING,id,WebDataEntryVisible -A,Water level affected by atmospheric pressure,1,0 -C,Water level was frozen (no level recorded).,2,1 -D,Site was dry,3,1 -E,Site was flowing recently.,4,1 -F,Site was flowing. Water level or head couldn't be measured w/out additional equipment.,5,1 -G,Nearby site that taps the same aquifer was flowing.,6,1 -H,Nearby site that taps the same aquifer had been flowing recently.,7,1 -I,Recharge water was being injected into the aquifer at this site.,8,0 -J,Recharge water was being injected into nearby site that taps the same aquifer.,9,0 -K,Water was cascading down the inside of the well.,10,1 -L,Water level was affected by brackish or saline water.,11,0 -M,Well was not in hydraulic contact w/formation (from source other than defined in USGS C714 or C93).,12,0 -N,Measurement was discontinued (no level recorded).,13,0 -O,Obstruction was encountered in the well (no level recorded),14,1 -P,Site was being pumped,15,1 -R,Site was pumped recently,16,1 -S,Nearby site that taps the same aquifer was being pumped,17,1 -T,Nearby site that taps the same aquifer was pumped recently,18,1 -V,Foreign substance present on the water surface,19,1 -W,Well was destroyed (no subsequent water levels should be recorded),20,1 -X,Water level affected by stage in nearby surface-water site,21,1 -Z,Other conditions exist that would affect the level (remarks),22,1 -AA,Water level not affected by status,24,0 diff --git a/transfers/data/lookup_tables/LU_Lithology.csv b/transfers/data/lookup_tables/LU_Lithology.csv deleted file mode 100644 index 970c3dda7..000000000 --- a/transfers/data/lookup_tables/LU_Lithology.csv +++ /dev/null @@ -1,77 +0,0 @@ -TERM,ABBREVIATION,id -Alluvium,ALVM,1 -Anhydrite,ANDR,2 -Arkose,ARKS,3 -Boulders,BLDR,4 -"Boulders, silt and clay",BLSC,5 -Boulders and sand,BLSD,6 -Bentonite,BNTN,7 -Breccia,BRCC,8 -Basalt,BSLT,9 -Conglomerate,CGLM,10 -Chalk,CHLK,11 -Chert,CHRT,12 -Clay,CLAY,13 -Caliche,CLCH,14 -Calcite,CLCT,15 -"Clay, some sand",CLSD,16 -Claystone,CLSN,17 -Coal,COAL,18 -Cobbles,COBB,19 -"Cobbles, silt and clay",COSC,20 -Cobbles and sand,COSD,21 -Dolomite,DLMT,22 -Dolomite and shale,DLSH,23 -Evaporite,EVPR,24 -Gneiss,GNSS,25 -Gypsum,GPSM,26 -Graywacke,GRCK,27 -Gravel and clay,GRCL,28 -"Gravel, cemented",GRCM,29 -"Gravel, sand and silt",GRDS,30 -"Granite, gneiss",GRGN,31 -Granite,GRNT,32 -"Gravel, silt and clay",GRSC,33 -Gravel,GRVL,34 -Igneous undifferentiated,IGNS,35 -Lignite,LGNT,36 -Limestone and dolomite,LMDM,37 -Limestone and shale,LMSH,38 -Limestone,LMSN,39 -Marl,MARL,40 -Mudstone,MDSN,41 -Metamorphic undifferentiated,MMPC,42 -Marlstone,MRLS,43 -No Recovery,NR,44 -Peat,PEAT,45 -Quartzite,QRTZ,46 -Rhyolite,RYLT,47 -Sand,SAND,48 -Schist,SCST,49 -Sand and clay,SDCL,50 -Sand and gravel,SDGL,51 -Sandstone and shale,SDSL,52 -Sand and silt,SDST,53 -"Sand, gravel and clay",SGVC,54 -Shale,SHLE,55 -Silt,SILT,56 -Siltstone and shale,SLSH,57 -Siltstone,SLSN,58 -Slate,SLTE,59 -"Sand, some clay",SNCL,60 -Sandstone,SNDS,61 -Silt and clay,STCL,62 -Travertine,TRVR,63 -Tuff,TUFF,64 -Volcanic undifferentiated,VLCC,65 -"Clay, yellow",CLYE,66 -"Clay, red",CLRD,67 -Surficial sediment,SUSE,68 -"Limestone and sandstone, interbedded",LMSD,70 -Gravel and boulders,GRBL,71 -"Sand, silt and gravel",SSTG,72 -"Sand, gravel, silt and clay",SGSC,73 -Andesite,ANDS,74 -"Ignesous, intrusive, undifferentiated",IGIN,75 -"Limestone, sandstone and shale",LMSS,76 -"Sand, silt and clay",SDCS,77 diff --git a/transfers/data/lookup_tables/LU_MajorAnalyte.csv b/transfers/data/lookup_tables/LU_MajorAnalyte.csv deleted file mode 100644 index f4ae20664..000000000 --- a/transfers/data/lookup_tables/LU_MajorAnalyte.csv +++ /dev/null @@ -1,23 +0,0 @@ -CODE,MEANING,id -ALK,"Alkalinity, Total",1 -Ca,Calcium,2 -Ca(total),"Calcium, total, unfiltered",3 -Cl,Chloride,4 -CO3,Carbonate,5 -CONDLAB,"Conductivity, laboratory (µS)",6 -HCO3,Bicarbonate,7 -HRD,Hardness (CaCO3),8 -IONBAL,Ion Balance,9 -K,Potassium,10 -K(total),"Potassium, total, unfiltered",11 -Mg,Magnesium,12 -Mg(total),"Magnesium, total, unfiltered",13 -Na,Sodium,14 -Na(total),"Sodium, total, unfiltered",15 -Na+K,Sodium and Potassium combined,16 -OH,Alkalinity as OH-,17 -pHL,"pH,laboratory",18 -SO4,Sulfate,19 -TAn,Total Anions,20 -TCat,Total Cations,21 -TDS,Total Dissolved Solids,22 diff --git a/transfers/data/lookup_tables/LU_MeasurementMethod.csv b/transfers/data/lookup_tables/LU_MeasurementMethod.csv deleted file mode 100644 index 981ece641..000000000 --- a/transfers/data/lookup_tables/LU_MeasurementMethod.csv +++ /dev/null @@ -1,25 +0,0 @@ -CODE,MEANING,id,WebDataEntryVisible -A,Airline measurement,1,1 -B,Analog or graphic recorder,2,0 -C,Calibrated airline measurement,3,0 -D,Differential GPS; especially applicable to surface expression of ground water,4,0 -E,Estimated,5,0 -F,Transducer,6,0 -G,Pressure-gage measurement,7,1 -H,Calibrated pressure-gage measurement,8,0 -L,Interpreted from geophysical logs,9,0 -M,Manometer,10,0 -N,Non-recording gage,11,0 -O,"Observed (required for F, N, and W water level status)",12,0 -P,Sonic water level meter (acoustic pulse),13,1 -R,"Reported, method not known",14,0 -S,Steel-tape measurement,15,1 -T,Electric tape measurement (E-probe),16,1 -U,Unknown (for legacy data only; not for new data entry),17,0 -V,Calibrated electric tape; accuracy of equipment has been checked,18,0 -W,Calibrated electric cable,19,0 -X,Uncalibrated electric cable,20,0 -Z,Other (explain in notes),21,0 -K,Continuous acoustic sounder,22,0 -ZZ,Measurement not attempted,23,1 -0,null placeholder,24,0 diff --git a/transfers/data/lookup_tables/LU_MeasuringAgency.csv b/transfers/data/lookup_tables/LU_MeasuringAgency.csv deleted file mode 100644 index f142a02b1..000000000 --- a/transfers/data/lookup_tables/LU_MeasuringAgency.csv +++ /dev/null @@ -1,19 +0,0 @@ -Agency,Description,id -USGS,US Geological Survey,1 -NMOSE,New Mexico Office of the State Engineer,2 -NMBGMR,New Mexico Bureau of Geology & Mineral Resources,3 -Bernalillo Cty,Bernalillo County,4 -BLM,Bureau of Land Management,5 -SFC,Santa Fe County,6 -NESWCD,Northeast Soil & Water Conservation District,7 -NMED,New Mexico Environment Dept.,8 -NMISC,New Mexico Interstate Stream Commission,9 -PVACD,Pecos Valley Artesian Conservancy District,10 -TSWCD,Taos Soil & Water Conservation District,11 -Bayard,Bayard Municipal Water,12 -OSWCD,Otero Soil & Water Conservation District,13 -SNL,Sandia National Laboratories,14 -USFS,US Forest Service,15 -TWDB,Texas Water Development Board,16 -NMT,New Mexico Tech,17 -NPS,National Park Service,18 diff --git a/transfers/data/lookup_tables/LU_MinorTraceAnalyte.csv b/transfers/data/lookup_tables/LU_MinorTraceAnalyte.csv deleted file mode 100644 index 6fd3653e3..000000000 --- a/transfers/data/lookup_tables/LU_MinorTraceAnalyte.csv +++ /dev/null @@ -1,93 +0,0 @@ -CODE,MEANING,id -3H,Tritium ,1 -3H:3He Age,Age of Water using dissolved gases,2 -Ag,Silver,3 -Ag(total),"Silver, total, unfiltered",4 -Al,Aluminum,5 -Al(total),"Aluminum, total, unfiltered",6 -As,Arsenic,7 -As(total),"Arsenic, total, unfiltered",8 -B,Boron,9 -B(total),"Boron, total, unfiltered",10 -Ba,Barium,11 -Ba(total),"Barium, total, unfiltered",12 -Be,Beryllium,13 -Be(total),"Beryllium, total, unfiltered",14 -Br,Bromide,15 -C13r,13C:12C ratio ,16 -C14,"14C content, pmc",17 -C14_years,Uncorrected C14 age,18 -Cd,Cadmium,19 -Cd(total),"Cadmium, total, unfiltered",20 -CFC11,Chlorofluorocarbon-11 avg age,21 -CFC113,Chlorofluorocarbon-113 avg age,22 -CFC113_12,Chlorofluorocarbon-113/12 avg RATIO age,23 -CFC12,Chlorofluorocarbon-12 avg age,24 -Co,Cobalt,25 -Co(total),"Cobalt, total, unfiltered",26 -Cr,Chromium,27 -Cr(total),"Chromium, total, unfiltered",28 -Cu,Copper,29 -Cu(total),"Copper, total, unfiltered",30 -d18O-SO4,delta O18 sulfate,31 -d34S-SO4,Sulfate 34 isotope ratio,32 -F,Fluoride,33 -Fe,Iron,34 -Fe(total),"Iron, total, unfiltered",35 -H2r,Deuterium:Hydrogen ratio ,36 -Hg,Mercury,37 -Hg(total),"Mercury, total, unfiltered",38 -Li,Lithium,39 -Li(total),"Lithium, total, unfiltered",40 -Mn,Manganese,41 -Mn(total),"Manganese, total, unfiltered",42 -Mo,Molybdenum,43 -Mo(total),"Molybdenum, total, unfiltered",44 -Ni,Nickel,45 -Ni(total),"Nickel, total, unfiltered",46 -NO2,Nitrite (as NO2),47 -NO2(N),Nitrite (as N),48 -NO3,Nitrate (as NO3),49 -NO3(N),Nitrate (as N),50 -O18r,18O:16O ratio ,51 -Pb,Lead,52 -Pb(total),"Lead, total, unfiltered",53 -PO4,Phosphate,54 -Sb,Antimony,55 -Sb(total),"Antimony, total, unfiltered",56 -Se,Selenium,57 -Se(total),"Selenium, total, unfiltered",58 -Sf6,Sulfur hexafluoride,59 -Si,Silicon,60 -Si(total),"Silicon, total, unfiltered",61 -SiO2,Silica ,62 -Sn,Tin,63 -Sn(total),"Tin, total, unfiltered",64 -Sr,Strontium,65 -Sr(total),"Strontium, total, unfiltered",66 -Sr87:Sr86,Strontium 87:86 ratio,67 -Th,Thorium,68 -Th(total),"Thorium, total, unfiltered",69 -Ti,Titanium,70 -Ti(total),"Titanium, total, unfiltered",71 -Tl,Thallium,72 -Tl(total),"Thallium, total, unfiltered",73 -U,"Uranium (total, by ICP-MS)",74 -U(total),"Uranium, total, unfiltered",75 -V,Vanadium,76 -V(total),"Vanadium, total, unfiltered",77 -Zn,Zinc,78 -Zn(total),"Zinc, total, unfiltered",79 -C14_corrected,Corrected C14 in years,80 -AsIII,Arsenite (arsenic species),81 -AsV,Arsenate (arsenic species),82 -CN6,Cyanide,83 -ERT,Estimated recharge temperature,84 -H2S,Hydrogen sulfide,85 -NH3,Ammonia,86 -NH4,Ammonium,87 -TN,Total nitrogen,88 -TKN,Total Kjeldahl nitrogen,89 -DOC,Dissolved organic carbon,90 -TOC,Total organic carbon,91 -d13C-DIC,delta C13 of dissolved inorganic carbon,93 diff --git a/transfers/data/lookup_tables/LU_MonitoringStatus.csv b/transfers/data/lookup_tables/LU_MonitoringStatus.csv deleted file mode 100644 index 17c1206b2..000000000 --- a/transfers/data/lookup_tables/LU_MonitoringStatus.csv +++ /dev/null @@ -1,17 +0,0 @@ -CODE,MEANING,id -6,Monitor every six months,1 -A,Annual water level,2 -B,Monitoring bi-monthly,3 -C,Monitoring complete,4 -D,Datalogger installed,5 -L,Monitor every 10 years (long-term monitor),6 -M,Monitor monthly,7 -Q,Sampling complete,8 -R,Reported to NMBGMR bimonthly,9 -S,Sample well,10 -X,Water level cannot be measured,11 -P,Repeat sampling,12 -W,Wellntel device,13 -N,Bi-annual (every other year),14 -I,Inactive,15 -H,Data share,16 diff --git a/transfers/data/lookup_tables/LU_SampleType.csv b/transfers/data/lookup_tables/LU_SampleType.csv deleted file mode 100644 index 698988f9d..000000000 --- a/transfers/data/lookup_tables/LU_SampleType.csv +++ /dev/null @@ -1,12 +0,0 @@ -CODE,MEANING,id -BA,Background,1 -EB,Equipment blank,2 -FB,Field blank,3 -FD,Field duplicate,4 -FP,Field parameters only,5 -PR,Precipitation,6 -RE,Repeat sample,7 -SD,Standard field sample,8 -SR,Soil or Rock sample,9 -TB,Trip blank,10 -SB,Source water blank,11 diff --git a/transfers/data/lookup_tables/LU_SiteType.csv b/transfers/data/lookup_tables/LU_SiteType.csv deleted file mode 100644 index e70fc2b09..000000000 --- a/transfers/data/lookup_tables/LU_SiteType.csv +++ /dev/null @@ -1,12 +0,0 @@ -CODE,MEANING,id -D,"Diversion of surface water, etc",1 -ES,Ephemeral stream,2 -GW,Groundwater other than spring (well),3 -L,"Lake, pond or reservoir",4 -M,"Meteorological (rain, snow)",5 -O,Outfall of wastewater or return flow,6 -OT,Other,7 -PS,Perennial stream,8 -R,Rock sample location,9 -S,Soil gas sample location,10 -SP,Spring,11 diff --git a/transfers/data/lookup_tables/LU_Status.csv b/transfers/data/lookup_tables/LU_Status.csv deleted file mode 100644 index f596a2476..000000000 --- a/transfers/data/lookup_tables/LU_Status.csv +++ /dev/null @@ -1,6 +0,0 @@ -CODE,MEANING,id -A,Abandoned,1 -C,"Active, pumping well",2 -D,"Destroyed, exists but not usable",3 -I,"Inactive, exists but not used",4 -U,Unknown,5 From 965f563a8cf8ecac580432cecf3c73b86933ee78 Mon Sep 17 00:00:00 2001 From: Jacob Brown Date: Fri, 12 Sep 2025 10:13:14 -0600 Subject: [PATCH 5/5] feat: prepend mapper key with LU table name for uniqueness --- transfers/util.py | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/transfers/util.py b/transfers/util.py index 59c420b92..fff89b753 100644 --- a/transfers/util.py +++ b/transfers/util.py @@ -311,20 +311,14 @@ def make_lu_to_lexicon_mapper(): code = row.CODE meaning = row.MEANING - mappers.update({code: meaning}) + mappers.update({f"{lu_table}:{code}": meaning}) return mappers lu_to_lexicon_map = make_lu_to_lexicon_mapper() + if __name__ == "__main__": - # quad = get_quad_name_from_point(-106.5, 34.2) - # print(quad) - # state = get_state_from_point(-106.5, 34.2) - # print(state) - # county = get_county_from_point(-106.5, 34.2) - # print(county) - z = get_epqs_elevation(-106.5, 34.2) - print(z) + print(lu_to_lexicon_map) # ============= EOF =============================================