Skip to content

Commit

Permalink
finished jupyter notebook upload docs for now
Browse files Browse the repository at this point in the history
  • Loading branch information
JJFlorian committed Mar 22, 2024
1 parent 5d518da commit d690bd9
Show file tree
Hide file tree
Showing 2 changed files with 173 additions and 9 deletions.
15 changes: 8 additions & 7 deletions api/bro_upload/templates/registration_GMW.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<ns1:requestReference>{{ metadata.requestReference }}</ns1:requestReference>
<ns1:deliveryAccountableParty>{{ metadata.deliveryAccountableParty }}</ns1:deliveryAccountableParty>
<ns1:qualityRegime>{{ metadata.qualityRegime }}</ns1:qualityRegime>
<ns1:underPrivilege>{{ metadata.underPrivilege }}</ns1:underPrivilege>
<ns:sourceDocument>
<ns:GMW_Construction>
<ns:objectIdAccountableParty>{{ sourcedocs_data.objectIdAccountableParty }}</ns:objectIdAccountableParty>
Expand Down Expand Up @@ -59,15 +60,15 @@
<ns:sedimentSump>
<ns2:sedimentSumpLength uom="m">{{ monitoringtube.sedimentSumpLength }}</ns2:sedimentSumpLength>
</ns:sedimentSump>
{% for geoogmcable in monitoringtube.geoogmcables %}
{% for geoohmcable in monitoringtube.geoohmcables %}
<ns:geoOhmCable>
<ns:cableNumber>{{ geoogmcable.cableNumber }}</ns:cableNumber>
{% for electrode in geoogmcable.electrodes %}
<ns:cableNumber>{{ geoohmcable.cableNumber }}</ns:cableNumber>
{% for electrode in geoohmcable.electrodes %}
<ns:electrode>
<ns2:electrodeNumber>{{ geoogmcable.electrodeNumber }}</ns2:electrodeNumber>
<ns2:electrodePackingMaterial codeSpace="urn:bro:gmw:ElectrodePackingMaterial">{{ geoogmcable.electrodePackingMaterial }}</ns2:electrodePackingMaterial>
<ns2:electrodeStatus codeSpace="urn:bro:gmw:ElectrodeStatus">{{ geoogmcable.electrodeStatus }}</ns2:electrodeStatus>
<ns2:electrodePosition uom="m">{{ geoogmcable.electrodePosition }}</ns2:electrodePosition>
<ns2:electrodeNumber>{{ electrode.electrodeNumber }}</ns2:electrodeNumber>
<ns2:electrodePackingMaterial codeSpace="urn:bro:gmw:ElectrodePackingMaterial">{{ electrode.electrodePackingMaterial }}</ns2:electrodePackingMaterial>
<ns2:electrodeStatus codeSpace="urn:bro:gmw:ElectrodeStatus">{{ electrode.electrodeStatus }}</ns2:electrodeStatus>
<ns2:electrodePosition uom="m">{{ electrode.electrodePosition }}</ns2:electrodePosition>
</ns:electrode>
{% endfor %}
</ns:geoOhmCable>
Expand Down
167 changes: 165 additions & 2 deletions upload_examples.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,172 @@
"metadata": {},
"source": [
"Input per berichttype\n",
"---------------------\n",
"---------------------\n"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"GMW \n",
"####"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"metadata = {\n",
" \"requestReference\":\"\",\n",
" \"deliveryAccountableParty\":\"\",\n",
" \"qualityRegime\":\"\",\n",
" \"underPrivilege\":\"\"\n",
"}\n",
"\n",
"sourcedocument_data = {\n",
" \"objectIdAccountableParty\": \"\",\n",
" \"deliveryContext\": \"\",\n",
" \"constructionStandard\": \"\",\n",
" \"initialFunction\": \"\",\n",
" \"numberOfMonitoringTubes\": \"\",\n",
" \"groundLevelStable\": \"\",\n",
" \"owner\": \"\",\n",
" \"maintenanceResponsibleParty\": \"\",\n",
" \"wellHeadProtector\": \"\",\n",
" \"wellConstructionDate\": \"\",\n",
" \"deliveredLocation\": \"\",\n",
" \"horizontalPositioningMethod\": \"\",\n",
" \"localVerticalReferencePoint\": \"\",\n",
" \"offset\": \"\",\n",
" \"verticalDatum\": \"\",\n",
" \"groundLevelPosition\": \"\",\n",
" \"groundLevelPositioningMethod\": \"\",\n",
" \"monitoringTubes\": [\n",
" {\n",
" \"tubeNumber\": \"\",\n",
" \"tubeType\": \"\",\n",
" \"artesianWellCapPresent\": \"\",\n",
" \"sedimentSumpPresent\": \"\",\n",
" \"numberOfGeoOhmCables\": \"\",\n",
" \"tubeTopDiameter\": \"\",\n",
" \"variableDiameter\": \"\",\n",
" \"tubeStatus\": \"\",\n",
" \"tubeTopPosition\": \"\",\n",
" \"tubeTopPositioningMethod\": \"\",\n",
" \"tubePackingMaterial\": \"\",\n",
" \"tubeMaterial\": \"\",\n",
" \"glue\": \"\",\n",
" \"screenLength\": \"\",\n",
" \"sockMaterial\": \"\",\n",
" \"plainTubePartLength\": \"\",\n",
" \"sedimentSumpLength\": \"\",\n",
" \"geoohmcables\": [\n",
" {\n",
" \"cableNumber\": \"\",\n",
" \"electrodes\": [\n",
" {\n",
" \"electrodeNumber\": \"\",\n",
" \"electrodePackingMaterial\": \"\",\n",
" \"electrodeStatus\": \"\",\n",
" \"electrodePosition\": \"\"\n",
" },\n",
" {\n",
" \"electrodeNumber\": \"\",\n",
" \"electrodePackingMaterial\": \"\",\n",
" \"electrodeStatus\": \"\",\n",
" \"electrodePosition\": \"\"\n",
" }\n",
" ]\n",
" }\n",
" ]\n",
" }\n",
" ]\n",
"}"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"GMN\n",
"####"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"#########################\n",
"## metadata ##\n",
"#########################\n",
"\n",
"# Registration requests:\n",
"metadata = {\n",
" \"requestReference\":\"\",\n",
" \"deliveryAccountableParty\":\"\",\n",
" \"qualityRegime\":\"\"\n",
"}\n",
"\n",
"# All other request types:\n",
"metadata = {\n",
" \"requestReference\":\"\",\n",
" \"deliveryAccountableParty\":\"\",\n",
" \"qualityRegime\":\"\",\n",
" \"correctionReason\":\"\"\n",
"}\n",
"\n",
"#########################\n",
"## sourcedocument_data ##\n",
"#########################\n",
"\n",
"# GMN_StartRegistration:\n",
"\n",
"sourcedocument_data = {\n",
" \"objectIdAccountableParty\":\"\",\n",
" \"name\":\"\",\n",
" \"deliveryContext\":\"\",\n",
" \"monitoringPurpose\":\"\",\n",
" \"groundwaterAspect\":\"\",\n",
" \"startDateMonitoring\":\"\",\n",
" \"measuringPoints\":[\n",
" {\n",
" \"measuringPointCode\":\"\",\n",
" \"broId\":\"\",\n",
" \"tubeNumber\":\"\"\n",
" }\n",
" ]\n",
"}\n",
"\n",
"# GMN_MeasuringPoint\n",
"sourcedocument_data = {\n",
" \"eventDate\":\"\",\n",
" \"measuringPointCode\":\"\",\n",
" \"broId\":\"\",\n",
" \"tubeNumber\":\"\"\n",
"}\n",
"\n",
"**GMW**\n"
"# GMN_TubeReference\n",
"sourcedocument_data = {\n",
" \"eventDate\":\"\",\n",
" \"measuringPointCode\":\"\",\n",
" \"broId\":\"\",\n",
" \"tubeNumber\":\"\"\n",
"}\n",
"\n",
"# GMN_MeasuringPointEndDate\n",
"sourcedocument_data = {\n",
" \"eventDate\":\"\",\n",
" \"measuringPointCode\":\"\"\n",
"}\n",
"\n",
"# GMN_Closure\n",
"sourcedocument_data = {\n",
" \"endDateMonitoring\":\"\"\n",
"}"
]
}
],
Expand Down

0 comments on commit d690bd9

Please sign in to comment.