This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

importing demands into an existing model from excel data

Is there a way to import demand data into an existing model?

I have an existing model with approximately 13,000 customers.  I've been trying to come up with a method of importing customer demands from meter read data via an excel file. We currently do not have any GIS data but will in the future.  I've tried using LoadBuilder but it appears you can only import shapefiles. 

My thought process is if I can somehow create a shapefile with customer locations and demand data, I can use Loadbuilder to assign those to nodes/pipes.

I have an excel file with customer meter read data.  The data includes meter reads over the past year which I've converted into a gpm unit.  I also have the x,y coordinate of each of the customers.

I've attempted to use ModelBuilder to build a model with the junctions with the assigned demands.  I've tried to map the fields to their appropriate properties.

ModelBuilder gets an error and says it cannot import the demands because it is a read only field.  I then used the Demand Control center to assign the demands to each customer by copying the data out of the excel file and pasting it into the demand control center.

This gets me to the step I cannot figure out.  Is there a way to export a model to a shapefile?

I thought I could create a Thiessen polygon with this information and use Loadbuilder to import but LoadBuilder wants a shape file for the Meter data which I don't have.

Maybe I'm going about this all wrong but have yet to find a way to accomplish what I want without a shapefile.

 

Any advice or ideas would be helpful.

 Thanks in advance

 

Travis

 

 

Parents Reply
  • Hi All,

    I am trying to use model builder for importing demands into Unit demand control centre.  I am using Bentley WaterGems V8i Select Series4 and this is not giving me th option of using "Junction,Demand Collection" as Table Type.  Has anyone else encountered this and what is way around this to import my unit demands from a shapefile into Unit Demand Control Centre.

Children
  • Hi RDD,

    That's right.  ModelBuilder treats spatial data source types like SHP and CAD a little differently, because ModelBuilder will also import/export the spatial geometry data for eg. Junctions and Pipes.   These data types are used for laying out the spatially connected network of nodes and pipes.

    The ONLY WaterCAD Modelling Elements that have geometry data are elements like Junction Elements and Pipe Elements, so these are all that will appear as available Table Types to import.  Component and Collection Table Types do not have spatial geometries, so do not appear on the list.

    For Shape files, you have a way around this though.   For this data type,  all the geometry data is kept in the *.SHP file...........whilst all the attribute data is kept in the dBase *.DBF file.

    So, if you want to use data in Shape Files for things like the Unit Demand Collection or the Demand Collection, in ModelBuilder you instead pick the "dBase IV" Data Source Type, instead of the "Esri Shapefiles" Data Source Type in the Wizard's Dialog.   You will need to specify some sort of unique ID field that is the same as for when importing the SHP data for the Junction coordinates, or the DBF data for eg. Junction, Demand Collection data to make sure the right Demands go to the right Junctions.



  • Thanks Ben,

    That explains it and it did worked.

  • Hello everybody,

    I think a face a similar problem.

    I want to model a specific DMA with a single inlet. Unfortunately, my company does not use ArcGIS for our huge network but Smallworld GIS (for some reasons). That means I can not have shapefiles. Nevertheless, I have access to dxf archives showing the position of buildings and the number of connections for each building. Besides, we may have excel showing billing meter data (address, etc) for each connection for the last 3 years.

    I have modeled the whole DMA and now I am at the last stage of demand allocation. It looks difficult for me to use 'billing meter aggregation method' because of lack of geocoded billing meter data. I was thinking to devide the whole metered consumption to the number of connections I have and then to share them to all of my connections.

    What is your opinion?

    How do you recommend me to proceed having in mind that I am looking for a well calibrated model.

    Thank you in advance.  

    Antonio

  • Do you have a way of getting a gps or an x,y coordinate for each address?  If so you could easily use Loadbuilder ot assign the appropriate loads to each node.  I'm not sure how you could import and distribute the loads properly without a spatial reference.

    If you try to use Modelbuilder, it will all the demands but all junctions will be stacked ontop one another not creating the correct spatial distribution.

    You could try using the address's you have and get the geocode info from one of the free sites.

    www.gpsvisualizer.com/geocoding.html

    http://geocoder.us/

    You always have to question the accuracy of these services...

  • I've been doing some searching and ran across this site.  I've tested this out on my own and it works surprisingly well using Google's geocoding api.

    This guy created an excel function using visual basic to call out to google's geocoding api and return the latitude and longitude of a specific address.  I was surprised how well it worked.

    policeanalyst.com/using-the-google-geocoding-api-in-excel