Skip to content

Commit

Permalink
changing XSD paths
Browse files Browse the repository at this point in the history
  • Loading branch information
MattReimer committed Oct 5, 2022
1 parent cd1747d commit 1e4322b
Show file tree
Hide file tree
Showing 26 changed files with 31 additions and 31 deletions.
2 changes: 1 addition & 1 deletion examples/gis_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

# Setting up our model with an XSD will let us refer to it later
# The version should be your tool version. Usually this is stored in a __version__.py file
cfg = ModelConfig('http://xml.riverscapes.xyz/Projects/XSD/V1/MYTOOLHERE.xsd', __version__)
cfg = ModelConfig('http://xml.riverscapes.net/Projects/XSD/V1/MYTOOLHERE.xsd', __version__)


def run(my_arg1: str, my_arg2: int):
Expand Down
2 changes: 1 addition & 1 deletion examples/project_xml.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"""

# Set up a class to track thigns like default EPSG, xsd validation and tool version
cfg = ModelConfig('http://xml.riverscapes.xyz/Projects/XSD/V1/Inundation.xsd', __version__)
cfg = ModelConfig('http://xml.riverscapes.net/Projects/XSD/V1/Inundation.xsd', __version__)

# Define the types of layers we're going to use up top so we can re-use them later
# We use our handy RSLayer() class here.
Expand Down
4 changes: 2 additions & 2 deletions lib/commons/rscommons/classes/rs_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class RSMetaTypes:
"""
This is a helper enumeration class to make sure we only use meta types that are valid.
These should exactly mirror:
https://xml.riverscapes.xyz/Projects/XSD/V1/RiverscapesProject.xsd
https://xml.riverscapes.net/Projects/XSD/V1/RiverscapesProject.xsd
"""
GUID = "guid"
URL = "url"
Expand Down Expand Up @@ -600,7 +600,7 @@ def rs_copy_project_extents(self, in_prj_path):
geojson_filename = project_extent_node.find('Path').text
in_geojson_path = os.path.join(os.path.dirname(in_prj_path), geojson_filename)
out_geojson_path = os.path.join(os.path.dirname(self.xml_path), geojson_filename)

if not os.path.exists(out_geojson_path):
shutil.copy(in_geojson_path, out_geojson_path)

Expand Down
6 changes: 3 additions & 3 deletions lib/commons/rscommons/report/templates/report.css
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ section.report-section>.report-header{
#HeaderBar .projectType{ float: left}
#HeaderBar .projectType{ float: left}
#RiverscapesLogo {
background-image: url(https://riverscapes.xyz/assets/images/RiverscapesLogo.png);
background-image: url(https://riverscapes.net/assets/images/RiverscapesLogo.png);
background-size: contain;
background-repeat: no-repeat;
flex: 0 0 6%;
Expand All @@ -161,7 +161,7 @@ section.report-section>.report-header{
text-shadow: 3px 3px 3px rgba(0,0,0,0.7);
background-size: cover;
background-color: #444444;
background-image: url(https://data.riverscapes.xyz/HeaderBackground.png);
background-image: url(https://data.riverscapes.net/HeaderBackground.png);
background-repeat: no-repeat;
background-position: 0% 50%;
}
Expand Down Expand Up @@ -323,7 +323,7 @@ footer #FooterLeft {
}
footer #FooterRight {
flex: 1 1 30%;
background-image: url(https://data.riverscapes.xyz/cc-watermarks-riverscapes_orig.png);
background-image: url(https://data.riverscapes.net/cc-watermarks-riverscapes_orig.png);
background-size: contain;
background-repeat: no-repeat;
background-position: center center;
Expand Down
2 changes: 1 addition & 1 deletion packages/brat/docs/assets/js/dist.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/brat/scripts/fm_ltpbr.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import csv
from sqlbrat.__version__ import __version__

cfg = ModelConfig('http://xml.riverscapes.xyz/Projects/XSD/V1/fmLTPBR.xsd', __version__)
cfg = ModelConfig('http://xml.riverscapes.net/Projects/XSD/V1/fmLTPBR.xsd', __version__)
# Don't forgbet to pip install dbfread. I didn't add it to requirements.txt

LayerTypes = {
Expand Down
2 changes: 1 addition & 1 deletion packages/brat/sqlbrat/brat_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

initGDALOGRErrors()

cfg = ModelConfig('http://xml.riverscapes.xyz/Projects/XSD/V1/BRAT.xsd', __version__)
cfg = ModelConfig('http://xml.riverscapes.net/Projects/XSD/V1/BRAT.xsd', __version__)

LayerTypes = {
'DEM': RSLayer('NED 10m DEM', 'DEM', 'DEM', 'inputs/dem.tif'),
Expand Down
4 changes: 2 additions & 2 deletions packages/brat/sqlbrat/brat_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def __init__(self, database, report_path, rs_project):
outputs_section = self.section('Outputs', 'Model Outputs')
pEl = ET.Element('p')
pEl.text = 'This report summarizes the model outputs for a particular run of BRAT, and provides some information on the input data used and intermediate data generated. For more detailed model documentation, visit the '
aEl = ET.SubElement(pEl, 'a', {'href': 'https://tools.riverscapes.xyz/brat'})
aEl = ET.SubElement(pEl, 'a', {'href': 'https://tools.riverscapes.net/brat'})
aEl.text = 'BRAT Documentation'
outputs_section.append(pEl)
self.dam_capacity(outputs_section)
Expand Down Expand Up @@ -841,7 +841,7 @@ def _dict_factory(cursor, row):
parser.add_argument('report_path', help='Output path where report will be generated', type=str)
args = dotenv.parse_args_env(parser)

cfg = ModelConfig('http://xml.riverscapes.xyz/Projects/XSD/V1/BRAT.xsd', __version__)
cfg = ModelConfig('http://xml.riverscapes.net/Projects/XSD/V1/BRAT.xsd', __version__)
project = RSProject(cfg, args.projectxml)
report = BratReport(args.database, args.report_path, project)
report.write()
2 changes: 1 addition & 1 deletion packages/brat/sqlbrat/brat_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
from sqlbrat.brat_report import BratReport
from sqlbrat.__version__ import __version__

cfg = ModelConfig('http://xml.riverscapes.xyz/Projects/XSD/V1/BRAT.xsd', __version__)
cfg = ModelConfig('http://xml.riverscapes.net/Projects/XSD/V1/BRAT.xsd', __version__)

# Dictionary of fields that this process outputs, keyed by ShapeFile data type
output_fields = {
Expand Down
2 changes: 1 addition & 1 deletion packages/channel/channel/channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

initGDALOGRErrors()

cfg = ModelConfig('http://xml.riverscapes.xyz/Projects/XSD/V1/ChannelArea.xsd', __version__)
cfg = ModelConfig('http://xml.riverscapes.net/Projects/XSD/V1/ChannelArea.xsd', __version__)

LayerTypes = {
'INPUTS': RSLayer('Inputs', 'INPUTS', 'Geopackage', 'inputs/inputs.gpkg', {
Expand Down
2 changes: 1 addition & 1 deletion packages/channel/channel/channel_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def layersummary(self, xml_id: str, name: str):
parser.add_argument('report_path', help='Output path where report will be generated', type=str)
args = dotenv.parse_args_env(parser)

cfg = ModelConfig('http://xml.riverscapes.xyz/Projects/XSD/V1/RSContext.xsd', __version__)
cfg = ModelConfig('http://xml.riverscapes.net/Projects/XSD/V1/RSContext.xsd', __version__)
project = RSProject(cfg, args.projectxml)
report = ChannelReport(args.report_path, project)
report.write()
2 changes: 1 addition & 1 deletion packages/gnat/gnat/confinement.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
initGDALOGRErrors()
gdal.UseExceptions()

cfg = ModelConfig('http://xml.riverscapes.xyz/Projects/XSD/V1/Confinement.xsd', __version__)
cfg = ModelConfig('http://xml.riverscapes.net/Projects/XSD/V1/Confinement.xsd', __version__)

LayerTypes = {
# key: (name, id, tag, relpath)]
Expand Down
2 changes: 1 addition & 1 deletion packages/gnat/gnat/gnat.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

initGDALOGRErrors()

cfg = ModelConfig('http://xml.riverscapes.xyz/Projects/XSD/V1/GNAT.xsd', __version__)
cfg = ModelConfig('http://xml.riverscapes.net/Projects/XSD/V1/GNAT.xsd', __version__)

LayerTypes = {
# key: (name, id, tag, relpath)
Expand Down
2 changes: 1 addition & 1 deletion packages/gnat/gnat/utils/confinement_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def _dict_factory(cursor, row):
parser.add_argument('report_path', help='Output path where report will be generated', type=str)
args = dotenv.parse_args_env(parser)

cfg = ModelConfig('http://xml.riverscapes.xyz/Projects/XSD/V1/Confinement.xsd', __version__)
cfg = ModelConfig('http://xml.riverscapes.net/Projects/XSD/V1/Confinement.xsd', __version__)
project = RSProject(cfg, args.projectxml)
report = ConfinementReport(args.database, args.report_path, project)
report.write()
2 changes: 1 addition & 1 deletion packages/gnat/gnat/utils/gnat_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def __init__(self, database, report_path, rs_project):
parser.add_argument('report_path', help='Output path where report will be generated', type=str)
args = dotenv.parse_args_env(parser)

cfg = ModelConfig('http://xml.riverscapes.xyz/Projects/XSD/V1/GNAT.xsd', __version__)
cfg = ModelConfig('http://xml.riverscapes.net/Projects/XSD/V1/GNAT.xsd', __version__)
project = RSProject(cfg, args.projectxml)
report = GNATReport(args.database, args.report_path, project)
report.write()
2 changes: 1 addition & 1 deletion packages/hand/hand/hand.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

initGDALOGRErrors()

cfg = ModelConfig('http://xml.riverscapes.xyz/Projects/XSD/V1/HAND.xsd', __version__)
cfg = ModelConfig('http://xml.riverscapes.net/Projects/XSD/V1/HAND.xsd', __version__)

LayerTypes = {
'DEM': RSLayer('DEM', 'DEM', 'Raster', 'inputs/dem.tif'),
Expand Down
2 changes: 1 addition & 1 deletion packages/hand/hand/hand_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def report_intro(self):
parser.add_argument('report_path', help='Output path where report will be generated', type=str)
args = dotenv.parse_args_env(parser)

cfg = ModelConfig('http://xml.riverscapes.xyz/Projects/XSD/V1/HAND.xsd', __version__)
cfg = ModelConfig('http://xml.riverscapes.net/Projects/XSD/V1/HAND.xsd', __version__)
project = RSProject(cfg, args.projectxml)
report = HANDReport(args.report_path, project)
report.write()
4 changes: 2 additions & 2 deletions packages/rscontext/rscontext/rs_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@

initGDALOGRErrors()

cfg = ModelConfig('http://xml.riverscapes.xyz/Projects/XSD/V1/RSContext.xsd', __version__)
cfg = ModelConfig('http://xml.riverscapes.net/Projects/XSD/V1/RSContext.xsd', __version__)

# These are the Prism BIL types we expect
PrismTypes = ['PPT', 'TMEAN', 'TMIN', 'TMAX', 'TDMEAN', 'VPDMIN', 'VPDMAX']
Expand Down Expand Up @@ -395,7 +395,7 @@ def augment_layermeta():
if k in json_data and len(json_data[k]) > 0:
lyr.lyr_meta = [
RSMeta('Description', json_data[k]),
RSMeta('DocsUrl', 'https://tools.riverscapes.xyz/rscontext/data.html#{}'.format(lyr.id), RSMetaTypes.URL)
RSMeta('DocsUrl', 'https://tools.riverscapes.net/rscontext/data.html#{}'.format(lyr.id), RSMetaTypes.URL)
]


Expand Down
2 changes: 1 addition & 1 deletion packages/rscontext/rscontext/rs_context_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def report_intro(self):
parser.add_argument('report_path', help='Output path where report will be generated', type=str)
args = dotenv.parse_args_env(parser)

cfg = ModelConfig('http://xml.riverscapes.xyz/Projects/XSD/V1/RSContext.xsd', __version__)
cfg = ModelConfig('http://xml.riverscapes.net/Projects/XSD/V1/RSContext.xsd', __version__)
project = RSProject(cfg, args.projectxml)
report = RSContextReport(args.report_path, project, os.path.dirname(args.projectxml))
report.write()
2 changes: 1 addition & 1 deletion packages/rscontext/scripts/modis_xmls.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from rscommons.classes.rs_project import RSMeta, RSMetaTypes
from rscommons.util import safe_makedirs, safe_remove_file

cfg = ModelConfig('http://xml.riverscapes.xyz/Projects/XSD/V1/LST.xsd', '0.0.1')
cfg = ModelConfig('http://xml.riverscapes.net/Projects/XSD/V1/LST.xsd', '0.0.1')


def process_lst(lst_xml_folder):
Expand Down
2 changes: 1 addition & 1 deletion packages/rvd/rvd/rvd.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@

initGDALOGRErrors()

cfg = ModelConfig('http://xml.riverscapes.xyz/Projects/XSD/V1/RVD.xsd', __version__)
cfg = ModelConfig('http://xml.riverscapes.net/Projects/XSD/V1/RVD.xsd', __version__)

LayerTypes = {
# key: (name, id, tag, relpath)
Expand Down
2 changes: 1 addition & 1 deletion packages/rvd/rvd/rvd_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def report_intro(self):
parser.add_argument('report_path', help='Output path where report will be generated', type=str)
args = dotenv.parse_args_env(parser)

cfg = ModelConfig('http://xml.riverscapes.xyz/Projects/XSD/V1/RVD.xsd', __version__)
cfg = ModelConfig('http://xml.riverscapes.net/Projects/XSD/V1/RVD.xsd', __version__)
project = RSProject(cfg, args.projectxml)
report = RVDReport(args.report_path, project, os.path.dirname(args.projectxml))
report.write()
2 changes: 1 addition & 1 deletion packages/taudem/taudem/taudem.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

Path = str

cfg = ModelConfig('http://xml.riverscapes.xyz/Projects/XSD/V1/TauDEM.xsd', __version__)
cfg = ModelConfig('http://xml.riverscapes.net/Projects/XSD/V1/TauDEM.xsd', __version__)

NCORES = os.environ['TAUDEM_CORES'] if 'TAUDEM_CORES' in os.environ else '2'

Expand Down
2 changes: 1 addition & 1 deletion packages/taudem/taudem/taudem_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def report_intro(self):
parser.add_argument('report_path', help='Output path where report will be generated', type=str)
args = dotenv.parse_args_env(parser)

cfg = ModelConfig('http://xml.riverscapes.xyz/Projects/XSD/V1/TauDEM.xsd', __version__)
cfg = ModelConfig('http://xml.riverscapes.net/Projects/XSD/V1/TauDEM.xsd', __version__)
project = RSProject(cfg, args.projectxml)
report = TauDEMReport(args.report_path, project)
report.write()
2 changes: 1 addition & 1 deletion packages/vbet/vbet/vbet.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@

initGDALOGRErrors()

cfg = ModelConfig('http://xml.riverscapes.xyz/Projects/XSD/V1/VBET.xsd', __version__)
cfg = ModelConfig('http://xml.riverscapes.net/Projects/XSD/V1/VBET.xsd', __version__)

LayerTypes = {
'DEM': RSLayer('DEM', 'DEM', 'Raster', 'inputs/dem.tif'),
Expand Down
2 changes: 1 addition & 1 deletion packages/vbet/vbet/vbet_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def transforms(self):
parser.add_argument('report_path', help='Output path where report will be generated', type=str)
args = dotenv.parse_args_env(parser)

cfg = ModelConfig('http://xml.riverscapes.xyz/Projects/XSD/V1/VBET.xsd', __version__)
cfg = ModelConfig('http://xml.riverscapes.net/Projects/XSD/V1/VBET.xsd', __version__)
project = RSProject(cfg, args.projectxml)
report = VBETReport(args.report_path, project)
report.write()

0 comments on commit 1e4322b

Please sign in to comment.