ices-eg / WK_RDBES

3 stars 6 forks source link

To Do list createRDBESraw [SG1] #83

Closed nmprista closed 2 years ago

nmprista commented 2 years ago
davidcurrie2001 commented 2 years ago

Anything apart from basic checks should be done when creating a "prep" object - the "raw" object should just be a copy of the RDBES data.

davidcurrie2001 commented 2 years ago

Ok, you can now also pass in the file names as a parameters - otheriwse it will use the default names that the RDBES download provides

davidcurrie2001 commented 2 years ago

The following script can be used to see the functions working:

# Load H1 data
myH1RawObject <- createRDBESRawObject(rdbesExtractPath = "tests\\testthat\\h1_v_1_19")
# Check the object created is ok (should return TRUE)
checkRDBESRawObject(myH1RawObject)

# Load H5 data
myH5RawObject <- createRDBESRawObject(rdbesExtractPath = "tests\\testthat\\h5_v_1_19")
# Check the object created is ok (should return TRUE)
checkRDBESRawObject(myH5RawObject)

# Combine our H1 and H5 objects
myCombinedRawObject <- combineRDBESRawObjects(rdbesRawObject1=myH1RawObject,
                                              rdbesRawObject2=myH5RawObject)
# Check the object created is ok (should return TRUE)
checkRDBESRawObject(myCombinedRawObject)